/* =====================================================
   WYRAZOHOLICY - Global Styles
   A word games platform with dark/light mode support
   ===================================================== */

/* CSS Custom Properties */
:root {
  /* Colors - Light Mode (default) */
  --color-bg-primary: #f8f9fa;
  --color-bg-secondary: #ffffff;
  --bg-card-gradient: linear-gradient(145deg, #ffffff 0%, #f1f3f5 100%);
  --color-bg-tertiary: #e9ecef;
  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-text-muted: #adb5bd;
  --color-accent: #6366f1;
  --color-accent-hover: #4f46e5;
  --color-accent-light: rgba(99, 102, 241, 0.1);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-border: #dee2e6;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg-primary: #000000;
  --color-bg-secondary: #1a1a1a;
  --bg-card-gradient: linear-gradient(145deg, #2c2c2c 0%, #1a1a1a 100%);
  --color-bg-tertiary: #262626;
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #a3a3a3;
  --color-text-muted: #525252;
  --color-accent: #818cf8;
  --color-accent-hover: #a5b4fc;
  --color-accent-light: rgba(129, 140, 248, 0.15);
  --color-border: #333333;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: var(--space-2xl) 0;
}

/* Header */
.header {
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  font-size: 1.5em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none !important;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: inline-block !important;
}

.nav-group {
  display: contents;
}

.nav-group-title {
  display: none;
}

.nav br {
  display: none;
}

.nav-item {
  color: var(--color-text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
}

.nav-item:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-sm) var(--space-md);
    /* Slimmer header on mobile */
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }

  .mobile-toggle {
    display: block !important;
  }

  /* Enhanced Mobile Menu Structure */
  .nav.open {
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-lg);
    align-items: flex-end;
    /* Right align everything */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav-group {
    display: block;
    width: 100%;
    text-align: right;
    margin-bottom: var(--space-md);
    animation: fadeIn 0.3s ease forwards;
  }

  .nav-group-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
    width: 100%;
    text-align: right;
    /* Explicit right align */
    border-bottom: none;
    padding: 0;
  }

  .nav-item {
    display: inline-block;
    padding: 4px 0;
    background: transparent;
    color: var(--color-text-primary);
    font-weight: 600;
    text-align: right;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
  }

  /* Separator logic */
  .nav-item::after {
    content: "|";
    margin: 0 8px;
    color: var(--color-text-muted);
    font-weight: 400;
    opacity: 0.4;
  }

  .nav-item:last-child::after,
  .nav-item.no-sep::after {
    display: none;
  }

  .nav-item:hover {
    color: var(--color-accent);
    background: transparent;
    padding-left: 0;
  }

  /* Reset standard nav-link for mobile if used inside structure */
  .nav.open .nav-link {
    text-align: right;
  }

  /* Actions container */
  .nav-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    animation: fadeIn 0.4s ease forwards;
  }

  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .nav br {
    display: inline;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-md);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-border);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.btn-icon {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}

/* Social Login Buttons */
.btn-google {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid var(--color-border);
}

.btn-google:hover {
  background-color: #f8f9fa;
  color: #333333;
}

.btn-facebook {
  background-color: #1877f2;
  color: white;
}

.btn-facebook:hover {
  background-color: #166fe5;
  color: white;
}

/* Cards */
.card {
  background: var(--bg-card-gradient);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.card-description {
  font-size: var(--font-size-sm);
  color: #7593b9;
}

.feature-card {
  transition: all var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.feature-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  transition: transform var(--transition-normal);
}

.feature-card:hover img {
  transform: scale(1.1) rotate(5deg);
}

.game-icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  padding: 15px;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  /* Organic base shape */
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  /* Persistent idle animation */
  animation: liquidMorph 10s infinite alternate ease-in-out;
}

/* Individual Randomization via nth-child - affects both idle and hover */
.game-card:nth-child(1) .game-icon-img {
  animation-duration: 4.2s;
  animation-delay: -0.5s;
  transform: rotate(5deg);
}

.game-card:nth-child(2) .game-icon-img {
  animation-duration: 5.5s;
  animation-delay: -1.2s;
  transform: rotate(-8deg);
}

