/* ===== GLOBAL STYLES ===== */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12141c;
  --text-primary: #f5f5f7;
  --text-secondary: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.95);
  --border-color: rgba(255, 255, 255, 0.14);
  --gradient-primary: linear-gradient(90deg, #7c3aed, #3b82f6);
  --gradient-text: linear-gradient(90deg, #8b5cf6, #22d3ee);
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Urbanist', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  font-family: var(--font-body), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: #7c3aed;
  color: #fff;
}

::-webkit-scrollbar {
  height: 0px;
}

/* ===== TYPOGRAPHY ===== */

h1 {
  font-family: var(--font-heading), sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-family: var(--font-heading), sans-serif;
  font-weight: 800;
  margin: 0;
}

h3 {
  font-family: var(--font-heading), sans-serif;
  font-weight: 800;
  margin: 0;
}

p {
  line-height: 1.6;
  margin: 0;
}

a {
  font-family: var(--font-heading), sans-serif;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* ===== NAVBAR ===== */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

/* WordPress admin bar compatibility */
.admin-bar .navbar {
  top: 32px;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 40px;
}

.navbar-logo-img {
  height: 100%;
  width: auto;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.logo-text {
  font-family: var(--font-heading), sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-heading), sans-serif;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17.5px;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  font-family: var(--font-heading), sans-serif;
  background: var(--gradient-primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.12);
}

/* User Menu Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 6px 5px 5px;
  border-radius: 999px;
  background: transparent;
  border: none;
  transition: background 0.2s;
}

.user-menu-toggle:hover {
  background: rgba(255, 255, 255, .06);
}

.user-menu-toggle svg {
  transition: transform 0.2s;
}

.user-menu-toggle.active svg {
  transform: rotate(180deg);
}

.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.dropdown-menu {
  position: absolute;
  top: 44px;
  right: 0;
  width: 190px;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 6px;
}

.dropdown-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.dropdown-user-email {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, .1);
  color: #f87171;
}

.dropdown-item svg {
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .nav-links {
    display: none !important;
  }
}

/* ===== MOBILE MENU ===== */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-right: 12px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 320px);
  background: var(--bg-dark);
  z-index: 201;
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  height: 36px;
}

.mobile-menu-logo-img {
  height: 100%;
  width: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s;
  flex: none;
}

.mobile-menu-close:hover {
  color: #fff;
}

.mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15.5px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.mobile-nav-links a:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.1);
}

.mobile-nav-links a.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.15);
  border-left-color: var(--gradient-primary);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.mobile-menu-action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu-action-link:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.1);
}

.mobile-menu-action-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.mobile-menu-action-link.primary {
  background: var(--gradient-primary);
  color: #fff;
  margin: 8px 12px;
  border-radius: 8px;
  justify-content: center;
  gap: 0;
}

.mobile-menu-action-link.logout {
  color: rgba(255, 99, 71, 0.9);
}

.mobile-menu-action-link.logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-container {
    order: 0;
  }

  .navbar-logo {
    order: 1;
    flex: 1;
  }

  .nav-right {
    order: 2;
  }
}

/* ===== FOOTER ===== */

footer {
  border-top: 1px solid var(--border-color);
  padding: 56px 32px 28px;
  background: var(--bg-dark);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    gap: 20px;
  }
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 1.0);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 220px;
}

@media (max-width: 768px) {
  .footer-desc {
    max-width: 100%;
  }
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 1.0);
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.social-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 1.0);
}

.newsletter-form button {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
}

.newsletter-form button:hover {
  filter: brightness(1.12);
}

.subscribe-message {
  font-size: 12px;
  color: #22d3ee;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-legal {
    flex-wrap: wrap;
  }
}

.footer-copyright {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 1.0);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 1.0);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
}

/* ===== BUTTONS & BADGES ===== */

.btn {
  font-family: var(--font-heading), sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
}

.btn-md {
  font-size: 14.5px;
  padding: 14px 28px;
}

.btn-gradient {
  background: var(--gradient-primary);
  color: #fff;
}

.btn-gradient:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}

/* ===== CARDS ===== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

.card-small {
  border-radius: 12px;
  padding: 18px;
}

.card-hover-up:hover {
  transform: translateY(-3px);
}

/* ===== GRIDS ===== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin: 0;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
}

.grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  width: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  .grid-2col {
    grid-template-columns: 1fr !important;
  }
  .grid-3col {
    grid-template-columns: 1fr !important;
  }
  .grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-5col {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 620px) {
  .grid-4col {
    grid-template-columns: 1fr !important;
  }
  .grid-5col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .nav-login-link {
    display: none;
  }
}

/* ===== SPACING ===== */

section {
  padding: 100px 32px;
}

section-sm {
  padding: 56px 32px;
}

/* ===== UTILITY CLASSES ===== */

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-line {
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #7c3aed, #22d3ee);
  border-radius: 2px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
