/* Blog Detail Page Styles */

.blog-detail-page {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Article Hero Image */
.article-hero {
    padding-top: 60px; /* header height */
    background: #000;
}

.article-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Article Section */
.article-section {
    background: #0a0a0a;
    padding: 3rem 2rem 4rem;
}

.article-container {
    max-width: 780px;
    margin: 0 auto;
}

.article-meta {
    margin-bottom: 1rem;
}

.article-date {
    font-size: 0.85rem;
    color: #c4a35a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
}

/* Article Body Blocks */
.article-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-block-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #ccc;
    white-space: pre-wrap;
}

.article-block-image {
    margin: 0;
}

.article-block-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article-loading {
    color: #555;
    font-size: 1rem;
}

/* Share Button */
.article-share {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}

.article-share-btn:hover {
    border-color: #c4a35a;
    color: #c4a35a;
}

/* Related Posts Section */
.related-posts-section {
    padding: 4rem 2rem;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.related-post-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.related-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 163, 90, 0.4);
}

.related-post-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-post-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-post-card:hover .related-post-img-wrap img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1rem 1.2rem;
}

.related-post-date {
    font-size: 0.75rem;
    color: #c4a35a;
    display: block;
    margin-bottom: 0.4rem;
}

.related-post-title {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .article-hero-inner {
        aspect-ratio: 16 / 9;
    }

    .article-section {
        padding: 2rem 1.2rem 3rem;
    }

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

    .related-posts-section {
        padding: 3rem 1.2rem;
    }
}

@media (max-width: 500px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
