/* iam.fishing - Shared Stylesheet
   Water-themed dark site. Mobile-first. All colors via CSS variables. */

:root {
  --bg: #0c1117;
  --bg-card: #131a23;
  --bg-input: #1a2332;
  --border: #243040;
  --text: #d4dde8;
  --text-secondary: #8899aa;
  --text-muted: #556677;
  --teal: #1a9e8f;
  --teal-glow: rgba(26, 158, 143, 0.25);
  --sky: #4db8c7;
  --foam: #e0f0f0;
  --cta-bg: #1a9e8f;
  --cta-text: #ffffff;
  --cta-hover: #22b8a6;
  --radius: 10px;
  --radius-lg: 16px;
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* -- Scrollbars -- */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-muted); background-clip: padding-box; }

/* -- Nav -- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.site-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
}

.site-nav__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--sky);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav__logo:hover { color: var(--foam); }

.site-nav__links {
  display: none;
  list-style: none;
  gap: 20px;
  align-items: center;
}
.site-nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav__links a:hover { color: var(--text); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav__cta:hover { background: var(--cta-hover); transform: translateY(-1px); }

/* -- Article Layout -- */
article {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--foam);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
}

/* -- Typography -- */
.article-body h2 {
  font-size: 1.55rem;
  color: var(--sky);
  margin: 40px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--teal);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.article-body h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 24px 0 10px;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--text);
}

.article-body a {
  color: var(--sky);
  text-decoration: underline;
  text-decoration-color: var(--teal-glow);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--foam); }

.article-body strong { color: var(--foam); font-weight: 600; }

/* -- Lists -- */
.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.article-body li::marker { color: var(--teal); }

/* -- Blockquote -- */
.article-body blockquote {
  border-left: 4px solid var(--teal);
  background: var(--bg-card);
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-body blockquote p:last-child { margin-bottom: 0; }

/* -- Tables (responsive) -- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 500px;
}

.article-body thead th {
  background: var(--bg-card);
  color: var(--sky);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--teal);
  white-space: nowrap;
}

.article-body tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.article-body tbody tr:nth-child(even) { background: var(--bg-card); }
.article-body tbody tr:hover { background: var(--teal-glow); }

/* -- CTA Box -- */
.cta-box {
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color: var(--cta-text);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  margin: 36px 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--cta-text) !important;
  margin-top: 0;
  font-size: 1.3rem;
}

.cta-box p {
  color: var(--cta-text) !important;
  opacity: 0.85;
  margin-bottom: 16px;
}

.cta-box .cta-btn {
  display: inline-block;
  background: var(--bg);
  color: var(--sky);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.cta-box .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* -- Image Placeholders -- */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  display: block;
}

.article-body figure {
  margin: 24px 0;
}

.article-body figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.img-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 24px 0;
}

/* -- Share Section -- */
.share-section {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.share-section__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.share-section__btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.share-btn:hover {
  background: var(--bg-input);
  border-color: var(--teal);
}

/* -- Footer -- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  margin-top: 60px;
}

.site-footer__inner {
  max-width: 780px;
  margin: 0 auto;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 16px;
}

.site-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--sky); }

.site-footer__copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* -- Stats Bar -- */
.stats-bar { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 24px; }
.stats-bar__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.stats-bar__value { font-size: 1.4rem; font-weight: 700; color: var(--sky); display: block; }
.stats-bar__label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* -- Season Calendar Grid -- */
.season-grid { overflow-x: auto; margin: 24px 0; }
.season-grid table { min-width: 700px; }
.season-peak { background: var(--teal); color: var(--cta-text); font-weight: 700; text-align: center; padding: 6px 8px; border-radius: 4px; font-size: 13px; }
.season-good { background: var(--teal-glow); color: var(--sky); text-align: center; padding: 6px 8px; border-radius: 4px; font-size: 13px; }
.season-off { color: var(--text-muted); text-align: center; padding: 6px 8px; font-size: 13px; }

/* -- Spot Cards -- */
.spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  transition: border-color 0.2s;
}
.spot-card:hover { border-color: var(--teal); }
.spot-card__name { font-size: 1.15rem; font-weight: 700; color: var(--foam); margin-bottom: 4px; }
.spot-card__type { font-size: 13px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.spot-card__species { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.spot-card__desc { font-size: 15px; color: var(--text); }

/* -- Lead Magnet Section -- */
.lead-magnets { margin: 40px 0; }
.lead-magnet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.lead-magnet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.lead-magnet-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.lead-magnet-card__icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.lead-magnet-card__title { font-size: 1rem; font-weight: 700; color: var(--foam); margin-bottom: 8px; }
.lead-magnet-card__pitch { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* -- Email Capture Form -- */
.email-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.email-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.email-form input[type="email"]:focus { border-color: var(--teal); }
.email-form button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.email-form button:hover { background: var(--cta-hover); }

/* -- Toast Notification -- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--teal);
  color: var(--cta-text);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* -- State Grid (Homepage) -- */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.state-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s, transform 0.15s;
  display: block;
}
.state-card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--foam); }
.state-card__species { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 4px; }

/* -- Neighbor States -- */
.neighbor-states { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.neighbor-states a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.neighbor-states a:hover { border-color: var(--teal); color: var(--foam); }

/* -- Footer State Grid -- */
.footer-states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-states a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-states a:hover { color: var(--sky); }

/* -- Desktop (768px+) -- */
@media (min-width: 768px) {
  body { font-size: 18px; }

  .site-nav__inner { height: 60px; }

  .site-nav__links { display: flex; }

  .article-header h1 { font-size: 2.5rem; }

  article { padding: 48px 32px 80px; }

  .cta-box { padding: 36px 32px; }

  .site-footer { padding: 40px 32px; }
}
