/* ===================== VARIABLES ===================== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-lighter);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================== PAGE LAYOUT ===================== */
.berita-detail-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== BREADCRUMB SECTION ===================== */
.breadcrumb-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    position: sticky;
    top: 80px;
    z-index: 50;
}

.breadcrumb-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-lighter);
}

.breadcrumb-current {
    color: var(--text-light);
    font-weight: 600;
}

/* ===================== CONTENT SECTION ===================== */
.berita-detail-content {
    padding: 60px 20px;
}

/* ===================== BACK BUTTON ===================== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.back-button:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
    transform: translateX(-4px);
}

/* ===================== ARTICLE CARD ===================== */
.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease-out;
    margin-bottom: 60px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== ARTICLE IMAGE ===================== */
.article-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--bg-light);
}

.article-image,
.article-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image {
    transition: var(--transition);
}

.article-card:hover .article-image {
    transform: scale(1.03);
}

.article-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: var(--secondary-color);
    font-size: 80px;
}

/* ===================== ARTICLE HEADER ===================== */
.article-header {
    padding: 40px;
}

.article-category {
    margin-bottom: 16px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-color), #d97706);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.meta-item i {
    color: var(--secondary-color);
    font-size: 16px;
}

.meta-text {
    font-weight: 500;
}

.meta-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

/* ===================== SHARE BUTTONS ===================== */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-facebook {
    background: #1877f2;
    color: var(--bg-white);
}

.share-facebook:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-twitter {
    background: #1da1f2;
    color: var(--bg-white);
}

.share-twitter:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-linkedin {
    background: #0077b5;
    color: var(--bg-white);
}

.share-linkedin:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-copy {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.share-copy:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===================== ARTICLE BODY ===================== */
.article-body {
    padding: 0 40px 40px;
}

.article-content {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

.article-content em {
    color: var(--text-dark);
    font-style: italic;
}

/* ===================== ARTICLE FOOTER ===================== */
.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.article-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
}

.article-updated i {
    color: var(--secondary-color);
}

.footer-right {
    display: flex;
    align-items: center;
}

.article-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-link {
    padding: 6px 12px;
    background: var(--bg-white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

/* ===================== RELATED ARTICLES ===================== */
.related-articles {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--secondary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    background: var(--bg-light);
}

.related-img,
.related-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-img {
    transition: var(--transition);
}

.related-card:hover .related-img {
    transform: scale(1.1);
}

.related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: var(--secondary-color);
    font-size: 50px;
}

.related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-excerpt {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.5;
}

.related-meta {
    margin-bottom: 12px;
}

.related-date {
    font-size: 12px;
    color: var(--text-lighter);
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.related-link:hover {
    gap: 10px;
    color: var(--primary-color);
}

/* ===================== CTA SECTION ===================== */
.berita-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
}

.berita-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.berita-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }

    .article-header {
        padding: 28px;
    }

    .article-body {
        padding: 0 28px 28px;
    }

    .article-footer {
        padding: 20px 28px;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 22px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .article-share {
        flex-wrap: wrap;
    }

    .berita-cta h2 {
        font-size: 28px;
    }

    .berita-cta p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 22px;
    }

    .article-header {
        padding: 20px;
    }

    .article-body {
        padding: 0 20px 20px;
    }

    .article-footer {
        padding: 16px 20px;
    }

    .article-meta {
        font-size: 13px;
        gap: 12px;
    }

    .meta-divider {
        height: 16px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .article-content {
        font-size: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-title {
        font-size: 15px;
    }

    .related-excerpt {
        font-size: 12px;
    }

    .breadcrumb-container {
        font-size: 12px;
        gap: 8px;
    }

    .back-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .berita-detail-content {
        padding: 40px 15px;
    }

    .berita-cta {
        padding: 40px 15px;
    }

    .berita-cta h2 {
        font-size: 22px;
    }

    .berita-cta p {
        font-size: 13px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}