/* ========================================
   Stay Uplifted - Main CSS
   Modern 2025 Design System
   ======================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Colors - Dark Theme Matching Stay Uplifted App */
  --primary-color: #4ade80;      /* Light green - matches app primary */
  --primary-dark: #22c55e;       /* Darker green for pressed states */
  --primary-light: #86efac;      /* Lighter green variation */
  
  --secondary-color: #ff7043;    /* Orange - matches app warning color */
  --secondary-light: #ff8a65;
  --secondary-dark: #f4511e;
  
  --accent-color: #8ebea8;       /* Faded green variant from app */
  --accent-light: #a7c7b5;
  
  --background: #000000;         /* Pure black - main app background */
  --background-alt: #111111;     /* Darkest surface from app */
  --surface: #222222;            /* Medium dark surface from app */
  --surface-elevated: rgba(34, 34, 34, 0.9); /* Elevated dark surface */
  
  --text-primary: #ffffff;       /* White - primary text from app */
  --text-secondary: #cccccc;     /* Light gray - secondary text from app */
  --text-muted: #888888;         /* Muted gray - subtle text from app */
  --text-inverse: #000000;       /* Black text for light backgrounds */
  
  --border-color: #333333;       /* Lighter surface for borders */
  --border-light: #444444;       /* Lightest surface for subtle borders */
  
  /* Gradients - Dark Theme Optimized */
  --gradient-primary: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  --gradient-secondary: linear-gradient(135deg, #ff7043 0%, #ff8a65 100%);
  --gradient-hero: linear-gradient(135deg, 
    rgba(74, 222, 128, 0.15) 0%, 
    rgba(255, 112, 67, 0.1) 50%, 
    rgba(142, 190, 168, 0.1) 100%);
  --gradient-card: linear-gradient(145deg, 
    rgba(34, 34, 34, 0.9) 0%, 
    rgba(51, 51, 51, 0.7) 100%);
  
  /* Typography - Modern 2025 Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing - Consistent Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* Shadows - Dark Theme Optimized */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  
  /* Border Radius - Organic 2025 Feel */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Animations - Smooth Modern Timing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary) !important;
  background-color: var(--background) !important;
  background: #000000 !important;
  overflow-x: hidden;
}

/* Force dark theme - additional specificity */
html, body {
  background: #000000 !important;
  color: #ffffff !important;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   Gradient Text Effect
   ======================================== */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ========================================
   Layout Containers
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ========================================
   Buttons - Modern 2025 Style
   ======================================== */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--background-alt);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
  transform: translateX(2px);
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Cards & Surfaces
   ======================================== */

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
  padding: var(--space-20) 0;
  background: var(--background-color);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  cursor: pointer;
  background: var(--card-background);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgba(74, 222, 128, 0.05);
}

.faq-question h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  padding-right: var(--space-4);
}

.faq-icon {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--background-color);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-size: var(--text-base);
}

.faq-answer strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   Utility Classes
   ======================================== */

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

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ========================================
   Accessibility
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ========================================
   BETA SIGNUP STYLES
   ======================================== */

.beta-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.beta-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.beta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(74, 222, 128, 0.1);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.benefit-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.beta-signup-section {
    padding: var(--space-16) 0;
    background: var(--surface);
}

.beta-signup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.beta-info h2 {
    margin-bottom: var(--space-4);
}

.beta-info .section-description {
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
    opacity: 0.8;
}

.beta-requirements,
.beta-process {
    margin-bottom: var(--space-8);
}

.beta-requirements h3,
.beta-process h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.process-step {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: var(--surface);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 var(--space-1) 0;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    opacity: 0.7;
    font-size: var(--text-sm);
}

.beta-form-container {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.beta-form .form-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.beta-form .form-header h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-2xl);
}

.beta-form .form-header p {
    opacity: 0.7;
    margin: 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Thank You Page Styles */
.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-icon {
    margin-bottom: var(--space-6);
}

.thank-you-title {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-3xl);
}

.thank-you-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    opacity: 0.8;
}

.thank-you-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
}

