/* ============================================
   TIGHT LINES 30A — DESIGN TOKENS & STYLES
   Premium coastal fishing guide · 2026
   ============================================ */

/* --- Type Scale (Fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- 4px Spacing System --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.75rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth:      400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring:      500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Content widths --- */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --content-full:    100%;

  /* --- Font families --- */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-score:   'Bebas Neue', 'DM Sans', sans-serif;

  /* --- Sticky nav height --- */
  --nav-height: 60px;
}

/* ========================
   LIGHT MODE (default)
   ======================== */
:root, [data-theme="light"] {
  --color-bg:               #f8f5f0;
  --color-surface:          #f0ece3;
  --color-surface-2:        #f8f5f0;
  --color-surface-offset:   #e6e0d6;
  --color-surface-offset-2: #dbd4c8;
  --color-surface-dynamic:  #cdc5b6;
  --color-divider:          #c4bbac;
  --color-border:           #b4aa9a;

  --color-text:             #0d1b2a;
  --color-text-muted:       #475569;
  --color-text-faint:       #8899aa;
  --color-text-inverse:     #f8f5f0;

  --color-primary:          #0284c7;
  --color-primary-hover:    #0369a1;
  --color-primary-active:   #075985;
  --color-primary-highlight: rgba(2, 132, 199, 0.08);

  --color-secondary:        #d97706;
  --color-secondary-hover:  #b45309;
  --color-secondary-active: #92400e;

  --color-error:            #dc2626;
  --color-error-hover:      #b91c1c;
  --color-error-active:     #991b1b;

  --color-success:          #059669;
  --color-success-hover:    #047857;
  --color-success-active:   #065f46;

  --color-warning:          #d97706;
  --color-warning-hover:    #b45309;

  --color-glass:            rgba(248, 245, 240, 0.72);
  --color-glass-border:     rgba(180, 170, 154, 0.45);

  --shadow-sm:   0 1px 3px rgba(13, 27, 42, 0.06), 0 1px 2px rgba(13, 27, 42, 0.04);
  --shadow-md:   0 4px 16px rgba(13, 27, 42, 0.08), 0 2px 6px rgba(13, 27, 42, 0.04);
  --shadow-lg:   0 16px 48px rgba(13, 27, 42, 0.12), 0 4px 12px rgba(13, 27, 42, 0.06);
  --shadow-glow: none;
}

/* ========================
   DARK MODE
   ======================== */
[data-theme="dark"] {
  --color-bg:               #030b15;
  --color-surface:          #071524;
  --color-surface-2:        #0a1d30;
  --color-surface-offset:   #0d2236;
  --color-surface-offset-2: #102842;
  --color-surface-dynamic:  #152f4c;
  --color-divider:          #1a3858;
  --color-border:           #244766;

  --color-text:             #edeae3;
  --color-text-muted:       #7a9ab8;
  --color-text-faint:       #3f5f80;
  --color-text-inverse:     #030b15;

  --color-primary:          #38bdf8;
  --color-primary-hover:    #0ea5e9;
  --color-primary-active:   #0284c7;
  --color-primary-highlight: rgba(56, 189, 248, 0.12);

  --color-secondary:        #fbbf24;
  --color-secondary-hover:  #f59e0b;
  --color-secondary-active: #d97706;

  --color-error:            #f87171;
  --color-error-hover:      #ef4444;
  --color-error-active:     #dc2626;

  --color-success:          #34d399;
  --color-success-hover:    #10b981;
  --color-success-active:   #059669;

  --color-warning:          #fbbf24;
  --color-warning-hover:    #f59e0b;

  --color-glass:            rgba(7, 21, 36, 0.78);
  --color-glass-border:     rgba(36, 71, 102, 0.55);

  --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 80px rgba(56, 189, 248, 0.1), 0 0 160px rgba(56, 189, 248, 0.05);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #030b15;
    --color-surface:          #071524;
    --color-surface-2:        #0a1d30;
    --color-surface-offset:   #0d2236;
    --color-surface-offset-2: #102842;
    --color-surface-dynamic:  #152f4c;
    --color-divider:          #1a3858;
    --color-border:           #244766;
    --color-text:             #edeae3;
    --color-text-muted:       #7a9ab8;
    --color-text-faint:       #3f5f80;
    --color-text-inverse:     #030b15;
    --color-primary:          #38bdf8;
    --color-primary-hover:    #0ea5e9;
    --color-primary-active:   #0284c7;
    --color-primary-highlight: rgba(56, 189, 248, 0.12);
    --color-secondary:        #fbbf24;
    --color-secondary-hover:  #f59e0b;
    --color-secondary-active: #d97706;
    --color-error:            #f87171;
    --color-error-hover:      #ef4444;
    --color-error-active:     #dc2626;
    --color-success:          #34d399;
    --color-success-hover:    #10b981;
    --color-success-active:   #059669;
    --color-warning:          #fbbf24;
    --color-warning-hover:    #f59e0b;
    --color-glass:            rgba(7, 21, 36, 0.78);
    --color-glass-border:     rgba(36, 71, 102, 0.55);
    --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 80px rgba(56, 189, 248, 0.1), 0 0 160px rgba(56, 189, 248, 0.05);
  }
}

