/* ═══════════════════════════════════════════════════════════════════
   fk-koravi-guide-visual.css
   Scoped visual upgrade for the Koravi Guide. Styles ONLY land under
   #tab-ai (Guide tab) so they can't bleed into The Bite or Explore,
   and nothing in here hides any working result container — every rule
   is additive. No MutationObserver. No duplicate renderer.

   Order of concerns:
     · Species header (hero) · match the LEFT mockup
     · Best Time Today card    · match the LEFT mockup
     · Recommendation cards    · match the RIGHT mockup
     · Responsive · 360 / 414 / Pixel 10 Pro / tablet / desktop
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --fkg-navy:        #061b2e;
  --fkg-navy-2:      #04111f;
  --fkg-navy-deep:   #030c17;
  --fkg-teal-line:   rgba(77,227,255,0.42);
  --fkg-teal-dim:    rgba(77,227,255,0.22);
  --fkg-cyan:        #4DE3FF;
  --fkg-cyan-soft:   #7bebff;
  --fkg-gold:        #f4a228;
  --fkg-gold-soft:   #ffd27a;
  --fkg-text:        #e7f1f8;
  --fkg-text-dim:    rgba(231,241,248,0.72);
  --fkg-text-mute:   rgba(231,241,248,0.52);
}

/* ─── 1 · SPECIES HEADER ──────────────────────────────────────────── */
#tab-ai .fkg-hero {
  background:
    radial-gradient(140% 90% at 85% 10%, rgba(77,227,255,0.12), transparent 60%),
    radial-gradient(140% 90% at 15% 95%, rgba(14,78,120,0.35), transparent 60%),
    linear-gradient(180deg, #061b2e 0%, #04111f 55%, #020a14 100%);
  padding: 14px 16px 10px;
}
/* Tighter composition that mirrors the LEFT mockup: logo + kicker sit
   top-left in the SAME row as the top of the species title; fish image
   anchors the right column. */
#tab-ai .fkg-hero-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 2px;
}
#tab-ai .fkg-hero-topline .fk-header-logo--on-hero {
  width: 72px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  flex: 0 0 72px;
}
#tab-ai .fkg-hero-topline .fkg-kicker {
  font: 600 11px/1.1 Oswald, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fkg-cyan);
}
#tab-ai .fkg-hero-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
}
#tab-ai .fkg-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
#tab-ai .fkg-species {
  font: 700 clamp(2rem, 8vw, 2.6rem)/0.98 Oswald, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 6px;
  word-break: break-word;
}
#tab-ai .fkg-species-sub {
  font: 500 clamp(0.86rem, 3.4vw, 0.98rem)/1.4 Manrope, sans-serif;
  color: var(--fkg-text-dim);
  margin: 0;
}
#tab-ai .fkg-hero-fish {
  flex: 0 0 46%;
  margin: 0;
  position: relative;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
}
#tab-ai .fkg-hero-fish[hidden] { display: none; }
#tab-ai .fkg-hero-fish-slot {
  width: 100%;
  height: 100%;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tab-ai .fkg-hero-fish-slot svg {
  width: 100%;
  height: 100%;
  max-height: 160px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(77,227,255,0.14));
}
#tab-ai .fkg-hero-fish-img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.45));
}
#tab-ai .fkg-hero-fish-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 7px;
  font: 600 9px/1 Oswald, sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7baed4;
  background: rgba(4,11,20,0.78);
  border: 1px solid rgba(123,174,212,0.3);
  border-radius: 999px;
}
#tab-ai .fkg-hero-fish-tag[hidden] { display: none; }

/* Species picker row inside the hero */
#tab-ai .fkg-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(6,27,46,0.9) 0%, rgba(4,17,31,0.9) 100%);
  border: 1px solid var(--fkg-teal-line);
  border-radius: 16px;
}
#tab-ai .fkg-picker-label {
  text-align: center;
  font: 600 10px/1 Oswald, sans-serif;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fkg-text-mute);
}

