/* SYSTEM DESIGN: TOLE MODERN ECOSYSTEM
    Deskripsi: CSS Master untuk semua halaman dengan dukungan Multi-Tema & Animasi
*/

/* --- 1. PONDASI & VARIABEL TEMA --- */
:root {
    /* Default: Light Theme */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #059669;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.06);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme='dark'] {
    --primary: #3b82f6;
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-nav: rgba(15, 23, 42, 0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient Theme (Modern Purple) */
[data-theme='gradient'] {
    --primary: #8b5cf6;
    --bg-body: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bg-card: rgba(255, 255, 255, 0.2);
    --bg-nav: rgba(255, 255, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --border: rgba(255, 255, 255, 0.3);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Blue Deep Theme */
[data-theme='blue'] {
    --primary: #38bdf8;
    --bg-body: #1e3a8a;
    --bg-card: #1e40af;
    --bg-nav: rgba(30, 64, 175, 0.8);
    --text-main: #ffffff;
    --text-muted: #bfdbfe;
    --border: rgba(255, 255, 255, 0.1);
}

/* Red Velvet Theme */
[data-theme='red'] {
    --primary: #fbbf24;
    --bg-body: #7f1d1d;
    --bg-card: #991b1b;
    --bg-nav: rgba(153, 27, 27, 0.8);
    --text-main: #ffffff;
    --text-muted: #fecaca;
    --border: rgba(255, 255, 255, 0.1);
}

/* --- 2. GLOBAL RESET & STYLES --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- 3. THEME SWITCHER UI (PENYESUAIAN PENTING) --- */
.theme-switcher { position: relative; display: flex; align-items: center; }

.theme-trigger {
    background: var(--primary);
    color: white;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-menu {
    position: absolute;
    top: 55px; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 15px;
    display: none; /* Muncul via JS class .show */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.theme-menu.show { display: grid; animation: fadeInUp 0.3s ease; }

.theme-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.light { background: #ffffff; }
.theme-dot.dark { background: #0f172a; }
.theme-dot.gradient { background: linear-gradient(135deg, #6366f1, #a855f7); }
.theme-dot.blue { background: #1e40af; }
.theme-dot.red { background: #991b1b; }

/* --- 4. REUSABLE COMPONENTS --- */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    cursor: pointer; transition: var(--transition); border: none;
    gap: 10px; font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

/* --- 5. FOOTER STYLES --- */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 6. RESPONSIVE --- */
@media (max-width: 992px) {
    .footer__container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer__container { grid-template-columns: 1fr; text-align: center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}