/* Blog page — neo-brutalist redesign (Claude Design handoff) */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Unbounded:wght@600;700;800&display=swap');

/* Brand tokens — identical to home.css */
.blog-page {
    --bg: #FFF7EE;
    --bg-warm: #FFE9D6;
    --ink: #1B1B3A;
    --ink-2: #4A4A6B;
    --ink-3: #8A8AA3;
    --primary: #FF5A1F;
    --primary-dark: #E84A12;
    --yellow: #FFC700;
    --card: #FFFFFF;
    --shadow-hard: 0 6px 0 var(--ink);
    --shadow-hard-sm: 0 4px 0 var(--ink);
    --radius: 22px;
    --radius-lg: 32px;
    --radius-sm: 14px;

    background: #fff;
    color: var(--ink);
    font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4 {
    font-family: 'Unbounded', 'Onest', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
}
.blog-page p { line-height: 1.5; }
.blog-page .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* NAV (matches index.html) */
.blog-page .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--ink);
}
.blog-page .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1180px;
    margin: 0 auto;
    gap: 16px;
}
.blog-page .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    color: var(--ink);
}
.blog-page .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    border: 2px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    display: grid;
    place-items: center;
    font-size: 20px;
}
.blog-page .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-page .nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.blog-page .nav-links a:hover { color: var(--primary); }

/* Buttons (matches home.css) */
.blog-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 16px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow-hard-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    user-select: none;
}
.blog-page .btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.blog-page .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.blog-page .btn-primary { background: var(--primary); color: white; }
.blog-page .btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 12px; }

/* Burger + mobile menu */
.blog-page .nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 2px 0 var(--ink);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.blog-page .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.blog-page .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.blog-page .nav-burger.open span:nth-child(2) { opacity: 0; }
.blog-page .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.blog-page .nav-mobile[hidden] { display: none !important; }
.blog-page .nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 22px;
    border-top: 2px solid var(--ink);
    background: var(--bg);
}
.blog-page .nav-mobile a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding: 6px 0;
}

