/* =====================================================
   BLOG POST PAGE STYLES
   ===================================================== */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-orange);
}

/* Article Header */
.article-header {
    padding: 150px 0 50px;
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 25px;
    max-width: 900px;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 40px;
}

.article-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.article-date-share {
    display: flex;
    align-items: center;
    gap: 25px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-medium);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--bg-primary);
}

/* Featured Image */
.article-featured-image {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.article-featured-image .featured-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
}

.article-featured-image .placeholder-icon {
    font-size: 8rem;
    opacity: 0.8;
}

/* Article Body Layout */
.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* Article Content Typography */
.article-content {
    max-width: 100%;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.article-content .intro-paragraph {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
    padding-left: 25px;
    border-left: 4px solid var(--accent-orange);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 50px 0 25px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 35px 0 20px;
    color: var(--text-primary);
}

.article-content a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--accent-yellow);
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content li strong {
    color: var(--text-primary);
}

/* Blockquote */
.article-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-purple);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.article-content blockquote cite {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: normal;
}

/* Stats Highlight Box */
.stats-highlight {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.stat-box .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Figure */
.article-figure {
    margin: 40px 0;
}

.figure-placeholder {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.figure-placeholder .placeholder-icon {
    font-size: 5rem;
    opacity: 0.7;
}

.article-figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-style: italic;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.tag-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Author Card */
.author-info-full {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.author-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.author-bio h5 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.author-bio p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social-link {
    padding: 8px 16px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.author-social-link:hover {
    color: var(--accent-orange);
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-article {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.related-article:hover {
    background: var(--bg-card-hover);
}

.related-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Sidebar Newsletter */
.newsletter-card {
    background: var(--secondary-gradient);
}

.newsletter-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
}

.sidebar-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-newsletter button {
    padding: 12px 16px;
    background: white;
    color: var(--accent-purple);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-newsletter button:hover {
    transform: translateY(-2px);
}

/* Article Footer Section */
.article-footer-section {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

/* Comments Section */
.comments-section {
    margin-bottom: 60px;
}

.comments-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.comments-cta {
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.comments-cta p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* More Articles */
.more-articles h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.more-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.more-article-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
}

.more-article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.more-thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.more-content {
    padding: 20px;
}

.more-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 120px 0 40px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-lead {
        font-size: 1.1rem;
    }

    .article-author-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-featured-image {
        padding: 0 20px;
    }

    .article-featured-image .featured-placeholder {
        height: 300px;
    }

    .stats-highlight {
        flex-direction: column;
    }

    .stat-box {
        padding: 15px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .more-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-content blockquote {
        padding: 20px 25px;
    }
}