/* CSS KHUSUS HALAMAN DETAIL KARYAKU */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

.detail-karya-section {
    padding: 60px 0;
    background-color: var(--white);
}

/* Breadcrumb */
.dk-breadcrumb {
    max-width: 800px;
    margin: 0 auto 32px auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--slate-light);
}
.dk-breadcrumb a {
    color: #4f46e5;
    font-weight: 600;
}
.dk-breadcrumb a:hover {
    text-decoration: underline;
}
.dk-breadcrumb span {
    color: var(--slate);
}

/* Header Area */
.dk-header {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}
.dk-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fef08a; /* Default sastra */
    color: #854d0e;
    margin-bottom: 24px;
}
.dk-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 32px;
    font-family: var(--font-heading);
}

/* Meta Penulis */
.dk-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}
.dk-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.dk-meta-info {
    display: flex;
    flex-direction: column;
}
.dk-author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
}
.dk-author-role {
    font-size: 14px;
    color: var(--slate);
}
.dk-date-read {
    font-size: 13px;
    color: var(--slate-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CONTENT AREA (FORMAT UNIVERSAL) */
.dk-content {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Lora', serif; /* Font Klasik untuk Membaca */
    font-size: 19px;
    line-height: 1.8;
    color: #334155; /* Slate */
}

.dk-hero-artwork {
    margin: 0 0 36px;
}

.dk-hero-artwork-frame {
    position: relative;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 38%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 42%),
        linear-gradient(145deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dk-hero-artwork-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 20px;
    border: 1px dashed rgba(15, 118, 110, 0.24);
    pointer-events: none;
}

.dk-hero-artwork-image {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.dk-hero-artwork-caption {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    font-family: var(--font-body);
}

.dk-hero-artwork-fallback {
    margin-bottom: 32px;
}

.dk-hero-artwork-empty {
    padding: 34px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 48%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    font-family: var(--font-body);
}

.dk-hero-artwork-empty-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 9999px;
    background: rgba(15, 118, 110, 0.10);
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dk-hero-artwork-empty h3 {
    margin: 18px 0 10px;
    font-size: 28px;
}

.dk-hero-artwork-empty p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

/* Paragraf Biasa (Artikel/Cerpen) */
.dk-content p {
    margin-bottom: 28px;
}

/* Kutipan / Puisi / Pantun */
.dk-content blockquote {
    font-style: italic;
    font-size: 22px;
    line-height: 1.6;
    color: #4f46e5;
    margin: 40px 0;
    padding: 0 0 0 32px;
    border-left: 4px solid #6366f1;
    background: transparent;
}
.dk-content blockquote p {
    margin-bottom: 12px;
}
.dk-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Gambar dalam Konten */
.dk-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.dk-caption {
    text-align: center;
    font-size: 14px;
    color: var(--slate-light);
    margin-top: -24px;
    margin-bottom: 40px;
    font-family: var(--font-body);
}

/* Video dalam Konten (Ceramah dll) */
.dk-content .video-container {
    position: relative;
    width: 100%;
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.dk-content video, .dk-content iframe {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
}

/* Sub-judul dalam artikel */
.dk-content h2, .dk-content h3 {
    font-family: var(--font-heading);
    color: var(--charcoal);
    margin-top: 48px;
    margin-bottom: 20px;
}
.dk-content h2 { font-size: 28px; }
.dk-content h3 { font-size: 22px; }

/* REKOMENDASI KARYA BAWAH */
.dk-more-section {
    background: #f8fafc;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}
.dk-more-title {
    max-width: 800px;
    margin: 0 auto 32px auto;
    font-size: 24px;
    font-weight: 800;
    color: var(--charcoal);
}
.dk-more-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
}

.dk-more-empty {
    grid-column: 1 / -1;
    padding: 32px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
}

.dk-related-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    overflow: hidden;
    min-height: 100%;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dk-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
    border-color: rgba(16, 185, 129, 0.22);
}

.dk-related-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    min-height: 100%;
}

.dk-related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dk-related-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dk-related-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dk-related-badge {
    margin-bottom: 0;
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.dk-related-date {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.dk-related-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: var(--charcoal);
    font-family: var(--font-heading);
}

.dk-related-excerpt {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dk-related-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.dk-related-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.dk-related-author-name,
.dk-related-author-role {
    display: block;
}

.dk-related-author-name {
    color: var(--charcoal);
    font-size: 12px;
    font-weight: 700;
}

.dk-related-author-role {
    color: #64748b;
    font-size: 11px;
}

.dk-related-link {
    margin-top: auto;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (min-width: 768px) {
    .dk-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dk-title { font-size: 48px; }
}

@media (max-width: 767px) {
    .detail-karya-section {
        padding: 40px 0;
    }

    .dk-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .dk-content {
        font-size: 17px;
        line-height: 1.75;
    }

    .dk-hero-artwork-frame {
        padding: 14px;
        border-radius: 22px;
    }

    .dk-hero-artwork-frame::before {
        inset: 8px;
        border-radius: 16px;
    }

    .dk-hero-artwork-empty {
        padding: 24px 20px;
    }

    .dk-more-grid {
        max-width: 100%;
    }

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

    .dk-related-thumb-wrap {
        aspect-ratio: 16 / 9;
    }

    .dk-related-title {
        font-size: 17px;
    }
}
