/* blog.css — HushAsk Blog shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1A2E62; --navy-dark: #0F1C3F; --blue: #2563EB; --blue-light: #EFF4FF;
  --bg: #ffffff; --bg-white: #ffffff; --bg-dark: #0F172A;
  --border: #E2E8F0; --border-dark: #1E293B;
  --text: #0F172A; --text-body: #374151; --text-mid: #475569; --text-muted: #94A3B8;
  --surface: #F1F5F9;
}

html { scroll-behavior: smooth; }
body { background: #ffffff; color: var(--text); font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; max-width: 1080px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-badge { width: 36px; height: 36px; background: var(--navy); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: white; transform: rotate(-6deg); flex-shrink: 0; }
.logo-name { font-size: 18px; font-weight: 900; letter-spacing: -0.5px; color: var(--text); }
.logo-name em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; border: none; transition: opacity 0.18s, transform 0.12s; }
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: white; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ── HAMBURGER ───────────────────────────────────────────────────────────── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px 8px; color: var(--text); font-size: 22px; line-height: 1; border-radius: 8px; transition: background 0.15s; flex-shrink: 0; }
.nav-hamburger:hover { background: var(--surface); }
.nav-cta { flex-shrink: 0; }

/* ── MOBILE OVERLAY ──────────────────────────────────────────────────────── */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 200; flex-direction: column; padding: 20px 24px 32px; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mobile-menu-close { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text); padding: 6px 8px; border-radius: 8px; line-height: 1; }
.mobile-menu-links { list-style: none; flex: 1; }
.mobile-menu-links li { border-bottom: 1px solid var(--border); }
.mobile-menu-links a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; transition: color 0.15s; }
.mobile-menu-cta { margin-top: 32px; }
.mobile-menu-cta a { display: flex; align-items: center; justify-content: center; padding: 14px 24px; background: var(--navy); color: white; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: opacity 0.18s; }
.mobile-menu-cta a:hover { opacity: 0.88; }

/* ── ARTICLE HERO ────────────────────────────────────────────────────────── */
.article-hero { max-width: 780px; margin: 40px auto 0; padding: 0 40px; }
.article-hero img { width: 100%; border-radius: 16px; display: block; }
@media (max-width: 768px) {
  .article-hero { padding: 0 20px; margin-top: 24px; }
}

/* ── BLOG INDEX ──────────────────────────────────────────────────────────── */
.page { max-width: 680px; margin: 0 auto; padding: 72px 40px 100px; }

.page-header { margin-bottom: 64px; }
.page-header h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 12px; }
.page-header p { color: var(--text-mid); font-size: 16px; line-height: 1.6; }

.article-list { display: flex; flex-direction: column; gap: 0; }

