/* ========== GLOBAL ========== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #050509;
  font-family: Arial, sans-serif;
  color: #f5f5f5;
}

/* Layout helpers */

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
}

/* ========== HEADER ========== */

.header {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080812;
  border-bottom: 1px solid #1f102f;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  width: 40px;
  height: 40px;
}

.header-logo span {
  font-size: 20px;
  font-weight: bold;
  color: #e5d9ff;
}

.header-nav a {
  margin-left: 15px;
  color: #c4b5fd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #e9d5ff;
  text-decoration: none;
}

/* Active nav link - highlights current page */
.header-nav a.active {
  color: #ffffff;
  font-weight: bold;
  border-bottom: 2px solid #8a2be2;
  padding-bottom: 2px;
}

/* ========== HERO / LANDING ========== */

.hero {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.hero-text {
  flex: 1;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.badge {
  background: #111;
  border: 1px solid #222;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #d1d5db;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #b57bff;
  text-shadow: 0 0 8px #4b0082;
}

.hero-text p {
  color: #d1d5db;
  margin-bottom: 20px;
  max-width: 500px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 280px;
  transition: 0.25s ease;
}

.hero-card:hover {
  border-color: #4b0082;
  box-shadow: 0 0 12px #4b0082;
}

.hero-card img {
  width: 120px;
  margin-bottom: 10px;
}

.hero-card h2 {
  color: #b57bff;
  margin-bottom: 10px;
}

.hero-card p {
  color: #d1d5db;
  font-size: 0.95rem;
}

/* ========== AUTH CARDS ========== */

.auth-card {
  background: #11111a;
  padding: 30px;
  width: 350px;
  border-radius: 12px;
  border: 1px solid #2e1b4a;
  text-align: center;
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.35);
}

.auth-avatar {
  width: 120px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.6));
}

.title {
  color: #f9fafb;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

/* Scoped to auth cards to avoid affecting other pages */
.auth-card label {
  display: block;
  text-align: left;
  color: #d1d5db;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 14px;
}

.auth-card input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
  background: #1f2933;
  color: #f9fafb;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.auth-card input:focus {
  background: #111827;
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
}

/* ========== BUTTONS ========== */

.purple-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #8a2be2;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
  text-decoration: none;
}

.purple-btn.full {
  width: 100%;
  text-align: center;
}

.purple-btn:hover {
  background: #9d47ff;
  box-shadow: 0 0 12px rgba(157, 71, 255, 0.7);
  color: white;
  text-decoration: none;
}

.discord-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #5865F2;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
  text-decoration: none;
}

.discord-btn:hover {
  background: #4752C4;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
  color: white;
  text-decoration: none;
}

/* ========== LINKS ========== */

a {
  color: #a855f7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #c084fc;
}

.auth-switch {
  margin-top: 15px;
  color: #d1d5db;
  font-size: 14px;
}

.error {
  margin-top: 10px;
  color: #f97373;
  font-size: 14px;
}

.success {
  margin-top: 10px;
  color: #4ade80;
  font-size: 14px;
}

/* ========== FOOTER ========== */

.footer {
  margin-top: 40px;
  background: #111111;
  color: #e5e5e5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: #000000;
  border-bottom: 1px solid #222;
}

.footer-social h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #222;
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s;
}

.social-icons a:hover {
  background: #444;
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.brand-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-brand p {
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}



.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  flex: 2;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-links-wrapper {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 40px;
  text-align: left;
  margin-top: 5px;
}

.footer-col h3 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.footer-col a {
  color: #b57bff;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #e9d5ff;
  text-shadow: 0 0 10px rgba(181, 123, 255, 0.8);
  text-decoration: none;
}

.footer-bottom {
  background: #222222;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: #888;
}

.footer-copyright {
  color: #aaa;
  text-align: center;
}

.footer-legal-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

@media (max-width: 800px) {
  .footer-links-grid {
    justify-content: flex-start;
    gap: 30px;
  }
  .footer-main {
    flex-direction: column;
  }
  .footer-legal-links {
    gap: 15px;
  }
}


/* ========== DASHBOARD ========== */

.dashboard-container {
  max-width: 900px;
  width: 100%;
}

.dashboard-container h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 28px;
  color: #e5d9ff;
}

.dashboard-container > p {
  color: #9ca3af;
  margin-bottom: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.dashboard-card {
  background: #11111a;
  border: 1px solid #2e1b4a;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.dashboard-card:hover {
  border-color: #6d28d9;
  box-shadow: 0 0 28px rgba(138, 43, 226, 0.35);
}

.dashboard-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: #e5d9ff;
}

.dashboard-card p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ========== CARD ACTIONS ========== */
.card-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.card-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  padding: 0;
}

.card-action-btn:hover {
  background: rgba(138, 43, 226, 0.2);
  color: #fff;
  border-color: #8a2be2;
}

/* ========== SUPPORT PAGE ========== */

.support-container {
  max-width: 800px;
  width: 100%;
  background: #11111a;
  border-radius: 12px;
  border: 1px solid #2e1b4a;
  padding: 25px;
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.35);
}

.support-container h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

.support-section {
  margin-top: 15px;
  margin-bottom: 10px;
}

.support-section h2 {
  margin-bottom: 5px;
  font-size: 18px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-card {
    order: 1;
    width: 100%;
    max-width: 320px;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-card {
    width: 100%;
    max-width: 360px;
    padding: 22px;
  }

  .hero {
    padding-top: 20px;
  }
}

/* ========== LONG PAGE FIX (About, etc.) ========== */

.page-long .main-content {
  display: block;
  padding: 40px 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

/* ========== DROPDOWN & HAMBURGER ========== */

.dropdown {
  position: relative;
  display: inline-block;
  margin-left: 15px;
}

.dropbtn {
  background-color: transparent;
  color: #c4b5fd;
  padding: 0;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.dropbtn:hover {
  color: #e9d5ff;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #11111a;
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 100;
  border: 1px solid #2e1b4a;
  border-radius: 6px;
  top: 100%;
  left: -20px;
}

.dropdown-content a {
  color: #d1d5db;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  margin-left: 0;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #2e1b4a;
  color: white;
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #e5d9ff;
  font-size: 24px;
  cursor: pointer;
}

.nav-login-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #8a2be2;
  color: white !important;
  border-radius: 6px;
}
.nav-login-btn:hover {
  background: #9d47ff;
  text-decoration: none !important;
}

@media (max-width: 800px) {
  .header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    background: #0b0b14;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f102f;
  }
  .header-nav.active {
    display: flex;
  }
  .header-nav a, .dropdown {
    margin: 8px 0;
  }
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }
  .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
    display: block;
  }

  /* Global Mobile Fixes */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .auth-card {
    width: 100%;
    max-width: 350px;
    padding: 20px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-main {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .footer-links-grid {
    justify-content: center;
    gap: 30px;
  }
  .footer-links-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .faq-container h1 {
    font-size: 1.8rem;
  }
  .support-container {
    padding: 15px;
  }
}