﻿/* =============================================
   KURIKULUM STYLES - SMK TI Bali Global Badung
   Shared CSS for all Kurikulum pages
   ============================================= */

/* Catatan anak SMK: CSS ini khusus biar halaman kurikulum nggak kaku kayak tugas Word default. */

/* ===== Hero Color Variants (Hook into profil-modern.css) ===== */
.hero-kurikulum--jadwal {
    --hero-profil-a: rgba(59, 130, 246, 0.92);
    --hero-profil-b: rgba(139, 92, 246, 0.88);
}

.hero-kurikulum--mapel {
    --hero-profil-a: rgba(16, 185, 129, 0.92);
    --hero-profil-b: rgba(6, 182, 212, 0.88);
}

/* Light mode overrides for kurikulum hero */
[data-theme="light"] .hero-kurikulum--jadwal {
    --hero-profil-a: rgba(37, 99, 235, 0.95);
    --hero-profil-b: rgba(124, 58, 237, 0.92);
}

[data-theme="light"] .hero-kurikulum--mapel {
    --hero-profil-a: rgba(5, 150, 105, 0.95);
    --hero-profil-b: rgba(8, 145, 178, 0.92);
}

/* Skip link: aksesibilitas, munculnya cuma kalau dipakai (keyboard) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

/* Hero Banner */
.kurikulum-hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 300px;
}

.kurikulum-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kurikulum-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Overlay variants */
.kurikulum-hero-overlay.jadwal {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
}

.kurikulum-hero-overlay.mapel {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(6, 182, 212, 0.9));
}

.kurikulum-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.kurikulum-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.kurikulum-hero-overlay h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.kurikulum-hero-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* =============================
   Section Helpers (biar rapi)
   ============================= */

/* Ini buat judul section biar seragam, gak beda-beda kayak jam pulang kelas */
.kurikulum-section {
    margin-bottom: 2.25rem;
}

.kurikulum-section-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kurikulum-section-title i {
    color: var(--primary);
}

.content-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
    opacity: 0.9;
}

/* =============================
   Kurikulum Overview (index)
   ============================= */

/* Akses cepat: tombol kecil yang rapi (biar user gak muter-muter) */
.kurikulum-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kurikulum-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.kurikulum-pill:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.45);
}

/* Kartu menu kurikulum */
.kurikulum-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.overview-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--text-primary);
}

.overview-title {
    color: var(--text-primary);
    font-weight: 900;
    margin-top: 0.6rem;
    letter-spacing: 0.2px;
}

.overview-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* =============================
   Jadwal Preview (gambar jadwal)
   ============================= */

/* Biar preview jadwal tampil kayak kartu, bukan nempel doang */
.jadwal-preview {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.jadwal-preview:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.jadwal-preview-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.jadwal-preview-media img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.jadwal-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jadwal-preview-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.jadwal-preview-subtitle {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================
   Download Cards
   ============================= */

/* Grid kartu download, biar link-nya jadi tombol keren */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* Kalau cuma satu item, jangan dipaksa 3 kolom wkwk */
.download-grid.one {
    grid-template-columns: minmax(0, 1fr);
}

.download-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.download-card.is-disabled {
    opacity: 0.85;
}

.download-card.is-disabled:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.download-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.download-title {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.download-desc {
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.6;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.16);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.28);
    white-space: nowrap;
}

/* Reuse btn-download yang udah ada, tapi kita kasih mode tombol penuh */
.btn-download {
    width: 100%;
    justify-content: center;
}

button.btn-download[disabled] {
    cursor: not-allowed;
    opacity: 0.75;
}

/* =============================
   Info Banner
   ============================= */

/* Ini banner info, buat jelasin hal penting tanpa bikin panik */
.info-banner {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(124, 58, 237, 0.14));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.info-banner-title {
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.info-banner-text {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* =============================
   Mapel Accordion
   ============================= */

/* Accordion biar daftar mapel nggak jadi tembok teks */
.mapel-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mapel-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.mapel-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    user-select: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.10));
}

/* Hilangin marker default details/summary */
.mapel-summary::-webkit-details-marker {
    display: none;
}

.mapel-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.mapel-summary-hint {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.95;
}

.mapel-content {
    padding: 1.25rem;
}

.mapel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mapel-list li {
    position: relative;
    padding: 0.8rem 0.9rem 0.8rem 2.4rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    line-height: 1.6;
}

.mapel-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    color: var(--success);
}