/* ========================
   GENERAL LAYOUT
   ======================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.container--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

/* ========================
   TABULAR NUMBERS
   ======================== */
.score-number,
.tide-event-height,
.forecast-temp,
.forecast-score-badge,
.condition-chip,
.breakdown-score {
  font-variant-numeric: tabular-nums;
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); font-weight: 400; }
h2 { font-size: var(--text-xl);  font-weight: 400; }
h3 { font-size: var(--text-lg);  font-weight: 400; }

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-10);
  position: relative;
  display: inline-block;
  line-height: 1.1;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-full);
}

.reveal.visible .section-title::after {
  width: 80px;
}

/* ========================
   GRADIENT TEXT UTILITY
   ======================== */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================
   STICKY NAV
   ======================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--color-glass-border);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary) 50%, var(--color-primary));
  opacity: 0.7;
}

.sticky-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-8));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--nav-height);
}

.sticky-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-text);
  white-space: nowrap;
}

.sticky-nav-logo {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.sticky-nav-links {
  display: flex;
  gap: var(--space-1);
}

.sticky-nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.sticky-nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.theme-toggle--nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.theme-toggle--nav:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-color: var(--color-primary-highlight);
}

@media (max-width: 640px) {
  .sticky-nav-links {
    display: none;
  }
}

/* ========================
   HEADER / HERO
   ======================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(2, 132, 199, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(217, 119, 6, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

[data-theme="dark"] .hero,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero {
    background:
      radial-gradient(ellipse at 25% 25%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
      radial-gradient(ellipse at 78% 78%, rgba(251, 191, 36, 0.07) 0%, transparent 45%),
      linear-gradient(180deg, #071524 0%, #030b15 100%);
  }
}

/* Override dark mode hero background properly */
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse at 25% 25%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 78%, rgba(251, 191, 36, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #071524 0%, #030b15 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orbs */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(100px);
}

.hero-glow--primary {
  width: 60vw;
  height: 60vw;
  max-width: 640px;
  max-height: 640px;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, transparent 70%);
  animation: glow-drift-1 18s ease-in-out infinite alternate;
}

.hero-glow--secondary {
  width: 50vw;
  height: 50vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -15%;
  right: -5%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
  animation: glow-drift-2 22s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-glow--primary {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
}

[data-theme="dark"] .hero-glow--secondary {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
}

@keyframes glow-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(5%, 8%) scale(1.1); }
}

@keyframes glow-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6%, -5%) scale(1.08); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 64px;
  background: var(--color-bg);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 64' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 32 C150 0 300 64 450 32 C600 0 750 64 900 32 C1050 0 1150 56 1200 32 L1200 64 L0 64Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 64' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 32 C150 0 300 64 450 32 C600 0 750 64 900 32 C1050 0 1150 56 1200 32 L1200 64 L0 64Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  z-index: 1;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 2;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-logo svg {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
}

