/* ============================================================
   BLOG PAGES — Styles
   ============================================================ */

/* ---------- HERO ---------- */
.blog-page__hero {
    padding: 8rem 0 2rem;
    text-align: center;
}

.blog-page__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0 0.75rem;
}

.blog-page__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- FILTERS ---------- */
.blog-page__filters {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
    text-decoration: none;
}

.filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--gold-400);
    color: var(--dark-900);
    border-color: var(--gold-400);
}

/* ---------- GRID ---------- */
.blog-page__grid-section {
    padding: 0 0 4rem;
}

.blog-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-page__grid--small {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
}

.blog-page__grid .blog-card--featured {
    grid-column: span 2;
    grid-row: span 1;
}

.blog-page__empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.blog-page__empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* ---------- CARD IMAGE LINK ---------- */
.blog-card__img-link {
    display: block;
    text-decoration: none;
}

.blog-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.blog-card__img-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.blog-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card__body h3 a:hover {
    color: var(--gold-400);
}

/* ---------- PAGINATION ---------- */
.blog-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration) var(--ease-out);
}

.pagination-btn:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------- ARTICLE PAGE ---------- */
.article-page {
    padding: 7rem 0 3rem;
}

.article-page .container {
    max-width: 800px;
}

/* Breadcrumb */
.article-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-page__breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration);
}

.article-page__breadcrumb a:hover {
    color: var(--gold-400);
}

.article-page__breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Header */
.article-page__header {
    margin-bottom: 2.5rem;
}

.article-page__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-page__header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-page__summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Image */
.article-page__image {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.article-page__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.article-page__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.article-page__content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.article-page__content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-page__content p {
    margin-bottom: 1.25rem;
}

.article-page__content ul,
.article-page__content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-page__content li {
    margin-bottom: 0.5rem;
}

.article-page__content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-page__content blockquote {
    border-left: 3px solid var(--gold-400);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    color: var(--text-primary);
    font-style: italic;
}

/* Back button */
.article-page__back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration) var(--ease-out);
}

.btn--outline:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.btn--outline svg {
    width: 16px;
    height: 16px;
}

/* ---------- RELATED ---------- */
.article-page__related {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
}

.article-page__related h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ---------- FOOTER ---------- */
.blog-page__footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.blog-page__footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-page__footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.blog-page__footer a {
    font-size: 0.8125rem;
    color: var(--gold-400);
    text-decoration: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .blog-page__grid {
        grid-template-columns: 1fr;
    }

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

    .blog-page__grid .blog-card--featured {
        grid-column: span 1;
    }

    .blog-page__footer .container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .article-page__breadcrumb {
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-page__grid--small {
        grid-template-columns: repeat(2, 1fr);
    }
}
