/* ==========================================================
   blog.css — Shared styles for blog articles, FAQ, content pages
   ========================================================== */

:root {
    --primary-accent:   #d4af37;
    --secondary-accent: #f9d77e;
    --glass-bg:         rgba(20, 20, 20, 0.65);
    --glass-border:     rgba(212, 175, 55, 0.2);
    --neon-cyan:        #00f3ff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background: radial-gradient(circle at bottom, #1a0b2e 0%, #000000 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; }

#bg-canvas {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1; pointer-events: none;
}

#page-content {
    position: relative; z-index: 10;
    padding: 1.5rem 1rem 5rem;
    min-height: 100vh;
}

/* ── Nav ─────────────────────────────────────────── */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0 1.5rem;
}
.page-nav .brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem; font-weight: 800;
    color: var(--primary-accent);
    text-shadow: 0 0 12px rgba(212,175,55,0.5);
    text-decoration: none; letter-spacing: 2px;
}
.page-nav .brand i { color: var(--neon-cyan); }
.btn-back {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.55);
    border-radius: 50px; padding: 6px 16px;
    font-size: 0.82rem;
    display: flex; align-items: center; gap: 6px;
    text-decoration: none; transition: all 0.2s;
}
.btn-back:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Page hero ──────────────────────────────────── */
.page-h1 {
    font-size: clamp(1.75rem, 5vw, 2.7rem);
    color: var(--primary-accent);
    text-shadow: 0 0 20px rgba(212,175,55,0.45);
    margin-bottom: 0.4rem; line-height: 1.2;
}
.page-subtitle { color: rgba(255,255,255,0.45); font-size: 0.9rem; margin: 0; }

/* ── Card ───────────────────────────────────────── */
.page-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 1.75rem; margin-bottom: 1.2rem;
}

/* ── Section badge ──────────────────────────────── */
.section-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 50px; padding: 4px 13px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.4px;
    color: var(--primary-accent); margin-bottom: 1rem;
}
.section-badge.cyan {
    background: rgba(0,243,255,0.08);
    border-color: rgba(0,243,255,0.28);
    color: var(--neon-cyan);
}

