/* Dark Mode Styles for Bravo Claims */

[data-theme="dark"] {
  --navy-primary: #1a4d8f;
  --navy-dark: #0d2847;
  --navy-light: #2563a8;
  --delta-red: #e84336;
  --delta-dark: #c73529;
  --accent: #66FCF1;
  --accent-dark: #45B7AC;
  --white: #0f1419;
  --text: #e5e7eb;
  --text-light: #9ca3af;
  --muted: #6b7280;
  --line: #1f2937;
  --bg: #111827;
  --bg-dark: #0d1117;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
  background: var(--white);
  color: var(--text);
}

[data-theme="dark"] .header {
  background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
  border-bottom: 3px solid var(--delta-red);
}

[data-theme="dark"] .header .logo,
[data-theme="dark"] .header .logo-text,
[data-theme="dark"] .nav a,
[data-theme="dark"] .mobile-menu-item {
  color: #ffffff !important;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-subtitle strong,
[data-theme="dark"] .app-download-text {
  color: #ffffff !important;
}

[data-theme="dark"] .search-examples .example-label,
[data-theme="dark"] .example-query {
  color: #ffffff !important;
}

[data-theme="dark"] .search-container {
  background: #1f2937;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .search-input {
  color: var(--text);
  background: transparent;
}

[data-theme="dark"] .search-input::placeholder {
  color: var(--muted);
}

[data-theme="dark"] .section-title {
  background: linear-gradient(135deg, #3b82f6 0%, var(--delta-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .tool-card,
[data-theme="dark"] .update-card,
[data-theme="dark"] .partner-card {
  background: #1f2937;
  border: 1px solid #374151;
}

[data-theme="dark"] .tool-card:hover,
[data-theme="dark"] .update-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .newsletter-card,
[data-theme="dark"] .donate-card {
  background: #1f2937;
  border: 1px solid #374151;
}

[data-theme="dark"] .newsletter-input {
  background: #111827;
  border: 2px solid #374151;
  color: var(--text);
}

[data-theme="dark"] .newsletter-input:focus {
  border-color: var(--delta-red);
}

[data-theme="dark"] .footer {
  background: linear-gradient(135deg, #0d1117 0%, #1a365d 100%);
}

[data-theme="dark"] .footer h4,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-bottom strong,
[data-theme="dark"] .toggle-label {
  color: #ffffff !important;
}

[data-theme="dark"] .footer-section a {
  opacity: 0.9;
}

[data-theme="dark"] .footer-section a:hover {
  opacity: 1;
  color: var(--accent) !important;
}

[data-theme="dark"] .calc-intro,
[data-theme="dark"] .search-intro {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(55, 65, 81, 0.3) 100%);
  border: 1px solid #374151;
}

[data-theme="dark"] .mobile-menu {
  background: linear-gradient(135deg, #0d1117 0%, #0d2847 100%);
}

[data-theme="dark"] .sponsor-box {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.3) 0%, rgba(55, 65, 81, 0.2) 100%);
  border: 2px dashed #374151;
}

[data-theme="dark"] .contact-cta {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.3) 0%, rgba(55, 65, 81, 0.2) 100%);
  border: 2px solid #374151;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0.85;
}

.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.theme-toggle::after {
  content: attr(title);
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: var(--navy-dark);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--navy-dark);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.theme-toggle:hover::after,
.theme-toggle:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .theme-toggle {
    bottom: 80px;
    left: 20px;
  }

  .theme-toggle::after,
  .theme-toggle::before {
    display: none;
  }
}
