/* PoquitoTalk Island Bulletin & Community Blog Stylesheet */
:root {
  --bg-cream: #FAF8F5;
  --surface-card: #FFFFFF;
  --surface-secondary: #F4EFEA;
  --surface-muted: #ECE5DC;
  --text-main: #1A1208;
  --text-secondary: #5C4E3A;
  --text-muted: #7D6E5B;
  --border-light: rgba(150, 72, 36, 0.12);
  --border-subtle: #E8E1D7;
  --terracotta: #964824;
  --terracotta-hover: #7A3515;
  --terracotta-light: #FD9A6F;
  --terracotta-bg: rgba(150, 72, 36, 0.08);
  --emerald: #059669;
  --emerald-bg: #ECFDF5;
  --emerald-border: rgba(5, 150, 105, 0.25);
  --ocean: #0284C7;
  --ocean-bg: #F0F9FF;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 16px 36px rgba(150, 72, 36, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

body {
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-wordmark {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-wordmark .brand-talk {
  color: var(--terracotta);
}

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

.nav-current {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-back-link:hover {
  color: var(--terracotta-hover);
}

.nav-back-link svg {
  transition: transform 0.25s ease;
}

.nav-back-link:hover svg {
  transform: translateX(-3px);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-directory {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--terracotta);
  background: var(--terracotta-bg);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-directory:hover {
  background: rgba(150, 72, 36, 0.15);
  transform: translateY(-1px);
}

.btn-nav-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--terracotta);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(150, 72, 36, 0.2);
}

.btn-nav-app:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(150, 72, 36, 0.28);
}

.btn-nav-app svg {
  transition: transform 0.25s ease;
}

.btn-nav-app:hover svg {
  transform: translateX(2px);
}

/* Page Shell */
.blog-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Hub Hero */
.hub-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.badge-forum-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(150, 72, 36, 0.10);
  color: var(--terracotta);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.hub-hero h1 {
  font-family: 'Lexend', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.hub-hero p {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Category Filters */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.filter-btn.active {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(150, 72, 36, 0.28);
}

.article-card.featured {
  grid-column: 1 / -1;
  background: #FFFDF9;
  border: 2px solid rgba(150, 72, 36, 0.22);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.card-category-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--terracotta);
  background: var(--terracotta-bg);
  padding: 4px 10px;
  border-radius: 6px;
}

.card-read-time {
  color: var(--text-muted);
  font-weight: 500;
}

.card-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.article-card.featured .card-title {
  font-size: 1.65rem;
}

.card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--terracotta);
}

.card-forum-snippet {
  background: var(--surface-secondary);
  border-left: 3px solid var(--terracotta);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-cta svg {
  transition: transform 0.25s ease;
}

.card-cta:hover {
  color: var(--terracotta-hover);
}

.card-cta:hover svg {
  transform: translateX(4px);
}

/* Single Article Layout */
.article-header {
  max-width: 780px;
  margin: 0 auto 36px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--terracotta);
}

.article-headline {
  font-family: 'Lexend', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-author {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Article Content Body */
.article-body {
  max-width: 780px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 22px;
  font-size: 17px;
  color: var(--text-main);
  line-height: 1.78;
}

.article-body h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.3;
  color: var(--text-main);
  margin-top: 44px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(150, 72, 36, 0.12);
}

.article-body h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Forum Callout Box */
.forum-callout {
  background: #FFF9F2;
  border: 1px solid rgba(150, 72, 36, 0.22);
  border-left: 4px solid var(--terracotta);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
}

.forum-callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.forum-callout p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #3E3224;
  margin-bottom: 0;
  font-style: italic;
}

/* Ground Truth Takeaway Box */
.ground-truth-box {
  background: var(--surface-card);
  border: 2px solid rgba(5, 150, 105, 0.25);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 32px 0;
  box-shadow: var(--shadow-card);
}

.ground-truth-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ground-truth-box p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Voice Note Script Box */
.voice-script-box {
  background: #FFFFFF;
  border: 2px solid rgba(150, 72, 36, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 34px 0;
  box-shadow: var(--shadow-card);
}

.voice-script-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.voice-script-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-bg);
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-copy-script {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--terracotta);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-script:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-copy-script.copied {
  background: var(--emerald);
}

.voice-script-content {
  background: #FAF8F5;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14.5px;
  line-height: 1.6;
  color: #1A1208;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.voice-script-english {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Verified Directory Banner */
.directory-banner {
  background: #FFFDF9;
  border: 2px dashed rgba(150, 72, 36, 0.28);
  border-radius: 16px;
  padding: 24px;
  margin: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.directory-banner-text h4 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.directory-banner-text p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.btn-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  background: var(--terracotta);
  color: #FFFFFF;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(150, 72, 36, 0.2);
}

.btn-banner-link:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-banner-link svg {
  transition: transform 0.25s ease;
}

.btn-banner-link:hover svg {
  transform: translateX(3px);
}

/* Footer */
.blog-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--terracotta);
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .hub-hero h1 {
    font-size: 2rem;
  }
  .article-headline {
    font-size: 1.85rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .directory-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