.hero-logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.1;
}

.hero-logo-text small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  transition: all var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: var(--space-8);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.1;
  font-weight: 400;
}

.hero-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ========================
   FISHING SCORE — HERO
   ======================== */
.fishing-score-display {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--color-glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5) var(--space-6);
  max-width: 480px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  margin-bottom: var(--space-5);
  position: relative;
  box-shadow: var(--shadow-md);
}

.fishing-score-display:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary);
  transform: translateY(-2px);
}

.fishing-score-display:active {
  transform: translateY(0);
}

[data-theme="dark"] .fishing-score-display {
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.score-expand-hint {
  margin-left: auto;
  color: var(--color-text-faint);
  transition: transform var(--transition-interactive);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
}

.fishing-score-display:hover .score-expand-hint {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.fishing-score-display.expanded .score-expand-hint {
  transform: rotate(180deg);
}

.score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.score-ring svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--color-surface-offset);
  stroke-width: 5;
}

.score-ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .score-ring-fill {
  filter: drop-shadow(0 0 12px currentColor);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-score);
  font-size: 2.75rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1;
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.score-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.score-rating {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.1;
}

.score-fish {
  font-size: var(--text-base);
  letter-spacing: 3px;
  margin-top: var(--space-1);
}

/* ========================
   SCORE BREAKDOWN PANEL (inline hero)
   ======================== */
.score-breakdown-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  opacity: 0;
  max-width: 480px;
  margin-bottom: var(--space-4);
}

.score-breakdown-panel.open {
  max-height: 500px;
  opacity: 1;
}

.breakdown-content {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.breakdown-row + .breakdown-row {
  border-top: 1px solid var(--color-divider);
}

.breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.breakdown-dot.status-good { background: var(--color-success); }
.breakdown-dot.status-fair { background: var(--color-secondary); }
.breakdown-dot.status-poor { background: var(--color-error); }

.breakdown-info {
  flex: 1;
  min-width: 0;
}

.breakdown-name {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 2px;
}

.breakdown-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.breakdown-score {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

.breakdown-bar {
  width: 100%;
  height: 4px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.breakdown-bar-fill.fill-good { background: var(--color-success); }
.breakdown-bar-fill.fill-fair { background: var(--color-secondary); }
.breakdown-bar-fill.fill-poor { background: var(--color-error); }

/* ========================
   CONDITIONS BENTO
   ======================== */
.conditions-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.condition-chip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  color: var(--color-text);
  transition: all var(--transition-interactive);
  min-height: 80px;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.condition-chip:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.condition-chip i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.condition-chip-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  display: block;
}

.condition-chip-value {
  font-weight: 700;
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.2;
}

/* Last updated */
.last-updated {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.last-updated::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  display: inline-block;
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

/* ========================
   CARDS (glassmorphism elevated)
   ======================== */
.card {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth),
              transform var(--transition-smooth),
              border-color var(--transition-interactive);
}

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

.card--featured {
  position: relative;
  border: none;
  background: var(--color-glass);
  box-shadow: var(--shadow-md);
}

.card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

[data-theme="dark"] .card {
  border-color: var(--color-border);
}

[data-theme="dark"] .card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.08);
}

/* ========================
   TODAY'S RECOMMENDATION
   ======================== */
.recommendation-section {
  background: var(--color-bg);
}

