/* ============================================================
   LITERASI.CSS — Styling untuk modul Literasi
   (member index/create + galeri publik + admin moderasi)
   Mengikuti tema visual: hero gradasi, #f8fafc, rounded card.
   ============================================================ */

/* ===== HERO ===== */
.literasi-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 140px 0 80px; /* sesuaikan dengan tinggi navbar (sama dgn .catalog-hero) */
    text-align: center;
    margin-bottom: 2rem;
}
.literasi-hero .literasi-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.literasi-hero .literasi-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

/* ===== KARTU KARYA ===== */
.karya-card {
    border: none;
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    overflow: hidden;
    height: 100%;
}
.karya-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Gambar pada kartu karya (poster / lampiran) */
.karya-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #f1f5f9;
}
.karya-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
    color: #6366f1;
    font-size: 3rem;
}

/* Pratinjau konten (dipotong) */
.karya-konten-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* ===== BADGE TIPE KARYA ===== */
/* Warna diambil dari KaryaLiterasi::TIPE_WARNA via bg-{{ $karya->badge_warna }} */
.badge-tipe {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
}

/* ===== BADGE STATUS ===== */
.badge-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
}

/* ===== FORM SUBMIT ===== */
.literasi-form-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.literasi-form-section {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.literasi-form-section h6 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.literasi-form-section h6 .badge {
    font-size: 0.65rem;
}

/* Upload preview */
.upload-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 2px dashed #cbd5e1;
    padding: 4px;
}

/* Tombol gradient (konsisten dgn landingpage) */
.btn-gradient-ltr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}
.btn-gradient-ltr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ===== FILTER BAR ===== */
.literasi-filter-bar {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.literasi-filter-bar .form-select,
.literasi-filter-bar .form-control {
    border-radius: 0.75rem;
}

/* ===== STAR REFLEKSI (di modal detail) ===== */
.star-reflection {
    background: #f8fafc;
    border-left: 4px solid #667eea;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.star-reflection .star-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 0.25rem;
}
.star-reflection .star-text {
    color: #334155;
    font-size: 0.92rem;
    white-space: pre-line;
}

/* ===== EMPTY STATE ===== */
.literasi-empty {
    border: 2px dashed #cbd5e1;
    border-radius: 1.25rem;
    padding: 3rem 1.5rem;
    text-align: center;
    background: #f8fafc;
}
.literasi-empty i {
    font-size: 3.5rem;
    color: #cbd5e1;
}

/* ============================================================
   DETAIL LITERASI
   Halaman detail menyatu dengan pola detail-buku:
   kartu putih rounded-4 shadow-sm + background gradasi biru
   (sama persis dgn .book-detail di detail-buku.css).
   ============================================================ */

/* Section dengan gradasi biru tua -> putih (konsisten dgn detail-buku) */
.literasi-detail {
    padding: 160px 0 100px;
    min-height: 100vh;

    background: linear-gradient(
        180deg,
        #1e3a8a 0%,
        #2563eb 15%,
        #60a5fa 25%,
        #f8fafc 50%,
        #ffffff 100%
    );
}

/* Refleksi STAR di halaman detail */
.literasi-detail .star-reflection {
    background: #f8fafc;
    border-left: 4px solid #667eea;
}

/* ============================================================
   KONTEN ARTIKEL (HTML dari CKEditor)
   Styling tag formatting agar tampil rapi seperti blog
   ============================================================ */
.literasi-article-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}
.literasi-article-content > *:first-child { margin-top: 0; }
.literasi-article-content > *:last-child { margin-bottom: 0; }
.literasi-article-content p { margin-bottom: 1.1rem; }
.literasi-article-content h1,
.literasi-article-content h2,
.literasi-article-content h3,
.literasi-article-content h4 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}
.literasi-article-content h1 { font-size: 1.7rem; }
.literasi-article-content h2 { font-size: 1.45rem; }
.literasi-article-content h3 { font-size: 1.25rem; }
.literasi-article-content h4 { font-size: 1.1rem; }
.literasi-article-content ul,
.literasi-article-content ol {
    margin-bottom: 1.1rem;
    padding-left: 1.6rem;
}
.literasi-article-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.literasi-article-content ol li { list-style: decimal; margin-bottom: 0.4rem; }
.literasi-article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.literasi-article-content a:hover { color: #1d4ed8; }
.literasi-article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}
.literasi-article-content blockquote p { margin-bottom: 0; }
.literasi-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.25rem 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.literasi-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.literasi-article-content table th,
.literasi-article-content table td {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.85rem;
    text-align: left;
}
.literasi-article-content table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
}
.literasi-article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.literasi-article-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.9em;
    color: #be185d;
}
.literasi-article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.literasi-article-content hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}
