/* =============================================================
   BLOG.CSS — Shared styles for all Reforge Me blog pages
   Loaded alongside styles.css on every blog page.
   Post-specific components (verdict-box, fix-block, etc.)
   remain inline in their respective HTML files.
   ============================================================= */

/* ===== POST HERO ===== */
.post-hero {
    background: linear-gradient(165deg, var(--royal-blue-dark) 0%, var(--royal-blue) 40%, var(--royal-blue-light) 100%);
    padding: 140px 0 72px;
    position: relative;
    overflow: hidden;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse 600px 500px at 20% 60%, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.post-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
}
.post-breadcrumb a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb span { color: rgba(255,255,255,0.3); }
.post-tag {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.post-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 20px;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.post-meta-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; }

/* ===== ARTICLE BODY ===== */
.post-body {
    padding: 72px 0 100px;
    background: var(--white);
}
.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.post-content { max-width: 720px; }
.post-content p {
    font-size: 1.02rem;
    color: #2d2d2d;
    line-height: 1.85;
    margin-bottom: 24px;
}
.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--royal-blue-dark);
    margin: 44px 0 16px;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(10,36,99,0.1);
}
.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--royal-blue);
    margin: 28px 0 10px;
}
.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}
.post-content li {
    font-size: 1.02rem;
    color: #2d2d2d;
    line-height: 1.75;
    margin-bottom: 8px;
}
.post-callout {
    background: linear-gradient(135deg, rgba(10,36,99,0.05), rgba(201,168,76,0.08));
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 32px 0;
}
.post-callout p { margin: 0; font-weight: 500; color: var(--royal-blue-dark); }

/* ===== SIDEBAR ===== */
.post-sidebar { position: sticky; top: 100px; }
.sidebar-card {
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.sidebar-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--royal-blue-dark);
    margin-bottom: 16px;
}
.sidebar-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.sidebar-related a {
    display: block;
    font-size: 0.88rem;
    color: var(--royal-blue);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}
.sidebar-related a:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-related a:hover { color: var(--gold-dark); padding-left: 4px; }

/* ===== BLOG INDEX — HERO ===== */
.blog-hero {
    background: linear-gradient(165deg, var(--royal-blue-dark) 0%, var(--royal-blue) 40%, var(--royal-blue-light) 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 600px 600px at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 30%, rgba(201,168,76,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.blog-hero-content { position: relative; z-index: 2; }
.blog-hero-label {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.blog-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== BLOG INDEX — GRID ===== */
.blog-section {
    padding: 80px 0 100px;
    background: var(--off-white);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gold);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.blog-card-tag-bar { padding: 28px 28px 0; }
.blog-tag {
    display: inline-block;
    background: rgba(10,36,99,0.07);
    color: var(--royal-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}
.blog-card-body {
    padding: 16px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--royal-blue-dark);
    line-height: 1.4;
    margin-bottom: 12px;
}
.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}
.blog-card-date { font-weight: 500; }
.blog-read-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition);
}
.blog-read-link:hover { color: var(--gold-dark); background: rgba(201, 168, 76, 0.25); gap: 8px; }
.blog-read-link svg { transition: var(--transition); }

/* ===== FOOTER (blog — 4-column layout) ===== */
/* Blog pages have 4 footer sections vs. main site's 5.
   All other values match styles.css exactly. */
.footer {
    background: var(--royal-blue-dark);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0;
}
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 16px 0 24px;
    line-height: 1.7;
}
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-links a:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.1);
    transform: translateY(-2px);
}
.footer-links h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.footer-links a,
.footer-links p {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    margin-bottom: 12px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-address { margin-top: 4px; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