.rec-card {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .rec-card {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.rec-main-spot {
  padding: var(--space-2);
}

.rec-spot-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.rec-walk-time {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

.rec-reasoning {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.rec-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.rec-detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.rec-detail-img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  margin-bottom: var(--space-2);
}

.rec-detail-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-faint);
}

.rec-detail-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.rec-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.rec-alt-spot {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.rec-alt-spot:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rec-alt-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.rec-alt-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================
   14-DAY FORECAST
   ======================== */
#forecast {
  background: var(--color-surface);
  position: relative;
}

#forecast::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(2, 132, 199, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] #forecast::before {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .forecast-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
    margin-inline: calc(clamp(var(--space-4), 4vw, var(--space-8)) * -1);
    padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  }

  .forecast-grid > * {
    scroll-snap-align: start;
    min-width: 148px;
    flex-shrink: 0;
  }
}

.forecast-card {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: card-enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: var(--shadow-sm);
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forecast-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-primary);
  transform: translateY(-4px) scale(1.02);
}

.forecast-card[aria-expanded="true"] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.forecast-card.today {
  border-color: var(--color-primary);
  border-width: 2px;
  background: linear-gradient(
    160deg,
    var(--color-glass) 0%,
    var(--color-primary-highlight) 100%
  );
}

.forecast-day {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.forecast-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.forecast-icon {
  font-size: 1.875rem;
  margin-bottom: var(--space-2);
  display: flex;
  justify-content: center;
  line-height: 1;
}

.forecast-temp {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.forecast-temp-lo {
  color: var(--color-text-muted);
  font-weight: 400;
}

.forecast-wind {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.forecast-score-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-interactive);
  letter-spacing: 0.02em;
}

.forecast-score-badge:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.score-good { background: rgba(5, 150, 105, 0.12);  color: var(--color-success); }
.score-fair { background: rgba(217, 119, 6, 0.12);   color: var(--color-secondary); }
.score-poor { background: rgba(220, 38, 38, 0.12);   color: var(--color-error); }

[data-theme="dark"] .score-good { background: rgba(52, 211, 153, 0.15); color: var(--color-success); }
[data-theme="dark"] .score-fair { background: rgba(251, 191, 36, 0.15); color: var(--color-secondary); }
[data-theme="dark"] .score-poor { background: rgba(248, 113, 113, 0.15); color: var(--color-error); }

/* Expanded day detail */
.forecast-detail {
  display: none;
  grid-column: 1 / -1;
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-8);
  margin-top: var(--space-3);
  animation: detail-open 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
}

@keyframes detail-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forecast-detail.active {
  display: block;
}

.forecast-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.detail-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-faint);
}

.detail-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* Forecast detail score breakdown section */
.detail-breakdown-section {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.detail-breakdown-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

/* ========================
   SCORE MODAL
   ======================== */
.score-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.score-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.score-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 0;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.score-modal-overlay.open .score-modal {
  transform: scale(1) translateY(0);
}

.score-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.score-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.score-modal-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.score-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  transition: all var(--transition-interactive);
}

.score-modal-close:hover {
  background: var(--color-surface-offset-2);
  color: var(--color-text);
}

.score-modal-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

/* ========================
   SPECIES GUIDE
   ======================== */
#species {
  background: var(--color-bg);
}

.species-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}

.species-card {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}

.species-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.species-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
}

.species-card-header:hover {
  background: var(--color-primary-highlight);
}

.species-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.in-season-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.in-season-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

[data-theme="dark"] .in-season-badge {
  background: rgba(52, 211, 153, 0.12);
}

.species-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
  flex-shrink: 0;
}

.species-card[open] .species-chevron {
  transform: rotate(180deg);
}

.species-body {
  padding: 0 var(--space-5) var(--space-5);
  display: none;
}

.species-card[open] .species-body {
  display: block;
  animation: detail-open 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.species-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-12);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.season-bar {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.season-month {
  flex: 1;
  height: 24px;
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-faint);
  padding-bottom: 2px;
  position: relative;
}

.season-month::after {
  content: attr(data-month);
  position: absolute;
  bottom: -16px;
  font-size: 9px;
  color: var(--color-text-faint);
}

.season-0 { background: var(--color-surface-offset); }
.season-1 { background: rgba(5, 150, 105, 0.15); }
.season-2 { background: rgba(5, 150, 105, 0.35); }
.season-3 { background: rgba(5, 150, 105, 0.62); }