/* Base card — text only, border-separated list style */
.article-card { display: block; padding: 36px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); background: #ffffff; }
.article-card:first-child { border-top: 1px solid var(--border); }
.article-card-text { }
.article-card .article-date { font-size: 11px; color: #9CA3AF; font-weight: 500; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.8px; }
.article-card h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; line-height: 1.3; color: #111827; transition: color 0.15s; }
.article-card:hover h2 { color: var(--blue); }
.article-card p { font-size: 15px; color: #6B7280; line-height: 1.65; }
.article-card .read-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: #2563EB; }

/* Row card — image left (~40%), text right */
.article-card-row { display: flex; gap: 32px; align-items: center; }
.article-card-row .article-card-img { width: 42%; flex-shrink: 0; height: 220px; object-fit: cover; border-radius: 10px; display: block; }
.article-card-row .article-card-text { flex: 1; min-width: 0; }

@media (max-width: 768px) {
  .article-card-row { flex-direction: column; gap: 16px; }
  .article-card-row .article-card-img { width: 100%; height: 200px; }
}

/* ── ARTICLE PAGE ────────────────────────────────────────────────────────── */
.article-page { max-width: 680px; margin: 0 auto; padding: 80px 40px 100px; background: #ffffff; }

.article-header { margin-bottom: 40px; padding-top: 72px; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }

.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; margin-bottom: 32px; letter-spacing: 0.1px; transition: color 0.15s; }
.back-link:hover { color: var(--text-mid); }

.article-date { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

.article-page h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; margin-bottom: 24px; color: var(--text); }

.article-lead { font-size: 19px; line-height: 1.7; color: #4B5563; margin-top: 20px; }

/* ── AUTHOR BYLINE ───────────────────────────────────────────────────────── */
.article-byline { display: flex; align-items: flex-start; gap: 14px; margin-top: 32px; background: #F8FAFC; border-radius: 10px; padding: 18px 20px; }
.byline-avatar { flex-shrink: 0; border-radius: 50%; display: block; }
.byline-meta { display: flex; flex-direction: column; gap: 3px; }
.byline-name { font-size: 13px; font-weight: 600; color: #111827; }
.byline-bio { font-size: 12px; color: #6B7280; line-height: 1.5; margin-top: 3px; }
.byline-date { font-size: 11px; color: #9CA3AF; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── ARTICLE BODY ────────────────────────────────────────────────────────── */
.article-body { font-size: 16px; line-height: 1.85; color: var(--text-body); margin-top: 40px; }
.article-body p { margin-bottom: 28px; }
.article-body h2 { font-size: 20px; font-weight: 700; color: #111827; letter-spacing: -0.2px; margin: 44px 0 14px; line-height: 1.3; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--blue); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body code { font-family: 'SF Mono', 'Fira Code', monospace; background: var(--surface); border-radius: 5px; padding: 2px 7px; font-size: 13px; color: var(--text); white-space: nowrap; }

/* ── ARTICLE CTA ─────────────────────────────────────────────────────────── */
.article-cta { margin-top: 64px; padding: 36px 40px; background: var(--bg-white); border-radius: 12px; border: 1px solid var(--border); }
.article-cta p { font-size: 15px; color: var(--text-mid); margin-bottom: 0; line-height: 1.65; }
.article-cta a.btn { margin-top: 24px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer { background: var(--bg-dark); border-top: 1px solid var(--border-dark); padding: 32px 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: #475569; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: #475569; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #94A3B8; }

/* ── ARTICLE MOCKUPS ─────────────────────────────────────────────────────── */
.article-mockup { margin: 40px 0; }
.article-mockup figcaption { font-size: 13px; color: #9CA3AF; text-align: center; margin-top: 12px; font-style: italic; }
.am-window { background: #F9F9F9; border-radius: 12px; border: 1px solid #E0E0E0; overflow: hidden; font-family: 'Inter', sans-serif; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.am-bar { background: #F0F0F0; padding: 10px 14px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid #E0E0E0; }
.am-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.am-body { display: flex; }
.am-sidebar { width: 44px; background: #4A154B; display: flex; flex-direction: column; align-items: center; padding: 14px 0; flex-shrink: 0; }
.am-ws-icon { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; color: white; }
.am-content { flex: 1; background: #fff; padding: 16px 18px; }
.am-channel { font-size: 12px; font-weight: 700; color: #616061; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F0F0F0; }
.am-msg { display: flex; gap: 10px; margin-bottom: 12px; }
.am-avatar { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 900; font-size: 10px; color: white; }
.am-avatar-bot { background: #1A2E62; }
.am-avatar-anon { background: #DDD; border-radius: 50%; }
.am-msg-body { flex: 1; }
.am-sender { font-weight: 700; font-size: 13px; color: #1D1C1D; }
.am-verified { display: inline-block; width: 14px; height: 14px; background: #007A5A; border-radius: 50%; margin: 0 4px; font-size: 9px; text-align: center; line-height: 14px; color: white; }
.am-time { font-size: 11px; color: #616061; }
.am-text { font-size: 13px; color: #1D1C1D; margin-top: 3px; line-height: 1.4; }
.am-card { margin-top: 6px; border-left: 3px solid #E0E0E0; padding-left: 10px; }
.am-card-reply { border-left-color: #2EB67D; }
.am-card-text { font-size: 13px; color: #1D1C1D; margin-bottom: 5px; line-height: 1.4; }
.am-card-preview { font-size: 13px; color: #616061; font-style: italic; margin-bottom: 10px; line-height: 1.4; }
.am-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.am-btn { padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: default; border: none; font-family: 'Inter', sans-serif; }
.am-btn-green { background: #007A5A; color: white; }
.am-btn-outline { background: white; color: #1D1C1D; border: 1px solid #1D1C1D; }
.am-footer { font-size: 11px; color: #616061; font-style: italic; }

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex; }

  .page { padding: 48px 20px 72px; }
  .article-page { padding: 48px 20px 72px; }
  .article-cta { padding: 24px 22px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}
