/* Tank Logic — nano-stocking-wizard.css  NATURE THEME
   Dedicated stylesheet for tools/nano-stocking-wizard.html
   Defines layout + wizard components previously undefined. */

/* ── Page layout ─────────────────────────────────────── */
.page-header { max-width: 1120px; margin: 0 auto; padding: calc(var(--nav-h) + 40px) 20px 8px; }
.page-header h1 { margin: 10px 0 6px; }
.page-desc { color: var(--text-mid); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 640px; }

.two-col { max-width: 1120px; margin: 20px auto 40px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

/* ── Cards ───────────────────────────────────────────── */
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; }
.card-title { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx-lo); margin-bottom: 14px; }

/* ── Experience row + CTA ────────────────────────────── */
.exp-row { display: flex; gap: 10px; flex-wrap: wrap; }
.exp-btn { flex: 1; min-width: 130px; padding: 12px 16px; background: var(--bg-surface); border: 1px solid var(--border-mid); border-radius: var(--r-md); color: var(--tx); font-family: var(--font); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--t) var(--ease); text-align: center; }
.exp-btn:hover { border-color: var(--accent-border); color: var(--text); }
.exp-btn.selected { background: var(--accent-subtle); border-color: var(--accent-border); color: var(--accent); }

.go-btn { display: block; width: 100%; margin-top: 18px; padding: 14px 20px; background: var(--accent); border: none; border-radius: var(--r-md); color: #0B120D; font-family: var(--font-head); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background var(--t) var(--ease), transform var(--t) var(--ease); }
.go-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.go-btn:active { transform: translateY(0); }

/* ── Custom size input ───────────────────────────────── */
.field { width: 90px; padding: 9px 34px 9px 12px; background: var(--bg-surface); border: 1px solid var(--border-mid); border-radius: var(--r-md); color: var(--text); font-family: var(--font); font-size: 0.95rem; outline: none; transition: border-color var(--t); }
.field:focus { border-color: var(--accent-border); }

/* ── Summary bar ─────────────────────────────────────── */
.summary-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.sb-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 10px; text-align: center; }
.sb-val { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.sb-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tx-lo); margin-top: 3px; }

/* ── Bioload meter ───────────────────────────────────── */
.bioload-wrap { margin-bottom: 20px; }
.bioload-top { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; color: var(--tx); margin-bottom: 6px; }
.bioload-track { height: 8px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.bioload-fill { height: 100%; border-radius: 100px; width: 0%; transition: width 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.4s; }
.bioload-fill.good    { background: linear-gradient(90deg, var(--accent), var(--leaf, #6FBF8E)); }
.bioload-fill.caution { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.bioload-fill.full    { background: linear-gradient(90deg, var(--gold), var(--sand)); }
.bioload-fill.over    { background: linear-gradient(90deg, var(--sand), var(--red)); }

/* ── Stocking plan cards ─────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 4px; }
.plan-card { background: var(--bg-surface); border: 1px solid var(--border-mid); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--t); }
.plan-card:hover { border-color: var(--border-hi); }
.plan-card.featured { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-border); }
.plan-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.plan-badge { display: inline-block; font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 100px; margin-bottom: 8px; }
.plan-badge.best   { background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent); }
.plan-badge.simple { background: var(--gold-lo); border: 1px solid rgba(200,134,10,0.25); color: var(--gold); }
.plan-badge.active { background: var(--bg-3); border: 1px solid var(--border-mid); color: var(--tx); }
.plan-name { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--text); }
.plan-vibe { font-size: 0.78rem; color: var(--tx-lo); margin-top: 2px; }
.plan-body { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.plan-tag { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 600; color: var(--tx); }
.plan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Fish rows inside plan cards ─────────────────────── */
.fish-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fish-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fish-name { font-size: 0.86rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.fish-note { font-size: 0.72rem; color: var(--tx-lo); line-height: 1.35; }
.fish-count { font-family: var(--font-head); font-size: 0.86rem; font-weight: 800; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-border); border-radius: 100px; padding: 2px 9px; white-space: nowrap; }

/* ── Warning box ─────────────────────────────────────── */
.warn { display: flex; gap: 10px; align-items: flex-start; background: rgba(201,64,64,0.07); border: 1px solid rgba(201,64,64,0.22); border-radius: var(--r-md); padding: 12px 14px; margin-top: 14px; font-size: 0.86rem; line-height: 1.55; color: var(--text-mid); }

/* ── Compatible fish browser ─────────────────────────── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-btn { padding: 6px 14px; background: var(--bg-surface); border: 1px solid var(--border-mid); border-radius: 100px; color: var(--tx); font-family: var(--font); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--t) var(--ease); }
.filter-btn:hover { border-color: var(--accent-border); }
.filter-btn.active { background: var(--accent-subtle); border-color: var(--accent-border); color: var(--accent); }
.fish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.sidebar-title { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx-lo); margin-bottom: 10px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rule-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; line-height: 1.5; color: var(--text-mid); }
.rule-arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── Step indicator done state ───────────────────────── */
.step-item.done { color: var(--accent); opacity: 0.75; }
.step-item.done .step-num { background: var(--accent-subtle); border-color: var(--accent-border); color: var(--accent); }

/* ── Explainer section ───────────────────────────────── */
.tool-explainer { border-top: 1px solid var(--border); }

/* ── Mobile (explicit px/rem — no --sz-* tokens) ─────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .page-header { padding: calc(var(--nav-h) + 24px) 16px 4px; }
  .two-col { padding: 0 16px; margin-top: 12px; }
  .card { padding: 16px; }
  .summary-bar { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }
  .exp-btn { min-width: 100px; font-size: 0.85rem; padding: 10px 12px; }
  .go-btn { font-size: 0.95rem; padding: 13px 16px; }
  .sb-val { font-size: 1.05rem; }
}