.game-card:nth-child(3) .game-icon-img {
  animation-duration: 4.8s;
  animation-delay: -2.1s;
  transform: rotate(12deg);
}

.game-card:nth-child(4) .game-icon-img {
  animation-duration: 6.2s;
  animation-delay: -0.1s;
  transform: rotate(-5deg);
}

.game-card:nth-child(5) .game-icon-img {
  animation-duration: 5.1s;
  animation-delay: -1.5s;
  transform: rotate(3deg);
}

.game-card:nth-child(6) .game-icon-img {
  animation-duration: 5.8s;
  animation-delay: -0.8s;
  transform: rotate(-12deg);
}

.game-card:hover .game-icon-img {
  transform: scale(1.1) translateY(-5px) rotate(0deg) !important;
  border-color: var(--color-accent);
  background: var(--color-bg-primary);
  box-shadow: 0 10px 25px var(--color-accent-light),
    0 0 0 5px var(--color-accent-light);
  /* Energetic state: fast morph */
  animation-duration: 3s !important;
}

@keyframes liquidMorph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  }

  100% {
    border-radius: 70% 30% 70% 30% / 30% 70% 30% 70%;
  }
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stat {
  text-align: center;
  padding: var(--space-lg);
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Alerts */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.divider::before {
  margin-right: var(--space-md);
}

.divider::after {
  margin-left: var(--space-md);
}

/* Auth Container */
.auth-container {
  max-width: 400px;
  margin: var(--space-2xl) auto;
  padding: var(--space-2xl);
  background: var(--bg-card-gradient);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-header h1 {
  margin-bottom: var(--space-sm);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Dashboard Layout */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-lg);
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  background: var(--bg-card-gradient);
  border-right: 1px solid var(--color-border);
  padding: var(--space-lg);
}

.dashboard-content {
  padding: var(--space-lg);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item {
  margin-bottom: var(--space-sm);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
  /* Ensure cards are same height */
}

.grid-centered {
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px)) !important;
}

.game-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  /* Flexbox for layout */
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  /* Full height of grid cell */
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-icon {
  font-size: 3.5rem;
  /* Slightly larger for better proportion */
  margin-bottom: var(--space-md);
  margin-top: var(--space-xs);
}

.card-title {
  margin-bottom: var(--space-sm);
  width: 100%;
}

.card-description {
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  /* Pushes button down */
  width: 100%;
}

.game-card .btn {
  margin-top: auto;
  /* Ensures button is always at bottom */
  width: 100%;
  max-width: 200px;
  /* Nice visual width cap */
}

/* Gorgeous Button */
.btn-gorgeous {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 50%, #d946ef 100%);
  color: white;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-md) var(--space-xl);
  box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: var(--radius-full);
}

.btn-gorgeous::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, var(--color-accent) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

/* Footer Socials */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.social-icon {
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon:hover.fa-facebook {
  color: #1877f2;
}

.social-icon:hover.fa-instagram {
  color: #e4405f;
}

.social-icon:hover.fa-youtube {
  color: #ff0000;
}

.social-icon:hover.fa-tiktok {
  color: var(--color-text-primary);
}

.btn-gorgeous:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -15px rgba(99, 102, 241, 0.6);
  color: white;
}

.btn-gorgeous:hover::before {
  opacity: 1;
}

/* Logo Image */
.logo-image {
  height: 48px;
  /* Slightly larger base size */
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.logo-image:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .logo-image {
    height: 36px;
  }
}

/* Adjust Container Spacing for Cards */
.container {
  padding: 0 var(--space-2xl);
  /* More breathing room on desktop */
}

@media (max-width: 768px) {
  .container {
    padding: 0 40px;
    /* Force significantly more breathing room on mobile */
  }

  .mobile-card-margin {
    margin: 14px;
  }
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-xs);
}

.faq-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 0.8rem;
  transition: transform var(--transition-normal);
  color: var(--color-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background: var(--color-bg-primary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* Sufficient for text */
}

.faq-answer-inner {
  padding: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

.faq-answer-inner a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-answer-inner a:hover {
  text-decoration: underline;
}