/* ─── 2 · BEST TIME TODAY — frame the existing .fk-wp-shell ─────── */
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-shell {
  margin: 0;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-card {
  background: linear-gradient(180deg, var(--fkg-navy) 0%, var(--fkg-navy-2) 100%);
  border: 1px solid var(--fkg-teal-line);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow:
    inset 0 1px 0 rgba(77,227,255,0.1),
    0 10px 28px -16px rgba(0,0,0,0.55);
}
/* The shipped predictor card has its own eyebrow + title we no longer
   need inside the Guide (the section header already carries both). We
   do NOT hide any data value — only the decorative repetition. */
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-eyebrow,
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-title,
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-sub,
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-icon,
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-waves {
  display: none !important;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-strip {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 0 14px !important;
  background: linear-gradient(180deg, rgba(2,10,18,0.65), rgba(2,10,18,0.4));
  border: 1px solid rgba(77,227,255,0.18);
  border-radius: 14px;
  overflow: hidden;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat {
  display: grid !important;
  grid-template-columns: 22px 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(77,227,255,0.1);
  min-height: 48px;
  text-align: left !important;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat:last-child { border-bottom: 0; }
/* Icon column — SVGs are injected via ::before */
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat::before {
  content: '';
  width: 18px; height: 18px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: 0.9;
}
/* Clock icon for the peak-window row (first stat) */
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat:nth-child(1)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DE3FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><polyline points='12 7 12 12 15 14'/></svg>");
}
/* Bars icon for bite score */
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat:nth-child(2)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DE3FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='20' x2='5' y2='14'/><line x1='12' y1='20' x2='12' y2='10'/><line x1='19' y1='20' x2='19' y2='4'/></svg>");
}
/* Moon icon for best-condition */
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat:nth-child(3)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DE3FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/></svg>");
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat-val {
  font: 700 1.02rem/1.1 Oswald, sans-serif !important;
  letter-spacing: 0.3px;
  color: #fff !important;
  order: 1;
  text-align: left !important;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-stat-lbl {
  font: 600 10px/1 Oswald, sans-serif !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  color: var(--fkg-text-mute) !important;
  order: 2;
  justify-self: end;
  text-align: right;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-cta {
  background: linear-gradient(180deg, #4DE3FF 0%, #16B3C7 100%) !important;
  color: #04131f !important;
  font: 700 0.95rem/1 Manrope, sans-serif !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  min-height: 48px !important;
  min-width: 240px;
  box-shadow:
    0 10px 24px -10px rgba(77,227,255,0.55),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px -10px rgba(77,227,255,0.7),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-cta:active {
  transform: translateY(0);
  box-shadow:
    0 6px 14px -6px rgba(77,227,255,0.45),
    inset 0 2px 4px rgba(0,0,0,0.2) !important;
}
#tab-ai .fkg-sec[data-sec="when"] .fk-wp-fineprint {
  text-align: center;
  color: var(--fkg-text-mute);
  font: 500 0.76rem/1.4 Manrope, sans-serif;
  padding: 0 6px;
}

/* ─── 3 · RECOMMENDATION CARDS (What To Throw ranked list) ─────── */
#tab-ai .fk-pc-card-throw .fk-pc-baits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  background: linear-gradient(180deg, #082036 0%, #04121f 100%);
  border: 1px solid rgba(77,227,255,0.22);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-row.is-top {
  border-color: var(--fkg-cyan);
  box-shadow:
    0 0 0 1px rgba(77,227,255,0.3),
    0 12px 28px -16px rgba(77,227,255,0.55);
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb {
  position: relative;
  background: radial-gradient(90% 80% at 40% 45%, rgba(14,38,60,0.95), rgba(4,11,20,0.75));
  border-radius: 10px;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb svg {
  width: 100%;
  height: 100%;
  max-height: 108px;
  display: block;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-img {
  width: 100%;
  height: 100%;
  max-height: 108px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb.is-placeholder {
  background: linear-gradient(180deg, rgba(6,27,46,0.9) 0%, rgba(4,17,31,0.9) 100%);
  border: 1px dashed rgba(77,227,255,0.25);
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(77,227,255,0.65);
  padding: 8px;
  text-align: center;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-ph span {
  font: 600 9px/1.2 Oswald, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(231,241,248,0.6);
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  font: 600 8px/1 Oswald, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7baed4;
  background: rgba(4,11,20,0.82);
  border: 1px solid rgba(123,174,212,0.3);
  border-radius: 999px;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left !important;
  align-items: flex-start;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-name {
  font: 700 1.02rem/1.2 Oswald, sans-serif;
  letter-spacing: 0.3px;
  color: #fff;
  word-break: break-word;
  flex: 1 1 auto;
  text-align: left;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-match {
  font: 700 1.02rem/1 Oswald, sans-serif;
  color: var(--fkg-cyan);
  letter-spacing: 0.5px;
  flex: 0 0 auto;
  text-align: right;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#tab-ai .fk-pc-card-throw .fk-pc-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font: 700 10px/1 Oswald, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f4a228 10%, #ffd27a 55%, #d9a441 95%);
  color: #2a1a06;
  border-radius: 999px;
  box-shadow: 0 2px 6px -3px rgba(244,162,40,0.65);
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-detail,
#tab-ai .fk-pc-card-throw .fk-pc-bait-rig,
#tab-ai .fk-pc-card-throw .fk-pc-bait-example {
  text-align: left;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-detail {
  font: 500 0.84rem/1.3 Manrope, sans-serif;
  color: #cfe3f0;
  letter-spacing: 0.2px;
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-rig {
  font: 500 0.82rem/1.3 Manrope, sans-serif;
  color: var(--fkg-text-dim);
}
#tab-ai .fk-pc-card-throw .fk-pc-bait-example {
  font: 500 0.76rem/1.3 Manrope, sans-serif;
  color: var(--fkg-text-mute);
  font-style: italic;
}

/* Why The Top Pick — framed cyan-tinted panel */
#tab-ai .fk-pc-card-throw .fk-pc-why-top {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(6,27,46,0.9) 0%, rgba(4,17,31,0.9) 100%);
  border: 1px solid rgba(77,227,255,0.22);
  border-left: 3px solid var(--fkg-cyan);
  border-radius: 12px;
}
#tab-ai .fk-pc-card-throw .fk-pc-why-top-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px/1 Oswald, sans-serif;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fkg-cyan);
  margin-bottom: 6px;
}
#tab-ai .fk-pc-card-throw .fk-pc-why-top-body {
  font: 500 0.92rem/1.5 Manrope, sans-serif;
  color: var(--fkg-text);
}

/* Secondary meta rows — compact, lower contrast */
#tab-ai .fk-pc-card-throw .fk-pc-recommend-meta,
#tab-ai .fk-pc-card-throw .fk-pc-recommend-pool {
  background: transparent !important;
  border-left: none !important;
  padding: 10px 0 0 0 !important;
  color: var(--fkg-text-dim) !important;
  font: 500 0.82rem/1.4 Manrope, sans-serif !important;
}
#tab-ai .fk-pc-card-throw .fk-pc-recommend-pool { color: var(--fkg-text-mute) !important; font-size: 0.76rem !important; }

/* ─── 4 · Responsive polish ─────────────────────────────────────── */
@media (max-width: 480px) {
  #tab-ai .fkg-hero { padding: 12px 14px 8px; }
  #tab-ai .fkg-hero-topline .fk-header-logo--on-hero { width: 64px; flex-basis: 64px; max-height: 48px; }
  #tab-ai .fkg-hero-body { gap: 10px; }
  #tab-ai .fkg-hero-fish { flex-basis: 46%; min-height: 120px; }
  #tab-ai .fkg-hero-fish-img { max-height: 150px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-row { grid-template-columns: 100px 1fr; padding: 8px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb { min-height: 96px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb svg,
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-img { max-height: 96px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-name { font-size: 0.98rem; }
  #tab-ai .fkg-sec[data-sec="when"] .fk-wp-cta { min-width: 92%; }
}
@media (max-width: 360px) {
  #tab-ai .fkg-hero-body { flex-direction: column; align-items: stretch; }
  #tab-ai .fkg-hero-fish { flex-basis: auto; order: -1; min-height: 150px; }
  #tab-ai .fkg-hero-fish-img { max-height: 170px; }
  #tab-ai .fkg-species { font-size: 1.9rem; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-row { grid-template-columns: 86px 1fr; gap: 10px; padding: 8px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb { min-height: 82px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb svg,
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-img { max-height: 82px; }
}
@media (min-width: 820px) {
  #tab-ai .fkg-hero-body { gap: 24px; }
  #tab-ai .fkg-hero-fish { flex-basis: 320px; min-height: 200px; }
  #tab-ai .fkg-hero-fish-img { max-height: 240px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-row { grid-template-columns: 140px 1fr; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb { min-height: 130px; }
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb svg,
  #tab-ai .fk-pc-card-throw .fk-pc-bait-thumb-img { max-height: 130px; }
}

/* Reduce dense uppercase body copy inside the Guide */
#tab-ai .fk-pc-card-throw .fk-pc-bait-detail,
#tab-ai .fk-pc-card-throw .fk-pc-bait-rig,
#tab-ai .fk-pc-card-throw .fk-pc-bait-example,
#tab-ai .fk-pc-card-throw .fk-pc-why-top-body {
  text-transform: none !important;
}

/* Bottom-nav clearance — the Guide tab already pads; just belt-and-
   braces the final rec card so it never tucks under the fixed nav. */
#tab-ai .fkg-sec[data-sec="throw"]:last-of-type { padding-bottom: 24px; }
