/* ===================================
   Pilgrim's Path — Articles & Blog Styles
   Extends base styles.css
   =================================== */

/* ========================
   ARTICLES LISTING PAGE 
   ======================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.article-card {
    background: var(--pearl);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.08);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(201, 162, 39, 0.2);
}

.article-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

.article-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(201, 162, 39, 0.9);
    color: var(--deep-night);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.article-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-body h3 a:hover {
    color: var(--primary-gold);
}

.article-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: gap 0.3s;
}

.article-read-more:hover {
    gap: 12px;
}

/* Featured article — spans full width */
.article-card-featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: linear-gradient(135deg, var(--pearl) 0%, var(--warm-cream) 100%);
}

.article-card-featured .article-card-img {
    height: 100%;
    min-height: 340px;
}

.article-card-featured .article-card-body {
    padding: 40px 36px;
    justify-content: center;
}

.article-card-featured .article-card-body h3 {
    font-size: 1.7rem;
}

/* ========================
   ARTICLE DETAIL PAGE 
   ======================== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    margin-bottom: 40px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-bar i {
    color: var(--primary-gold);
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 36px 0 16px;
}

.article-body p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px 24px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--primary-gold);
    background: rgba(201, 162, 39, 0.04);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body strong {
    color: var(--text-primary);
}

/* VR Embed Placeholder */
.vr-embed-placeholder {
    margin: 40px 0;
    background: linear-gradient(135deg, #1A120B 0%, #2C1810 100%);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.15);
}

.vr-embed-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='.4' stroke-opacity='.1'%3E%3Cpolygon points='40,5 45,35 75,40 45,45 40,75 35,45 5,40 35,35'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.vr-embed-placeholder .vr-placeholder-inner {
    position: relative;
    z-index: 1;
}

.vr-embed-placeholder .vr-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(201, 162, 39, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-gold);
}

.vr-embed-placeholder h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}

.vr-embed-placeholder p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.vr-embed-placeholder .btn-vr {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    color: var(--deep-night);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vr-embed-placeholder .btn-vr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
}

/* Article sidebar / related */
.article-sidebar {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.related-card {
    background: var(--pearl);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid rgba(201, 162, 39, 0.06);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(201, 162, 39, 0.15);
}

.related-card .related-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.related-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Article CTA Banner */
.article-cta-banner {
    margin: 48px 0;
    background: linear-gradient(135deg, var(--pearl) 0%, var(--warm-cream) 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(201, 162, 39, 0.12);
}

.article-cta-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.article-cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Table of Contents */
.toc {
    background: var(--pearl);
    border-radius: var(--border-radius);
    padding: 28px 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(201, 162, 39, 0.08);
}

.toc h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc h4 i {
    color: var(--primary-gold);
}

.toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
}

.toc li {
    counter-increment: toc;
    margin-bottom: 8px;
}

.toc li::before {
    content: counter(toc) ".";
    color: var(--primary-gold);
    font-weight: 600;
    margin-right: 8px;
    font-size: 0.85rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--primary-gold);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-gold);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* Article Image */
.article-hero-img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    aspect-ratio: 21/9;
    object-fit: cover;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-card-featured {
        grid-column: span 2;
    }
    .related-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-card-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .article-card-featured .article-card-img {
        min-height: 220px;
    }
    .article-body h2 {
        font-size: 1.5rem;
    }
    .related-articles {
        grid-template-columns: 1fr;
    }
    .vr-embed-placeholder {
        padding: 40px 24px;
    }
    .article-meta-bar {
        gap: 12px;
    }
}
