/* ═══════════════════════════════════════════════════════════════
   BLOG V2 STYLES
   Used by blog/index.html and all blog post pages
   Requires: design-system-v2.css loaded first
   ═══════════════════════════════════════════════════════════════ */

/* ─── Blog Container ─── */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

/* ─── Blog Index: Header ─── */
.blog-header-index {
    text-align: center;
    margin-bottom: 48px;
}

.blog-header-index h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 52px;
    font-weight: 400;
    color: var(--heading);
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.blog-header-index p {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ─── Blog Index: Grid ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-grid.single-post {
    grid-template-columns: minmax(320px, 450px);
    justify-content: center;
}

/* ─── Blog Index: Cards ─── */
.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.blog-card-image {
    background: linear-gradient(135deg, #2196f2, #1976d2);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.blog-card-image h3 {
    color: white;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-tag {
    display: inline-block;
    background: rgba(33, 150, 242, 0.1);
    color: #2196f2;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.25rem;
    color: var(--heading);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #2196f2;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 300;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--dim);
    font-weight: 300;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2196f2;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 10px;
}

.read-more svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* ═══════════════════════════════════════════════════════════════
   BLOG POST STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Post Header ─── */
.blog-header {
    margin-bottom: 40px;
}

.blog-breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.blog-breadcrumb a {
    color: #2196f2;
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--heading);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.blog-meta {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 24px;
    font-weight: 300;
}

/* ─── Intro Block ─── */
.blog-intro {
    font-size: 1.15rem;
    color: var(--text);
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid #2196f2;
    border-radius: 0 12px 12px 0;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.7;
}

/* ─── Content Typography ─── */
.blog-content h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--heading);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading);
    margin-top: 24px;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 300;
    line-height: 1.7;
}

.blog-content ul,
.blog-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-content li {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 1.7;
}

.blog-content li strong {
    color: #2196f2;
    font-weight: 600;
}

/* ─── Goal Box ─── */
.goal-box {
    background: linear-gradient(135deg, #2196f2, #1976d2);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

/* ─── Summary Box ─── */
.summary-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid #2196f2;
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
}

.summary-box h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    color: #2196f2;
    margin-top: 0 !important;
    border-bottom: none !important;
}

.summary-box ul {
    margin-bottom: 0;
}

/* ─── Tip Box ─── */
.tip-box {
    background: linear-gradient(135deg, #2196f2 0%, #1976d2 100%);
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin: 48px 0;
}

.tip-box h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
}

.tip-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ─── Info Box (semantic blue) ─── */
.info-box {
    background: rgba(33, 150, 242, 0.08);
    border: 1px solid rgba(33, 150, 242, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.info-box h3 {
    color: #2196f2;
    margin-top: 0;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box li,
.info-box p {
    color: var(--text);
}

/* ─── Action Box (semantic green) ─── */
.action-box {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.action-box h3 {
    color: #22c55e;
    margin-top: 0;
}

.action-box p,
.action-box li {
    color: var(--text);
}

/* ─── Warning Box (semantic amber) ─── */
.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.warning-box h3 {
    color: #f59e0b;
    margin-top: 0;
}

.warning-box p,
.warning-box li {
    color: var(--text);
}

/* ─── Future Box (semantic purple) ─── */
.future-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.future-box h3 {
    color: #818cf8;
    margin-top: 0;
}

.future-box p {
    color: var(--text);
}

/* ─── Comparison Table ─── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #2196f2, #1976d2);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text);
    font-weight: 300;
}

.comparison-table tr:nth-child(even) {
    background: var(--card-bg);
}

/* ─── FAQ Section ─── */
.faq-section {
    margin-top: 48px;
}

.faq-item {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.faq-item h3 {
    color: var(--heading);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 300;
}

/* ─── CTA Section ─── */
.cta-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    text-align: center;
    padding: 48px 24px;
    border-radius: 20px;
    margin-top: 48px;
}

.cta-section h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--heading);
    border-bottom: none;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--muted);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2196f2, #1976d2);
    color: white;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(33, 150, 242, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(33, 150, 242, 0.4);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .blog-container {
        padding: 100px 20px 40px;
    }

    .blog-header-index h1 {
        font-size: 36px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-title {
        font-size: 1.875rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .summary-box,
    .tip-box,
    .info-box,
    .warning-box,
    .action-box,
    .future-box {
        padding: 24px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 90px 16px 32px;
    }

    .blog-header-index h1 {
        font-size: 28px;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 32px 16px;
    }
}
