/* ─── Blog Styles — Extends GGU Main Styles ─── */
/* This file extends styles.css without modifying it */

/* ─── Blog Container Overrides ─── */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Blog Header ─── */
.blog-header {
    padding: 8rem 0 3rem;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 216, 0, 0.05) 0%, transparent 60%);
}

.blog-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.blog-header .gold {
    color: var(--gold);
}

.blog-header .subtitle {
    color: var(--white-muted);
    font-size: 1.1rem;
    max-width: 550px;
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* ─── Featured Article ─── */
.featured-article {
    padding: 3rem 0 2rem;
}

.featured-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), rgba(255, 216, 0, 0.3));
    opacity: 0;
    transition: opacity 0.4s;
}

.featured-card:hover {
    border-color: rgba(255, 216, 0, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.4);
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-card .featured-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.featured-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    color: var(--white);
}

.featured-card h2 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.featured-card h2 a:hover {
    color: var(--gold);
}

.featured-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.75rem;
    color: var(--white-muted);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.featured-card .meta .category {
    color: var(--gold);
}

.featured-card .excerpt {
    color: var(--white-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 650px;
}

.featured-card .read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: gap 0.3s;
}

.featured-card .read-link:hover {
    gap: 0.8rem;
}

/* ─── Article Grid ─── */
.article-grid-section {
    padding: 2rem 0 4rem;
}

.article-grid-section .grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.article-grid-section .grid-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ─── Article Card ─── */
.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.article-card:hover {
    border-color: rgba(255, 216, 0, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card .card-category {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.article-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.article-card h4 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h4 a:hover {
    color: var(--gold);
}

.article-card .card-meta {
    font-size: 0.7rem;
    color: var(--white-muted);
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.article-card .card-excerpt {
    color: var(--white-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.article-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    margin-top: 0.8rem;
    transition: gap 0.3s;
}

.article-card .card-link:hover {
    gap: 0.7rem;
}

/* ─── Article Detail Page ─── */
.article-detail {
    padding: 8rem 0 4rem;
}

.article-detail .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.article-detail .back-link:hover {
    color: var(--gold);
}

.article-detail .detail-header {
    margin-bottom: 2.5rem;
}

.article-detail .detail-header .detail-category {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-detail .detail-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.article-detail .detail-header .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--white-muted);
    font-weight: 400;
}

.article-detail .detail-header .detail-meta .author {
    color: var(--white-soft);
}

/* ─── Article Content ─── */
.article-content {
    max-width: 750px;
}

.article-content .cover-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-muted);
    font-size: 0.8rem;
    font-weight: 400;
    overflow: hidden;
}

.article-content .cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content .cover-image .placeholder-icon {
    font-size: 3rem;
    opacity: 0.2;
}

.article-content .body {
    color: var(--white-soft);
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-content .body h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--white);
}

.article-content .body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem;
    color: var(--white);
}

.article-content .body p {
    margin-bottom: 1.2rem;
}

.article-content .body ul,
.article-content .body ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
    color: var(--white-muted);
}

.article-content .body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content .body blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--white-muted);
    font-style: italic;
    font-size: 1.05rem;
}

.article-content .body strong {
    color: var(--white);
}

.article-content .body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ─── Related Articles ─── */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    border-color: rgba(255, 216, 0, 0.2);
    transform: translateY(-3px);
}

.related-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.related-card h4 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.related-card h4 a:hover {
    color: var(--gold);
}

.related-card .related-meta {
    font-size: 0.65rem;
    color: var(--white-muted);
    font-weight: 400;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .blog-header {
        padding: 6rem 0 2rem;
    }

    .blog-header h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }

    .featured-card {
        padding: 1.8rem 1.5rem;
    }

    .featured-card h2 {
        font-size: 1.4rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-detail {
        padding: 6rem 0 3rem;
    }

    .article-detail .detail-header h1 {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
    }

    .article-content .body {
        font-size: 0.95rem;
    }

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

    .article-grid-section .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 1rem;
    }

    .featured-card {
        padding: 1.2rem 1rem;
    }

    .featured-card .meta {
        gap: 0.8rem;
        font-size: 0.65rem;
    }

    .article-card {
        padding: 1.2rem 1rem;
    }

    .article-detail .detail-header .detail-meta {
        gap: 0.8rem;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .article-content .cover-image {
        aspect-ratio: 16/10;
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    .featured-card,
    .article-card,
    .related-card {
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}