/* Deskripsi (penjelasan singkat) */
.kurikulum-description {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.kurikulum-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Tabel jadwal (biar rapi dan gampang dibaca) */
.schedule-section {
    margin-bottom: 3rem;
}

.schedule-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.schedule-section h3 i {
    color: var(--primary);
}

.schedule-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.schedule-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.schedule-tab:hover,
.schedule-tab.active {
    background: var(--primary);
    color: #fff;
}

.schedule-table-container {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.schedule-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.schedule-table th:first-child {
    border-radius: 10px 0 0 0;
}

.schedule-table th:last-child {
    border-radius: 0 10px 0 0;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

.schedule-table td {
    color: var(--text-secondary);
}

.schedule-time {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.schedule-subject {
    font-weight: 500;
    color: var(--text-primary);
}

.schedule-teacher {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.schedule-break {
    background: rgba(245, 158, 11, 0.1) !important;
    text-align: center;
    font-style: italic;
    color: var(--warning) !important;
}

/* Card mata pelajaran */
.subject-section {
    margin-bottom: 3rem;
}

.subject-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subject-section h3 i {
    color: var(--primary);
}

.subject-category {
    margin-bottom: 2rem;
}

.subject-category h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.subject-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.subject-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subject-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.subject-icon.normatif {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.subject-icon.adaptif {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.subject-icon.produktif {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.subject-icon.mulok {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.subject-card h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.subject-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.subject-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.subject-hours i {
    color: var(--primary);
}

/* Tab mapel per jurusan */
.jurusan-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.jurusan-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jurusan-tab i {
    font-size: 1rem;
}

.jurusan-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.jurusan-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.jurusan-tab.active.tkj {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.jurusan-tab.active.pplg {
    background: linear-gradient(135deg, #10b981, #059669);
}

.jurusan-tab.active.dkv {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.jurusan-tab.active.bd {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.jurusan-content {
    display: none;
}

.jurusan-content.active {
    display: block;
}

/* Info kurikulum */
.curriculum-info {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.curriculum-info h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.curriculum-info h4 i {
    color: var(--primary);
}

.curriculum-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curriculum-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.curriculum-list li:last-child {
    border-bottom: none;
}

.curriculum-list li i {
    color: var(--success);
    margin-top: 4px;
}

/* Download Button */
.download-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.download-section h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.download-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CTA */
.kurikulum-cta {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.kurikulum-cta h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.kurikulum-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.kurikulum-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kurikulum-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Responsif (biar tampilan aman di HP) */
@media (max-width: 768px) {
    .kurikulum-hero-banner {
        height: 250px;
    }

    .kurikulum-hero-overlay h2 {
        font-size: 1.8rem;
    }

    .kurikulum-icon {
        width: 60px;
        height: 60px;
    }

    .kurikulum-icon i {
        font-size: 1.8rem;
    }

    .schedule-tabs,
    .jurusan-tabs {
        gap: 0.25rem;
    }

    .schedule-tab,
    .jurusan-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .jadwal-preview {
        grid-template-columns: 1fr;
    }

    .jadwal-preview-media img {
        height: 180px;
    }

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

    .kurikulum-overview-grid {
        grid-template-columns: 1fr;
    }

    .mapel-list {
        grid-template-columns: 1fr;
    }
}

/* Mode terang (light mode) */
[data-theme="light"] .kurikulum-description {
    background: #f8fafc;
}

[data-theme="light"] .schedule-table-container {
    background: #f8fafc;
}

[data-theme="light"] .schedule-tab {
    background: #f1f5f9;
}

[data-theme="light"] .subject-card {
    background: #f8fafc;
}

[data-theme="light"] .subject-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .jurusan-tab {
    background: #f1f5f9;
}

[data-theme="light"] .curriculum-info {
    background: #f8fafc;
}

[data-theme="light"] .kurikulum-cta {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

/* Light mode touch-up buat komponen baru */
[data-theme="light"] .jadwal-preview,
[data-theme="light"] .download-card,
[data-theme="light"] .mapel-block,
[data-theme="light"] .overview-card {
    background: #ffffff;
}

[data-theme="light"] .kurikulum-pill {
    background: rgba(8, 145, 178, 0.10);
    border-color: rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .jadwal-preview:hover,
[data-theme="light"] .download-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mapel-summary {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(124, 58, 237, 0.10));
}

[data-theme="light"] .mapel-list li {
    background: rgba(0, 0, 0, 0.02);
}