@media (max-width: 768px) {
    .blog-page .nav-inner { padding: 12px 16px; gap: 10px; }
    .blog-page .logo { font-size: 18px; }
    .blog-page .logo-mark { width: 32px; height: 32px; }
    .blog-page .nav-cta { display: none; }
    .blog-page .nav-links { display: none; }
    .blog-page .nav-burger { display: flex; }
    .blog-page .nav { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

/* HERO */
.blog-hero {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    background: #fff;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 500px at 85% 20%, var(--bg-warm), transparent 60%),
        radial-gradient(700px 400px at 5% 80%, #FFE0CC, transparent 65%);
    z-index: 0;
}
.blog-hero .container { position: relative; z-index: 1; text-align: center; }
.blog-hero-title {
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--ink);
}
.blog-hero-title .accent {
    background: var(--yellow);
    padding: 0 14px;
    display: inline-block;
    border-radius: 14px;
    transform: rotate(-1deg);
    border: 2px solid var(--ink);
    box-shadow: 0 4px 0 var(--ink);
}
.blog-hero-subtitle {
    color: var(--ink-2);
    font-size: clamp(16px, 2vw, 20px);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* FILTERS */
.filter-section {
    padding: 26px 0 18px;
    background: #fff;
    position: relative;
    z-index: 2;
}
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-pill {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 100px;
    padding: 10px 18px;
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--ink);
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    user-select: none;
}
.filter-pill:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.filter-pill.active { background: var(--ink); color: #fff; }
.filter-pill .count {
    background: #F0F0F5;
    color: var(--ink);
    border-radius: 100px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.filter-pill.active .count { background: var(--primary); color: #fff; }

/* GRID */
.blog-posts {
    padding: 24px 0 100px;
    background: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-sm);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.blog-card:hover,
.blog-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 var(--ink);
    text-decoration: none;
    color: var(--ink);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    border-bottom: 2px solid var(--ink);
    overflow: hidden;
    background: #F4F4F8;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }

.blog-card-content {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.blog-card-category {
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}
.blog-card-title {
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
    color: var(--ink);
    text-wrap: pretty;
}
.blog-card-excerpt {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
    padding-top: 12px;
    border-top: 1.5px solid #F0F0F5;
}
.blog-card-date,
.blog-card-read-time { white-space: nowrap; }
.blog-card-meta::after {
    content: '→';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--ink);
    display: grid;
    place-items: center;
    font-size: 14px;
    box-shadow: 0 2px 0 var(--ink);
    transition: transform .15s ease;
    margin-left: auto;
}
.blog-card:hover .blog-card-meta::after { transform: translateX(3px); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-3);
    grid-column: 1 / -1;
}
.empty-state.hidden { display: none; }
.empty-state .es-emoji { font-size: 60px; margin-bottom: 14px; }
.empty-state p { font-family: 'Unbounded', 'Onest', sans-serif; font-weight: 600; font-size: 18px; margin: 0; }

/* DOWNLOAD section (matches index.html .dl-section) */
.blog-page .dl-section {
    padding: 100px 0;
    text-align: center;
    background: var(--primary);
    color: white;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    position: relative;
    overflow: hidden;
}
.blog-page .dl-section::before,
.blog-page .dl-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
}
.blog-page .dl-section::before { top: -80px; left: -50px; }
.blog-page .dl-section::after  { bottom: -100px; right: -60px; width: 280px; height: 280px; }
.blog-page .dl-section .wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.blog-page .dl-section h2 {
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    margin: 0 0 18px;
    color: white;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.blog-page .dl-section p {
    font-size: 19px;
    margin: 0 auto 36px;
    max-width: 560px;
    opacity: 0.92;
    color: white;
}
.blog-page .store-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.blog-page .store-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.12s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.blog-page .store-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: blog-badge-shine 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.blog-page .store-badge img {
    position: relative;
    z-index: 2;
    height: 56px;
    width: auto;
    display: block;
}
.blog-page .store-badge:hover { transform: translateY(-2px); }
@keyframes blog-badge-shine {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .blog-page .store-badge::before { animation: none; display: none; }
}
@media (max-width: 768px) {
    .blog-page .dl-section { padding: 60px 0; }
    .blog-page .dl-section::before { width: 140px; height: 140px; top: -50px; left: -40px; }
    .blog-page .dl-section::after  { width: 180px; height: 180px; bottom: -60px; right: -40px; }
    .blog-page .dl-section h2 { font-size: clamp(28px, 8vw, 38px); }
    .blog-page .dl-section p { font-size: 16px; margin-bottom: 26px; }
    .blog-page .store-badge img { height: 48px; }
}

/* FOOTER (matches index.html) */
.blog-page footer {
    padding: 50px 0 30px;
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.blog-page footer .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.blog-page footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.blog-page footer a:hover { color: #fff; }
.blog-page footer .f-logo {
    color: #fff;
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-weight: 700;
}
.blog-page footer .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.blog-page .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    width: 100%;
}
@media (max-width: 768px) {
    .blog-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .blog-page footer .wrap { gap: 20px !important; padding: 0 18px; }
    .blog-page footer .f-logo { font-size: 18px !important; }
}
@media (max-width: 480px) {
    .blog-page .footer-grid { grid-template-columns: 1fr; }
}

/* ====== FAQ Section (mirrors home.css FAQ for blog page) ====== */
.blog-page .faq-section {
    background: var(--bg-warm, #f9eed7);
    border-bottom: 2px solid var(--ink, #1a1a1a);
    padding: 80px 0;
    margin-top: 64px;
}
.blog-page .faq-section .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.blog-page .faq-section .section-head {
    text-align: center;
    margin-bottom: 56px;
}
.blog-page .faq-section .eyebrow {
    display: inline-block;
    background: var(--ink, #1a1a1a);
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.blog-page .faq-section .section-head h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    max-width: 760px;
    margin: 0 auto 14px;
    font-family: 'Unbounded', sans-serif;
    line-height: 1.15;
}
.blog-page .faq-section .faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}
.blog-page .faq-section .faq-item {
    background: #fff;
    border: 2px solid var(--ink, #1a1a1a);
    border-radius: var(--radius, 18px);
    overflow: hidden;
    box-shadow: var(--shadow-hard-sm, 4px 4px 0 var(--ink, #1a1a1a));
    padding: 0;
}
.blog-page .faq-section .faq-q {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink, #1a1a1a);
}
.blog-page .faq-section .faq-q .plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary, #ff6b3d);
    color: #fff;
    border: 2px solid var(--ink, #1a1a1a);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
}
.blog-page .faq-section .faq-item.open .faq-q .plus { transform: rotate(45deg); }
.blog-page .faq-section .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.blog-page .faq-section .faq-a-inner {
    padding: 0 26px 26px;
    color: var(--ink-2, #555);
    font-size: 16px;
    line-height: 1.55;
}
@media (max-width: 768px) {
    .blog-page .faq-section { padding: 60px 0; }
    .blog-page .faq-section .section-head { margin-bottom: 36px; }
    .blog-page .faq-section .section-head h2 { font-size: clamp(26px, 7vw, 34px); }
    .blog-page .faq-section .faq-q { padding: 18px 18px; font-size: 15px; gap: 12px; }
    .blog-page .faq-section .faq-q .plus { width: 28px; height: 28px; font-size: 16px; }
    .blog-page .faq-section .faq-a-inner { padding: 0 18px 20px; font-size: 14px; }
}
