/* Modern Article Detail Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

.article-detail-page {
    background: var(--bg-light);
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb-section {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Article Header */
.article-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 20px;
}

.article-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-initials {
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
}

.author-details .author-name {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    font-size: 0.95rem;
}

.author-details .author-title {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Featured Image */
.featured-image-section {
    margin-bottom: 60px;
}

.featured-image-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Article Content */
.article-content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    background: white;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content ul,
.article-content ol {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 30px;
}

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

.article-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

.article-content .highlight-box {
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.article-content .highlight-box h4 {
    color: white;
    margin-top: 0;
}

.article-content .info-box {
    background: #e0f2fe;
    border: 1px solid #81d4fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
}

.article-content .warning-box {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Social Share */
.social-share {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    text-align: center;
}

.social-share h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Related Articles */
.related-articles {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
}

.related-articles h3 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-card {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.related-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card-content {
    padding: 20px;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .featured-image {
        height: 300px;
    }

    .article-content {
        padding: 30px 20px;
    }

    .related-articles {
        padding: 30px 20px;
    }

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

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Back to Articles Button */
.btn-back-to-articles {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-back-to-articles:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back-to-articles:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-back-to-articles i {
    font-size: 0.9rem;
}

/* Enhanced Article Tags */
.article-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.article-tags .tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.article-tags .tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}