[data-theme="dark"] .season-1 { background: rgba(52, 211, 153, 0.15); }
[data-theme="dark"] .season-2 { background: rgba(52, 211, 153, 0.32); }
[data-theme="dark"] .season-3 { background: rgba(52, 211, 153, 0.55); }

.species-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.species-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.species-info-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-faint);
}

.species-info-value {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* ========================
   FISHING SPOTS
   ======================== */
#spots {
  background: var(--color-surface);
  position: relative;
}

#spots::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(217, 119, 6, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

[data-theme="dark"] #spots::before {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(251, 191, 36, 0.05) 0%, transparent 55%);
}

.spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
}

.spot-card {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.spot-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.spot-number {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

[data-theme="dark"] .spot-number {
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.spot-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.spot-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.2;
}

.spot-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.spot-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.spot-species {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.spot-tip {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
  line-height: 1.5;
}

/* ========================
   FLY BOX
   ======================== */
#flybox {
  background: var(--color-bg);
}

.fly-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
}

.fly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: var(--space-3);
}

.fly-card {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}

.fly-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fly-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  border-radius: var(--radius-md);
}

.fly-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}

.fly-details {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.fly-targets {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
}

/* Rod setups */
.rod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.rod-card {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}

.rod-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rod-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.rod-spec {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================
   TIDE & SOLUNAR
   ======================== */
#tides {
  background: var(--color-surface);
}

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

@media (min-width: 768px) {
  .tide-solunar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tide-chart-container {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.tide-events {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.tide-event {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  transition: background var(--transition-interactive),
              transform var(--transition-interactive);
}

.tide-event:hover {
  background: var(--color-surface-offset-2);
  transform: translateX(2px);
}

/* Current tide direction + countdown */
.tide-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-highlight);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.tide-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.tide-status-indicator.tide-rising {
  color: var(--color-primary);
}

.tide-status-indicator.tide-falling {
  color: var(--color-text-muted);
}

.tide-status-next {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Icon badge (replaces emoji) */
.tide-event-icon-wrap {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.tide-event-icon-wrap.tide-high {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-primary);
}

.tide-event-icon-wrap.tide-low {
  background: rgba(5, 150, 105, 0.12);
  color: var(--color-success);
}

.tide-event-info {
  flex: 1;
  min-width: 0;
}

.tide-event-time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.tide-event-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Right column: height value + proportional bar */
.tide-event-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.tide-event-height {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.tide-height-bar-wrap {
  width: 3.5rem;
  height: 4px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tide-height-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.tide-height-bar.tide-high {
  background: var(--color-primary);
}

.tide-height-bar.tide-low {
  background: var(--color-success);
}

/* Past tide events are dimmed */
.tide-event-past {
  opacity: 0.45;
}

.tide-past-badge {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 400;
  margin-left: var(--space-2);
}

.solunar-panel {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.solunar-windows-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  padding: var(--space-3) 0 var(--space-1);
}

.solunar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.solunar-item:last-of-type {
  border-bottom: none;
}

/* Active window — subtle highlight */
.solunar-item-active {
  background: rgba(2, 132, 199, 0.07);
  border-radius: var(--radius-md);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  margin-left: calc(-1 * var(--space-2));
  margin-right: calc(-1 * var(--space-2));
  border-bottom: none !important;
}

.solunar-active-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(2, 132, 199, 0.15);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  margin-left: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Past windows dimmed */
.solunar-item-past {
  opacity: 0.4;
}

/* Icon badges for major/minor distinction */
.solunar-icon-wrap {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.solunar-major-icon {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-primary);
}

.solunar-minor-icon {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.solunar-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.solunar-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}

.solunar-major {
  font-weight: 700;
  color: var(--color-primary);
}

/* Moon phase card */
.moon-phase-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}

.moon-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.moon-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Day rating progress bar */
.moon-rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.moon-rating-bar-wrap {
  width: 5rem;
  height: 5px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.moon-rating-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.moon-rating-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.moon-rating-quality {
  font-weight: 600;
  color: var(--color-text);
}

/* Sunrise / Sunset row — visually separated from feeding windows */
.solunar-sun-section {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.solunar-sun-item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--space-2);
}

.solunar-sun-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.sunrise-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
}

.sunset-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.solunar-sun-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.solunar-sun-time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-left: auto;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: #0d1b2a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3) 30%, rgba(251, 191, 36, 0.3) 70%, transparent);
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

.footer-content {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: #f8f5f0;
}

.footer-brand p {
  color: #7a9ab8 !important;
}

.footer-section h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a9ab8;
  margin-bottom: var(--space-4);
}

.footer-section a {
  display: block;
  font-size: var(--text-sm);
  color: #7a9ab8;
  text-decoration: none;
  padding-block: var(--space-1);
  transition: color var(--transition-interactive);
}

.footer-section a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: #3f5f80;
}

.footer-bottom a {
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-bottom a:hover {
  color: #38bdf8;
}

/* Regulations list */
.regs-list {
  list-style: none;
  padding: 0;
}

.regs-list li {
  font-size: var(--text-xs);
  color: #7a9ab8;
  padding: var(--space-1) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.regs-list li:last-child {
  border-bottom: none;
}

.tide-source-label {
  font-size: var(--text-xs);
  color: #7a9ab8;
  margin-top: var(--space-4);
  font-style: italic;
  opacity: 0.75;
}

.tide-source-label a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.9;
}

.regs-disclaimer {
  font-size: var(--text-xs);
  color: #7a9ab8;
  margin-top: var(--space-4);
  font-style: italic;
  opacity: 0.8;
}

/* ========================
   SKELETON LOADERS
   ======================== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-offset) 25%,
    var(--color-surface-dynamic) 50%,
    var(--color-surface-offset) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text    { height: 1em; margin-bottom: var(--space-2); }
.skeleton-text:last-child { width: 60%; }
.skeleton-heading { height: 1.5em; width: 40%; margin-bottom: var(--space-4); }
.skeleton-chip    { height: 64px; width: 100%; border-radius: var(--radius-xl); }
.skeleton-card    { height: 200px; border-radius: var(--radius-xl); }

/* ========================
   SCROLL REVEAL + STAGGER
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 640px) {
  .conditions-bento {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .condition-chip {
    padding: var(--space-3);
    min-height: 68px;
  }

  .fishing-score-display {
    padding: var(--space-4) var(--space-5);
    max-width: 100%;
  }

  .score-ring {
    width: 120px;
    height: 120px;
  }

  .score-ring svg {
    width: 120px;
    height: 120px;
  }

  .score-number {
    font-size: 2.25rem;
  }

  .rec-details {
    grid-template-columns: 1fr;
  }

  .hero-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--text-xl);
  }
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ========================
   TAB SYSTEM
   ======================== */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
  transition: color var(--transition-interactive);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-full);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: detail-open 0.3s ease;
}

/* ========================
   UTILITY
   ======================== */
.text-muted    { color: var(--color-text-muted); }
.text-faint    { color: var(--color-text-faint); }
.text-primary  { color: var(--color-primary); }
.text-success  { color: var(--color-success); }
.text-error    { color: var(--color-error); }
.text-secondary { color: var(--color-secondary); }
.fw-700  { font-weight: 700; }
.mb-2    { margin-bottom: var(--space-2); }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mt-4    { margin-top: var(--space-4); }
.mt-6    { margin-top: var(--space-6); }

/* ========================
   REDUCED MOTION
   ======================== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
  }
  .forecast-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .score-ring-fill {
    transition: none;
  }
  .score-breakdown-panel {
    transition: none;
  }
  .breakdown-bar-fill {
    transition: none;
  }
  .tab-indicator {
    transition: none;
  }
  .sticky-nav {
    transition: none;
  }
  .hero-glow {
    animation: none;
  }
}
