/* ForexGoldAlerts.com - GoldTradeForecast Inspired Luxury Gold & AdSense Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Graceful Light Theme with Rich Gold Accents */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFDF5;
  
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;
  --border-gold: rgba(217, 119, 6, 0.4);
  
  /* Rich Metallic Gold Palette (Exact Match from User Assets) */
  --gold-50: #FAF8F2;
  --gold-100: #F5EFE0;
  --gold-200: #EADBBC;
  --gold-300: #D8BD86;
  --gold-400: #CCA34F;
  --gold-500: #BA942E;
  --gold-600: #A68023;
  --gold-700: #8B6A1A;
  --gold-800: #6F5211;
  --gold-900: #4B3608;
  
  --gold-gradient: linear-gradient(135deg, #EADBBC 0%, #D8BD86 35%, #BA942E 70%, #8B6A1A 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(234, 219, 188, 0.5) 0%, rgba(216, 189, 134, 0.3) 100%);
  --gold-glow: 0 0 25px rgba(186, 148, 46, 0.22);
  --gold-card-border: linear-gradient(135deg, #D8BD86, #BA942E);
  
  --navy-950: #05070B;
  --navy-900: #0B0F17;
  --navy-850: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  
  --bullish: #10B981;
  --bullish-bg: #ECFDF5;
  --bearish: #EF4444;
  --bearish-bg: #FEF2F2;
  --neutral: #64748B;
  --neutral-bg: #F1F5F9;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 20px -3px rgba(186, 148, 46, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(186, 148, 46, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 10px 25px -5px rgba(186, 148, 46, 0.35);
}

/* Dark Mode Overrides with Golden Luminescence */
html.dark {
  --bg-primary: #06090E;
  --bg-secondary: #0A0F18;
  --bg-tertiary: #111827;
  --bg-card: #0D1524;
  --bg-card-hover: #131E33;
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  --border-light: #1E293B;
  --border-subtle: #334155;
  --border-gold: rgba(186, 148, 46, 0.45);
  
  --gold-gradient-soft: linear-gradient(135deg, rgba(186, 148, 46, 0.15) 0%, rgba(139, 106, 26, 0.06) 100%);
  --bullish-bg: rgba(16, 185, 129, 0.15);
  --bearish-bg: rgba(239, 68, 68, 0.15);
  --neutral-bg: rgba(100, 116, 139, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px -5px rgba(186, 148, 46, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-600);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

/* Metallic Golden Utilities */
.gold-gradient-text {
  background: linear-gradient(135deg, #EADBBC 0%, #D8BD86 35%, #BA942E 70%, #8B6A1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.gold-border-glow {
  border: 1px solid rgba(186, 148, 46, 0.45);
  box-shadow: 0 0 15px rgba(186, 148, 46, 0.15);
}

.gold-badge-solid {
  background: linear-gradient(135deg, #D8BD86 0%, #BA942E 50%, #8B6A1A 100%);
  color: #1A1305;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(186, 148, 46, 0.3);
}

.gold-btn {
  background: linear-gradient(135deg, #EADBBC 0%, #CCA34F 35%, #BA942E 75%, #8B6A1A 100%);
  color: #150E03;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.75rem;
  border: 1px solid #D8BD86;
  box-shadow: 0 4px 15px rgba(186, 148, 46, 0.35);
  transition: all 0.2s ease;
}

.gold-btn:hover {
  background: linear-gradient(135deg, #FAF4E6 0%, #EADBBC 35%, #CCA34F 75%, #A68023 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(186, 148, 46, 0.45);
}

.card-elevated {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-elevated:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.gold-glass-card {
  background: linear-gradient(135deg, rgba(234, 219, 188, 0.10) 0%, rgba(186, 148, 46, 0.04) 100%);
  border: 1px solid rgba(186, 148, 46, 0.40);
  backdrop-filter: blur(8px);
}

/* Past Performance Gold Table Header (Inspired by Attached Image 2) */
.gold-table-header {
  background: linear-gradient(180deg, #EADBBC 0%, #D8BD86 35%, #BA942E 75%, #8B6A1A 100%);
  color: #1A1305;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Navigation Dropdown Menus */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.group:hover .nav-dropdown,
.group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  transition: all 0.15s ease;
}
.nav-dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--gold-600);
}
html.dark .nav-dropdown-item:hover {
  background-color: var(--bg-tertiary);
  color: #FBBF24;
}

/* Bullish / Bearish Badges */
.badge-bullish {
  background-color: var(--bullish-bg);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
html.dark .badge-bullish {
  color: #34D399;
}

.badge-bearish {
  background-color: var(--bearish-bg);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
html.dark .badge-bearish {
  color: #F87171;
}

.badge-neutral {
  background-color: var(--neutral-bg);
  color: var(--neutral);
  border: 1px solid var(--border-subtle);
}

/* Live Price Flash Animations */
.price-flash-up {
  animation: flashGreen 0.7s ease;
}
.price-flash-down {
  animation: flashRed 0.7s ease;
}
@keyframes flashGreen {
  0% { color: #10B981; transform: scale(1.03); text-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
  100% { transform: scale(1); text-shadow: none; }
}
@keyframes flashRed {
  0% { color: #EF4444; transform: scale(1.03); text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
  100% { transform: scale(1); text-shadow: none; }
}

/* Pulsing Live Dot */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulseAnimation 2s infinite;
}
@keyframes pulseAnimation {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Google AdSense Compliant Unit Styles (Zero Layout Shift - CLS = 0) */
.adsense-wrapper {
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.adsense-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.adsense-placeholder {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-subtle);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.2s ease;
  width: 100%;
}

.adsense-placeholder:hover {
  border-color: var(--gold-500);
  background: var(--bg-tertiary);
}

.adsense-leaderboard {
  min-height: 90px;
  max-width: 728px;
  aspect-ratio: 728 / 90;
}

.adsense-rectangle {
  min-height: 250px;
  max-width: 300px;
  aspect-ratio: 300 / 250;
}

.adsense-halfpage {
  min-height: 600px;
  max-width: 300px;
  aspect-ratio: 300 / 600;
}

.adsense-in-article {
  min-height: 120px;
  max-width: 100%;
  aspect-ratio: 728 / 120;
}

/* Clean Tables */
.market-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.market-table th {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--gold-600);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-gold);
}
html.dark .market-table th {
  color: #FBBF24;
}
.market-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.market-table tr:last-child td {
  border-bottom: none;
}
.market-table tr:hover td {
  background-color: var(--bg-card-hover);
}

/* FAQ Accordion Styling */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-button {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.15s ease;
}
.faq-button:hover {
  color: var(--gold-600);
}
html.dark .faq-button:hover {
  color: #FBBF24;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-content.open {
  max-height: 700px;
  padding-bottom: 1.25rem;
}
.faq-icon {
  transition: transform 0.25s ease;
}
.faq-icon.rotate {
  transform: rotate(180deg);
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-gold);
  max-width: 90%;
  width: 580px;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  overflow: hidden;
}
.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: var(--gold-gradient);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s linear;
}

/* Table of Contents Sticky Box */
.toc-box {
  border-left: 3px solid var(--gold-500);
}
.toc-link {
  color: var(--text-muted);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.toc-link:hover, .toc-link.active {
  color: var(--gold-600);
  padding-left: 4px;
}
html.dark .toc-link:hover, html.dark .toc-link.active {
  color: #FBBF24;
}

.hero-title {
  line-height: 1.15;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
}

