/**
 * assets/css/daftar-bab.css
 * ✅ Judul halaman
 * ✅ Kotak penjelasan
 * ✅ Kotak bab yang bisa dibuka/tutup
 * ✅ Daftar chapter di dalamnya
 * ✅ Kotak bab yang terkunci
 */

#main-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 16px 80px;
    width: 100%;
}

/* Judul Halaman */
.judul-halaman {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    letter-spacing: 8px;
    color: #D4AF37;
    font-weight: normal;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    background: rgba(10, 8, 5, .8);
    padding: 16px 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.story-admin-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -16px auto 18px; }
.story-admin-actions a, .bi-edit { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid #D4AF37; border-radius: 999px; color: #171208; background: #D4AF37; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.story-admin-actions a:hover, .bi-edit:hover { filter: brightness(1.08); }

/* Kotak Penjelasan */
.note-acc {
    border: 2px solid #D4AF37;
    border-radius: 6px;
    margin: 0 auto 30px;
    background: rgba(10, 8, 5, .8);
    overflow: hidden;
    max-width: 560px;
    width: 100%;
}
.note-acc summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 16px;
    color: #D4AF37;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.note-acc summary::-webkit-details-marker { display: none; }
.note-acc .note-body {
    padding: 4px 18px 16px;
    font-size: 13px;
    line-height: 1.75;
    color: #ddd;
    max-width: 500px;
    margin: 0 auto;
    text-align: justify;
}
.note-acc .note-body b { color: #D4AF37; }

/* Pembungkus Daftar */
.card {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* Kotak Bab */
.bab-acc {
    border: 2px solid #D4AF37;
    border-radius: 6px;
    margin: 16px auto 0;
    background: rgba(10, 8, 5, .8);
    overflow: hidden;
    max-width: 560px;
    width: 100%;
    transition: .2s ease;
}
.bab-acc summary {
    list-style: none;
    padding: 0;
    cursor: pointer;
}
.bab-acc summary::-webkit-details-marker { display: none; }

/* Baris Atas Bab */
.bab-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
}

/* Label BAB */
.bab-label {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    font-size: 13px;
    font-weight: bold;
    border-radius: 2px;
    min-width: 60px;
    text-align: center;
}

/* Judul Bab (bisa diklik) */
.bab-link {
    flex: 1;
    color: #D4AF37;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.bab-link:hover { text-shadow: 0 0 8px rgba(212,175,55,0.5); }

/* Tag Tersedia */
.status-tag {
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #4ade80;
    border: 1px solid #4ade80;
    background: rgba(74,222,128,0.1);
}

/* Daftar Chapter di dalam */
.blist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 20px 18px;
    border-top: 1px solid rgba(212,175,55,0.2);
    background: rgba(0, 0, 0, .25);
}

/* Link Chapter */
.bi-row { display: flex; align-items: center; gap: 8px; }
.bi-row .bi { flex: 1; min-width: 0; }
.bi-edit { flex: 0 0 auto; color: #D4AF37; background: rgba(0,0,0,.45); padding: 10px 13px; }

.bi {
    display: block;
    padding: 10px 14px;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(212,175,55,0.3);
    color: #E8E0D0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: .2s;
}
.bi:hover {
    background: rgba(212,175,55,0.1);
    color: #D4AF37;
    padding-left: 18px;
}

/* Bab Terkunci / Belum Ada */
.bab-locked {
    padding: 20px;
    border-radius: 6px;
    margin: 16px auto 0;
    background: rgba(0, 0, 0, .35);
    border: 1px dashed #D4AF37;
    opacity: .7;
    font-size: 14px;
    text-align: center;
    max-width: 560px;
    width: 100%;
}
.bab-locked b {
    color: #D4AF37;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .story-admin-actions { gap: 10px; margin-top: -10px; }
    .story-admin-actions a, .bi-edit { min-height: 46px; padding: 11px 15px; font-size: 13px; }
    .bi-row { align-items: stretch; }
    .bi-edit { justify-content: center; }
}
