﻿/* ═══════════════════════════════════════════════════════════════════════════
   KomikKu — style.css
   Semua nama class menggunakan Bahasa Indonesia.
   Urutan: Font → Token → Reset → Header → Nav → Search → Skeleton →
           Error → Modal → Hero → Grid → Detail → Reader → Footer →
           Responsif → Animasi
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── [1] DEKLARASI FONT ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/font/MaterialIcons-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/font/GoogleSans-VariableFont_GRAD,opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/font/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf') format('truetype');
}


/* ─── [3] TOKEN DESAIN ───────────────────────────────────────────────────── */
:root {
    /* Warna */
    --bg-kartu: #ffffff;
    --border-kartu: 1px solid #f0f0f0;
    --bayangan-kartu: 0 4px 20px rgba(0, 0, 0, 0.06);
    --aksen: #111111;
    --aksen-hover: #000000;
    --teks-aksen: #ffffff;
    --teks: #1f2937;
    --teks-redup: #6b7280;
    --teks-lembut: #9ca3af;
    --bg: #ffffff;
    --bg-lembut: #f9fafb;
    --warna-border: #e5e7eb;
    --bg-footer: #f9fafb;

    /* Tata letak */
    --radius: 14px;
    --radius-kecil: 8px;
    --radius-pil: 50px;
    --tinggi-header: 64px;
    --lebar-maks: 1200px;

    /* Animasi */
    --transisi: 0.25s ease;
    --transisi-lambat: 0.4s ease;

    /* Fokus aksesibilitas */
    --ring-fokus: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

/* Mode gelap */
[data-theme="dark"] {
    --bg-kartu: #1e1e1e;
    --border-kartu: 1px solid #2e2e2e;
    --bayangan-kartu: 0 4px 20px rgba(0, 0, 0, 0.3);
    --aksen: #ffffff;
    --aksen-hover: #e2e8f0;
    --teks-aksen: #0f172a;
    --teks: #f1f5f9;
    --teks-redup: #94a3b8;
    --teks-lembut: #64748b;
    --bg: #141414;
    --bg-lembut: #1e1e1e;
    --warna-border: #2e2e2e;
    --bg-footer: #141414;
}


/* ─── [4] RESET & DASAR ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--teks);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background var(--transisi), color var(--transisi);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring-fokus);
    border-radius: var(--radius-kecil);
}


/* ─── [23] ANIMASI ───────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}