/*
Theme Name: SDC Blog Theme
Theme URI: https://sentanidentalcare.com
Author: PEOPLEZ
Author URI: https://peoplez.id
Description: WordPress theme for the Sentani Dental Care blog — pixel-matched to the Astro main site (cream/gold/brown brand, Poppins/Montserrat/Manrope). Ported from the static blog UI.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdc-blog-theme
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Brand tokens (copied verbatim from src/styles/tailwind.css)
   ============================================================ */
:root {
  --cream: #FDF9F4;
  --cream2: #FCF8F3;
  --cream3: #F5F1EC;
  --brown: #4A3F3A;
  --gold: #C9A96E;
  --gold-light: #E5C282;
  --gold-amber: #D49F3E;
  --gold-pale: #FFDA96;
  --blush: #E8CFC8;
  --gray: #737373;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-label: 'Manrope', sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--brown); margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

/* ============================================================
   Header (matches Header.astro)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  padding: 20px 32px 8px;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name {
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  line-height: 1.1; color: var(--gold); letter-spacing: -0.01em;
}
.nav-pill {
  flex: 1; display: flex; justify-content: center;
}
.nav-pill .menu {
  background: var(--cream3); border-radius: 30px; padding: 5px 6px;
  display: flex; gap: 4px; margin: 0; list-style: none;
}
.nav-pill .menu li { margin: 0; }
.nav-pill .menu a {
  display: block; padding: 10px 18px; border-radius: 30px;
  font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  color: var(--brown); transition: all 0.2s;
}
.nav-pill .menu a:hover { background: var(--gold); color: #fff; }
.nav-pill .menu .current-menu-item > a,
.nav-pill .menu .current_page_item > a { background: var(--gold); color: #fff; }
.header-cta {
  border: 3px solid var(--gold); border-radius: 30px;
  padding: 10px 22px; font-family: var(--font-heading); font-weight: 700;
  font-size: 14px; color: var(--gold); background: transparent;
  transition: all 0.2s; white-space: nowrap;
}
.header-cta:hover { background: var(--gold); color: #fff; }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream3); border: none; cursor: pointer;
}
.mobile-nav { display: none; margin-top: 12px; }
.mobile-nav.open { display: block; }
.mobile-nav .menu {
  max-width: 1280px; margin: 0 auto; background: var(--cream3); border-radius: 30px;
  padding: 8px; list-style: none; display: flex; flex-direction: column; gap: 2px;
}
.mobile-nav .menu a {
  display: block; padding: 12px 18px; border-radius: 24px;
  font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  color: var(--brown);
}
.mobile-nav .menu a:hover { background: var(--gold); color: #fff; }
.mobile-nav .menu .current-menu-item > a { background: var(--gold); color: #fff; }
.mobile-nav-cta { max-width: 1280px; margin: 8px auto 0; }
.mobile-nav-cta .btn-gold { width: 100%; text-align: center; }

/* ============================================================
   Hero / page intro (matches blog index hero)
   ============================================================ */
.blog-hero { text-align: center; padding: 48px 0 32px; }
.eyebrow {
  display: inline-block; background: var(--cream3); border-radius: 30px;
  padding: 8px 20px; font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; color: var(--brown); margin-bottom: 16px;
}
.blog-hero h1 {
  font-weight: 700; font-size: 40px; line-height: 1.05;
  letter-spacing: -0.05em; margin-bottom: 16px;
}
.blog-hero .intro {
  font-size: 16px; line-height: 1.6; color: var(--brown);
  opacity: 0.7; max-width: 720px; margin: 0 auto;
}
.section-title h2 { font-weight: 700; font-size: 30px; margin-bottom: 4px; }
.section-title p { font-size: 14px; color: var(--brown); opacity: 0.6; margin: 0; }

/* ============================================================
   Cards (matches blog index cards)
   ============================================================ */
.card {
  display: block; background: var(--cream2); border-radius: 24px;
  overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--brown);
}
.card:hover { transform: translateY(-2px); }
.card-thumb { height: 240px; background: var(--blush); overflow: hidden; }
.card-thumb.small { height: 180px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-body.small { padding: 20px; }
.card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--font-label); font-size: 12px; color: var(--gray);
}
.card-meta .cat { font-family: var(--font-heading); font-weight: 600; color: var(--gold); }
.card-meta .dot { opacity: 0.4; }
.card-title { font-weight: 700; font-size: 20px; line-height: 1.2; margin-bottom: 12px; }
.card-excerpt { font-size: 14px; line-height: 1.5; color: var(--brown); opacity: 0.7; margin: 0; }
.card-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--gold);
}
.card-more svg { width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-3 .card-thumb { height: 160px; }
.grid-3 .card-title { font-size: 16px; }

/* ============================================================
   Filters (search + category chips, matches blog filter bar)
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream2); border-radius: 30px; padding: 8px 16px;
  min-width: 200px;
}
.search-box input {
  background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 14px; color: var(--brown); width: 100%;
}
.chip {
  display: inline-block; background: var(--cream3); color: var(--brown);
  padding: 8px 20px; border-radius: 30px; font-family: var(--font-heading);
  font-weight: 600; font-size: 14px; transition: all 0.2s;
}
.chip:hover { background: var(--blush); }
.chip.active { background: var(--gold); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Single article (matches [...slug].astro)
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--gold);
  z-index: 200; width: 0%;
}
.article-head { padding: 40px 0 16px; }
.article-head .cat { margin-bottom: 16px; }
.article-head h1 {
  font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.05em;
  max-width: 900px; margin-bottom: 16px;
}
.article-head .lede { font-size: 16px; line-height: 1.6; color: var(--brown); opacity: 0.7; max-width: 720px; }
.hero-img { border-radius: 30px; overflow: hidden; height: 420px; margin: 24px 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.author-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 14px;
}
.author-name { font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
.author-meta { font-family: var(--font-label); font-size: 12px; color: var(--gray); }
.share-group { display: flex; align-items: center; gap: 12px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--cream3);
  border-radius: 20px; padding: 8px 16px; font-family: var(--font-body);
  font-weight: 600; font-size: 14px; color: var(--brown); border: none; cursor: pointer;
  transition: background 0.2s;
}
.share-btn:hover { background: var(--blush); }
.share-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--cream3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brown); transition: background 0.2s;
}
.share-icon:hover { background: var(--blush); }
.share-icon svg { width: 16px; height: 16px; fill: currentColor; }
.article-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.sidebar { position: sticky; top: 100px; align-self: start; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; background: var(--cream2);
  border-radius: 30px; padding: 8px 16px; font-size: 14px; color: var(--brown);
  margin-bottom: 20px; transition: background 0.2s;
}
.back-link:hover { background: var(--blush); }
.toc-block { margin-bottom: 20px; }
.toc-title {
  font-family: var(--font-label); font-weight: 600; font-size: 12px;
  color: var(--gray); text-transform: uppercase; margin-bottom: 12px;
}
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc a {
  display: block; padding: 6px 12px; border-radius: 8px; font-size: 14px;
  color: var(--brown); transition: background 0.2s;
}
.toc a:hover { background: var(--cream2); }
.toc a.active { background: var(--cream3); font-weight: 600; }
.newsletter-box { background: var(--cream2); border-radius: 20px; padding: 20px; }
.newsletter-box h4 { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.newsletter-box p { font-size: 12px; color: var(--gray); margin: 0 0 12px; }
.newsletter-box input[type="email"] {
  width: 100%; border: 1px solid rgba(74,63,58,0.12); background: #fff;
  border-radius: 10px; padding: 10px; font-family: var(--font-body); font-size: 14px;
  color: var(--brown); outline: none; margin-bottom: 8px;
}
.newsletter-box button {
  width: 100%; background: var(--gold); color: #fff; border: none;
  border-radius: 20px; padding: 10px; font-family: var(--font-heading);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.newsletter-box button:hover { background: var(--gold-amber); }

/* Prose — the_content() */
.prose { max-width: 720px; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--brown); margin: 0 0 24px; }
.prose h2, .prose h3 { font-weight: 700; line-height: 1.1; margin: 48px 0 16px; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: 8px 0 8px 24px; margin: 24px 0;
  font-family: var(--font-body); font-style: italic; font-size: 16px; line-height: 1.6;
}
.prose img { border-radius: 20px; margin: 0 0 8px; }
.prose figcaption, .wp-caption-text {
  font-family: var(--font-label); font-size: 12px; color: var(--gray);
  text-align: center; margin-bottom: 24px;
}
.prose a { text-decoration: underline; }
.callout {
  background: var(--blush); border-radius: 20px; padding: 24px;
  display: flex; gap: 16px; margin-bottom: 24px;
}
.callout-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.callout-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  text-transform: uppercase; margin-bottom: 4px;
}
.callout p { margin-bottom: 0 !important; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding-top: 16px; }
.tags a {
  background: var(--cream3); border-radius: 20px; padding: 6px 16px;
  font-size: 14px; color: var(--brown); transition: background 0.2s;
}
.tags a:hover { background: var(--blush); }

