/**
 * ============================================
 * PUBLIC OPINION PLATFORM - WHITE THEME WITH GLOW
 * ============================================
 * Clean white background with subtle glow effects and pop
 */

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
  /* White/Light Backgrounds */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Cyan/Blue Accents */
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --cyan-glow-strong: rgba(6, 182, 212, 0.3);

  /* Blue Accents */
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --blue-glow-strong: rgba(59, 130, 246, 0.3);

  /* Purple Accents */
  --purple-400: #a855f7;
  --purple-500: #9333ea;
  --purple-glow: rgba(168, 85, 247, 0.15);

  /* Semantic Colors */
  --red-400: #f87171;
  --red-500: #ef4444;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --yellow-400: #facc15;
  --orange-400: #fb923c;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  --gradient-hover: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  --gradient-subtle: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(59, 130, 246, 0.05));
  --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow-cyan: 0 0 20px var(--cyan-glow), 0 0 40px var(--cyan-glow);
  --shadow-glow-blue: 0 0 20px var(--blue-glow), 0 0 40px var(--blue-glow);
  --shadow-glow-purple: 0 0 20px var(--purple-glow), 0 0 40px var(--purple-glow);
  --shadow-pop: 0 20px 50px -12px rgba(6, 182, 212, 0.25);
}

/* ============================================
   ANIMATIONS - DISABLED FOR PERFORMANCE
   ============================================ */
/* @keyframes gradientShift - DISABLED (causes layout shift) */
/* @keyframes float - DISABLED (causes heavy repaints) */
/* @keyframes pulse - DISABLED */
/* @keyframes glow - DISABLED */
/* @keyframes shimmer - DISABLED */

/* Keep only essential animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BASE STYLES - WHITE BACKGROUND
   ============================================ */
body.neon-theme {
  background: var(--white);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0px, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.04) 0px, transparent 70%);
  /* background-attachment: fixed removed for performance */
  color: var(--gray-700);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Subtle animated background mesh */
body.neon-theme::before { display: none !important; }

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* Grid overlay */
body.neon-theme::after { display: none !important; }

/* ============================================
   CARDS WITH GLOW & POP
   ============================================ */
body.neon-theme .card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(6, 182, 212, 0.05);
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

body.neon-theme .card::before { display: none !important; }

body.neon-theme .card::after { display: none !important; }





body.neon-theme .card:hover {
  border-color: var(--cyan-400);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(6, 182, 212, 0.2),
    0 20px 60px -12px rgba(6, 182, 212, 0.3),
    0 0 40px var(--cyan-glow);
  transform: translateY(-1px);
}

/* Card content above effects */
body.neon-theme .card>* {
  position: relative;
  z-index: 1;
}

/* ============================================
   BUTTONS - Apple-style instant press feedback
   ============================================ */
body.neon-theme .btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  transition: transform 0.1s ease-out, box-shadow 0.15s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1);
}