/* ── Article meta ───────────────────────────────── */
.article-meta {
    display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center;
    font-size: 0.75rem; color: rgba(255,255,255,0.38);
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ── Article body typography ────────────────────── */
.article-body h2 {
    font-size: 1.3rem; color: #fff;
    margin: 2rem 0 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(212,175,55,0.18);
}
.article-body h3 {
    font-size: 1.05rem; color: var(--secondary-accent);
    margin: 1.3rem 0 0.45rem;
}
.article-body p {
    font-size: 0.93rem; color: rgba(255,255,255,0.77);
    line-height: 1.78; margin-bottom: 0.85rem;
}
.article-body ul, .article-body ol {
    padding-left: 1.35rem; margin-bottom: 0.9rem;
}
.article-body li {
    font-size: 0.9rem; color: rgba(255,255,255,0.73);
    line-height: 1.65; margin-bottom: 0.4rem;
}
.article-body strong { color: #fff; }
.article-body a { color: var(--primary-accent); }
.article-body a:hover { color: var(--secondary-accent); }

/* ── Callout box ────────────────────────────────── */
.callout {
    background: rgba(0,243,255,0.06);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 10px 10px 0;
    padding: 0.9rem 1.1rem; margin: 1.2rem 0;
    font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.65;
}
.callout.gold {
    background: rgba(212,175,55,0.08);
    border-left-color: var(--primary-accent);
}
.callout strong { color: #fff; }
.callout p { margin: 0; }

/* ── Numbered tip list ──────────────────────────── */
.tip-list { list-style: none; padding: 0; margin: 0.8rem 0; }
.tip-list li {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem; color: rgba(255,255,255,0.74); line-height: 1.55;
}
.tip-list li:last-child { border-bottom: none; }
.tip-num {
    min-width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent); font-size: 0.72rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}

/* ── Info tile grid ─────────────────────────────── */
.info-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; margin: 0.9rem 0;
}
.info-tile {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px; padding: 12px 14px;
}
.info-tile .tile-icon { font-size: 1.3rem; margin-bottom: 6px; }
.info-tile .tile-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.info-tile .tile-body { font-size: 0.79rem; color: rgba(255,255,255,0.52); line-height: 1.45; }

/* ── CTA block ──────────────────────────────────── */
.cta-box {
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 16px; padding: 1.75rem;
    text-align: center; margin-top: 2.5rem;
}
.cta-box p { color: rgba(255,255,255,0.62); font-size: 0.93rem; margin-bottom: 1rem; }
.btn-gold-page {
    background: linear-gradient(135deg, var(--primary-accent), #b8901b);
    color: #000;
    font-family: 'Space Grotesk', sans-serif; font-weight: 800; border: none;
    border-radius: 50px; padding: 0.78rem 2rem;
    text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(212,175,55,0.4);
    transition: all 0.3s ease; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold-page:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(212,175,55,0.8); color: #000; }

/* ── Blog index — card grid ─────────────────────── */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.2rem 1.4rem;
    text-decoration: none;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: all 0.22s ease;
}
.blog-card:hover {
    border-color: rgba(212,175,55,0.5);
    background: rgba(30,20,45,0.82);
    transform: translateY(-2px);
}
.blog-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.22);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-accent); font-size: 1rem; flex-shrink: 0;
}
.blog-card-body { flex: 1; min-width: 0; }
.blog-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem; font-weight: 700; color: #fff;
    margin-bottom: 4px; line-height: 1.3;
}
.blog-card-desc {
    font-size: 0.79rem; color: rgba(255,255,255,0.48);
    line-height: 1.45; margin-bottom: 6px;
}
.blog-card-meta {
    font-size: 0.7rem; color: rgba(255,255,255,0.28);
    display: flex; gap: 10px; flex-wrap: wrap;
}
.blog-card-arrow {
    color: rgba(255,255,255,0.2); font-size: 0.75rem;
    align-self: center; transition: transform 0.2s; flex-shrink: 0;
}
.blog-card:hover .blog-card-arrow { color: var(--primary-accent); transform: translateX(3px); }

/* ── FAQ accordion ──────────────────────────────── */
.faq-category-title {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: rgba(255,255,255,0.35);
    padding: 0.5rem 0 0.4rem; margin: 1.2rem 0 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.faq-category-title:first-of-type { margin-top: 0; border-top: none; }

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px; margin-bottom: 0.5rem; overflow: hidden;
}
.faq-question {
    width: 100%; background: transparent; border: none; color: #fff;
    padding: 1rem 1.25rem; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem; font-weight: 700; gap: 0.75rem;
    transition: background 0.2s; line-height: 1.35;
}
.faq-question:hover { background: rgba(255,255,255,0.04); }
.faq-icon { color: var(--primary-accent); font-size: 0.72rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.25rem;
    max-height: 0; overflow: hidden;
    transition: max-height 0.32s ease, padding 0.32s ease;
    font-size: 0.87rem; color: rgba(255,255,255,0.68); line-height: 1.72;
}
.faq-item.is-open .faq-answer {
    padding: 0.1rem 1.25rem 1.1rem;
    max-height: 500px;
}
.faq-answer a { color: var(--primary-accent); }

/* ── Breadcrumb ─────────────────────────────────── */
.breadcrumb-row {
    display: flex; gap: 6px; align-items: center;
    font-size: 0.72rem; color: rgba(255,255,255,0.35);
    margin-bottom: 1.25rem; flex-wrap: wrap;
}
.breadcrumb-row a { color: rgba(255,255,255,0.45); text-decoration: none; }
.breadcrumb-row a:hover { color: var(--primary-accent); }
.breadcrumb-row .sep { color: rgba(255,255,255,0.2); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
    .page-h1 { font-size: 1.7rem; }
    .blog-card { flex-direction: column; }
    .blog-card-icon { width: 36px; height: 36px; }
    .article-body h2 { font-size: 1.15rem; }
}