/* Author card */
.author-card {
  background: var(--cream2); border-radius: 24px; padding: 24px;
  display: flex; gap: 16px;
}
.author-card .author-avatar { width: 56px; height: 56px; font-size: 18px; flex-shrink: 0; }
.author-card .author-label {
  font-family: var(--font-label); font-size: 12px; color: var(--gray);
  text-transform: uppercase; margin-bottom: 2px;
}
.author-card h5 { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.author-card .author-bio { font-size: 14px; line-height: 1.5; color: var(--brown); opacity: 0.7; margin: 0; }

/* Related */
.related { margin: 64px 0 24px; }
.related-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.related-head h2 { font-weight: 700; font-size: 30px; margin-bottom: 4px; }
.related-head p { font-size: 14px; color: var(--brown); opacity: 0.6; margin: 0; }
.related-link { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--gold); }

/* ============================================================
   Footer (matches Footer.astro)
   ============================================================ */
.site-footer { margin-top: 24px; padding: 0 32px 24px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.footer-inner {
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-pale) 100%);
  border-radius: 50px; padding: 48px 56px; overflow: hidden;
}
.footer-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.footer-map {
  aspect-ratio: 500/240; border-radius: 30px; background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer-map-label {
  position: absolute; left: 16px; bottom: 16px; background: var(--cream);
  color: var(--brown); border-radius: 18px; padding: 8px 18px; display: flex;
  align-items: center; gap: 8px; font-family: var(--font-label); font-weight: 600;
  font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); white-space: nowrap; pointer-events: none;
}
.loc-dot { position: relative; display: inline-flex; width: 10px; height: 10px; flex-shrink: 0; }
.loc-ping {
  position: absolute; inset: 0; border-radius: 50%; background: var(--gold);
  opacity: 0.6; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
.loc-dot span:last-child { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); position: relative; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 75%,100% { transform: scale(2.4); opacity: 0; } }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 32px; }
.footer-headline { font-family: var(--font-heading); font-weight: 700; font-size: 36px; line-height: 1.05; letter-spacing: -0.025em; color: #fff; }
.footer-col h4 { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-find { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.footer-find h4 { margin-bottom: 14px; letter-spacing: -0.02em; }
.footer-find p { margin: 0; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.4); margin: 32px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.32); }
.social-btn svg { width: 16px; height: 16px; fill: currentColor; }
.footer-logo-card {
  background: #fff; border-radius: 30px; padding: 14px 22px;
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-card img { width: 38px; height: 38px; object-fit: contain; }
.footer-logo-card span { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--gold); line-height: 1.05; letter-spacing: -0.005em; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; }

/* ============================================================
   404 / archive
   ============================================================ */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 h1 { font-size: 40px; margin-bottom: 16px; }
.error-404 p { color: var(--brown); opacity: 0.7; margin-bottom: 32px; }
.btn-gold {
  display: inline-block; background: var(--gold); color: #fff;
  border-radius: 30px; padding: 12px 28px; font-family: var(--font-heading);
  font-weight: 700; font-size: 14px; transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-amber); color: #fff; }

/* ============================================================
   Responsive (matches Astro breakpoints)
   ============================================================ */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .site-header { padding: 20px 16px 8px; }
  .nav-pill { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .card-thumb { height: 180px; }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-img { height: auto; min-height: 250px; }
  .site-footer { padding: 0 16px 16px; }
  .footer-inner { padding: 32px 20px; border-radius: 30px; }
  .footer-maps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .blog-hero h1, .article-head h1 { font-size: 30px; }
}