.thank-you-list li {
    padding: var(--space-2) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.thank-you-note {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    font-size: var(--text-sm);
}

.thank-you-note strong {
    color: var(--primary-color);
}

.thank-you-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.thank-you-note a:hover {
    text-decoration: underline;
}

.thank-you-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
}

/* Responsive Beta Styles */
@media (max-width: 768px) {
    .beta-signup-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .beta-benefits {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .benefit-item {
        padding: var(--space-2);
        font-size: var(--text-sm);
    }
    
    .beta-form-container {
        padding: var(--space-6);
    }
    
    .process-steps {
        gap: var(--space-3);
    }
    
    .thank-you-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-buttons .btn-primary,
    .thank-you-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   FEEDBACK PAGE STYLES
   ======================================== */

.feedback-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.feedback-section {
    padding: var(--space-16) 0;
    background: var(--surface);
}

.feedback-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.feedback-form-container {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.feedback-form-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.feedback-form-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-2xl);
}

.feedback-form-header p {
    opacity: 0.7;
    margin: 0;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row;
    gap: var(--space-1);
    justify-content: flex-start;
    align-items: center;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    font-size: var(--text-2xl);
    color: var(--border-color);
    cursor: pointer;
    transition: color var(--transition-fast);
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffd700; /* Gold color for stars */
}

/* Use JavaScript for star highlighting instead of complex CSS selectors */

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* Form Hints */
.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
    display: block;
}

/* Feedback Info Sidebar */
.feedback-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.feedback-stats,
.feedback-guidelines,
.feedback-privacy,
.contact-info {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
}

.feedback-stats h3,
.feedback-guidelines h3,
.feedback-privacy h3,
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.stat-item {
    text-align: center;
    padding: var(--space-3);
    background: var(--surface);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.guidelines-list,
.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidelines-list li,
.privacy-list li {
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.guidelines-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

.privacy-list li::before {
    content: "🔒";
    position: absolute;
    left: 0;
}

.contact-email {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    margin-top: var(--space-2);
}

.contact-email:hover {
    text-decoration: underline;
}

/* Recent Feedback Section */
.recent-feedback-section {
    padding: var(--space-16) 0;
    background: var(--background);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.feedback-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.feedback-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.stars {
    color: #ffd700;
    font-size: var(--text-lg);
}

.rating-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.feedback-category {
    background: var(--primary-color);
    color: var(--background);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.feedback-content {
    margin-bottom: var(--space-4);
}

.feedback-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
}

.feedback-author {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.feedback-date {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Loading and Empty States */
.feedback-loading,
.no-feedback,
.feedback-error {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-feedback-icon,
.error-icon {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-4);
}

.no-feedback h3,
.feedback-error h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.no-feedback p,
.feedback-error p {
    color: var(--text-muted);
    margin: 0;
}

.load-more-container {
    text-align: center;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Responsive Feedback Styles */
@media (max-width: 768px) {
    .feedback-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .feedback-form-container {
        padding: var(--space-6);
    }
    
    .feedback-info {
        order: -1;
        gap: var(--space-4);
    }
    
    .feedback-stats,
    .feedback-guidelines,
    .feedback-privacy,
    .contact-info {
        padding: var(--space-4);
    }
    
    .stats-grid {
        gap: var(--space-2);
    }
    
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .feedback-card {
        padding: var(--space-4);
    }
    
    .feedback-header {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }
    
    .feedback-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    /* Star rating already left-aligned, no mobile override needed */
}

/* ========================================
   Legal Document Section
   ======================================== */

.legal-document {
  padding: var(--space-24) 0 var(--space-20);
  background: #000000 !important;
  color: #ffffff !important;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding: var(--space-8) 0 var(--space-8);
  border-bottom: 2px solid var(--border-light);
}

.legal-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.last-updated {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  background: var(--gradient-card);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  display: inline-block;
}

.legal-section {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: var(--space-4);
}

.subsection-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.legal-content ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.highlight-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  border-left: 4px solid var(--accent-color);
}

.important-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.important-notice h4 {
  color: var(--accent-color);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.warning-box h4 {
  color: #dc2626;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.contact-info {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  text-align: center;
}

.table-of-contents {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.table-of-contents h3 {
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: var(--space-2);
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.table-of-contents a:hover {
  color: var(--primary-dark);
}