body.neon-theme .btn-primary:active {
  transform: scale(0.97);
  transition: transform 0.05s ease-out;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.neon-theme .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.neon-theme .btn-outline-secondary {
  background: var(--white);
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  border-radius: 12px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease-out !important;
}

body.neon-theme .btn-outline-secondary:hover {
  color: var(--cyan-600);
  border-color: var(--cyan-400);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   INPUT FIELDS WITH GLOW
   ============================================ */
body.neon-theme .form-control,
body.neon-theme .form-select {
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  color: var(--gray-700);
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.neon-theme .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

body.neon-theme .form-control:focus,
body.neon-theme .form-select:focus {
  background: var(--white);
  border-color: var(--cyan-400);
  color: var(--gray-700);
  box-shadow:
    0 0 0 4px var(--cyan-glow),
    0 0 20px var(--cyan-glow-strong),
    inset 0 0 20px rgba(6, 182, 212, 0.03);
  outline: none;
  transform: translateY(-1px);
}

body.neon-theme .form-control::placeholder {
  color: var(--gray-400);
}

body.neon-theme .input-group-text {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-right: none;
  color: var(--cyan-600);
  border-radius: 10px 0 0 10px;
}

body.neon-theme .input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

body.neon-theme .input-group .form-control:focus {
  border-left: none;
}

body.neon-theme .input-group {
  border-radius: 10px;
  overflow: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body.neon-theme h1,
body.neon-theme h2,
body.neon-theme h3,
body.neon-theme h4,
body.neon-theme h5,
body.neon-theme h6 {
  color: var(--gray-800);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.neon-theme .text-muted {
  color: var(--gray-500) !important;
}

body.neon-theme .text-primary {
  color: var(--cyan-600) !important;
}

/* Gradient text */
body.neon-theme .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ALERTS WITH GLOW
   ============================================ */
body.neon-theme .alert {
  border-radius: 12px;
  border: 2px solid;
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}

body.neon-theme .alert-success {
  background: rgba(74, 222, 128, 0.08);
  border-color: var(--green-400);
  color: #166534;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

body.neon-theme .alert-danger {
  background: rgba(248, 113, 113, 0.08);
  border-color: var(--red-400);
  color: #991b1b;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
}

body.neon-theme .alert-warning {
  background: rgba(250, 204, 21, 0.08);
  border-color: var(--yellow-400);
  color: #854d0e;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

/* ============================================
   LINKS
   ============================================ */
body.neon-theme a {
  color: var(--cyan-600);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

body.neon-theme a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

body.neon-theme a:hover {
  color: var(--cyan-700);
  text-shadow: 0 0 10px var(--cyan-glow);
}

body.neon-theme a:hover::after {
  width: 100%;
}

/* ============================================
   BADGES WITH GLOW
   ============================================ */
body.neon-theme .badge {
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

body.neon-theme .badge-primary {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--cyan-400);
  color: var(--cyan-700);
  box-shadow: 0 0 10px var(--cyan-glow);
}

body.neon-theme .badge-success {
  background: rgba(74, 222, 128, 0.1);
  border-color: var(--green-400);
  color: #166534;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
body.neon-theme .hero-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

body.neon-theme .hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  animation: none;
  opacity: 0.6;
}

body.neon-theme .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--cyan-glow));
}

body.neon-theme .hero-description {
  color: var(--gray-600);
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Compact Hero Variant - Used on inner pages (papers, features, about, blog, etc.) */
body.neon-theme .hero-compact {
  padding: 1rem 0 !important;
  min-height: auto !important;
  margin-bottom: 1rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%) !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.neon-theme .hero-compact::before {
  display: none !important;
}

body.neon-theme .hero-compact .hero-title {
  font-size: 1.75rem !important;
  margin-bottom: 0.5rem !important;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.2 !important;
}

body.neon-theme .hero-compact .hero-description {
  font-size: 0.95rem !important;
  margin-bottom: 1rem !important;
  color: var(--gray-500) !important;
  line-height: 1.5 !important;
}

/* ============================================
   SEARCH BAR WITH GLOW
   ============================================ */
body.neon-theme .search-wrapper {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-md);
}

body.neon-theme .search-wrapper:focus-within {
  border-color: var(--cyan-400);
  box-shadow:
    var(--shadow-xl),
    0 0 0 4px var(--cyan-glow),
    0 0 40px var(--cyan-glow-strong);
  transform: none;
}

body.neon-theme .search-wrapper .form-control {
  border: none;
  background: transparent;
  color: var(--gray-700);
  flex: 1;
}

body.neon-theme .search-wrapper .form-control:focus {
  box-shadow: none;
}

body.neon-theme .search-wrapper .search-icon {
  color: var(--cyan-600);
  font-size: 1.3rem;
  margin-left: 15px;
}

/* ============================================
   FEATURE CARDS WITH POP
   ============================================ */
body.neon-theme .feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px 30px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

body.neon-theme .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

body.neon-theme .feature-card:hover::before {
  opacity: 1;
}

body.neon-theme .feature-card:hover {
  border-color: var(--cyan-400);
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(6, 182, 212, 0.2),
    0 20px 60px -12px rgba(6, 182, 212, 0.3),
    0 0 50px var(--cyan-glow);
}

body.neon-theme .feature-card>* {
  position: relative;
  z-index: 1;
}

body.neon-theme .feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  box-shadow:
    0 10px 30px var(--cyan-glow-strong),
    0 0 0 1px rgba(6, 182, 212, 0.2);
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

body.neon-theme .feature-card:hover .feature-icon {
  transform: none;
  box-shadow:
    0 15px 40px var(--cyan-glow-strong),
    0 0 0 1px rgba(6, 182, 212, 0.4),
    0 0 30px var(--cyan-glow);
}

/* ============================================
   STATS WITH GLOW
   ============================================ */
body.neon-theme .stat-item {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

body.neon-theme .stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.neon-theme .stat-item:hover::before {
  opacity: 1;
}

body.neon-theme .stat-item:hover {
  border-color: var(--cyan-400);
  transform: none;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(6, 182, 212, 0.2),
    0 20px 60px -12px rgba(6, 182, 212, 0.3),
    0 0 50px var(--cyan-glow);
}

body.neon-theme .stat-item>* {
  position: relative;
  z-index: 1;
}

body.neon-theme .stat-value {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--cyan-glow));
  margin-bottom: 12px;
}

body.neon-theme .stat-label {
  color: var(--gray-600);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ============================================
   SCROLLBAR
   ============================================ */
body.neon-theme ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.neon-theme ::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

body.neon-theme ::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
  border: 2px solid var(--gray-100);
}

body.neon-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-hover);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.neon-glow {
  box-shadow:
    0 0 20px var(--cyan-glow),
    0 0 40px var(--cyan-glow),
    0 0 60px var(--cyan-glow);
}

.neon-glow-purple {
  box-shadow:
    0 0 20px var(--purple-glow),
    0 0 40px var(--purple-glow),
    0 0 60px var(--purple-glow);
}

.neon-text {
  color: var(--cyan-600);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.neon-border {
  border: 2px solid var(--cyan-400);
  box-shadow:
    0 0 20px var(--cyan-glow),
    0 0 40px var(--cyan-glow);
}

.neon-gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation utilities */
.animate-float {
  animation: none;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 4s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  body.neon-theme .hero-title {
    font-size: 2.5rem;
  }

  body.neon-theme .stat-value {
    font-size: 2.5rem;
  }

  body.neon-theme .feature-card {
    padding: 30px 20px;
  }
}

/* ============================================
   ACCESSIBILITY — Apple-style reduced motion & transparency
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  body.neon-theme *,
  body.neon-theme *::before,
  body.neon-theme *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.neon-theme .btn-primary:active,
  body.neon-theme .search-btn:active {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.neon-theme .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  body.neon-theme .navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #d1d5db;
  }
  body.neon-theme .btn-primary {
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/* Prevent tall dropdown menus (e.g. user menu) from being cut off
   at the bottom of the screen at 100% browser zoom */
.dropdown-menu {
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  overflow-x: hidden;
}