/* ==========================================================================
   e-Dent Parent - gaya "buku cerita"
   Dipakai di Login, Daftar, Beranda, dan halaman Materi (gaya klasik),
   agar senada dengan mockup di folder revisi/design.

   Isi:
   1. Font (dimuat dari server sendiri, bukan Google Fonts, supaya cepat)
   2. Variabel
   3. Dasar & latar
   4. Tombol
   5. Kartu, lencana & judul
   6. Formulir
   7. Lain-lain
   ========================================================================== */


/* 1. Font ------------------------------------------------------------------
   Berkas woff2 bervariabel (satu berkas = semua ketebalan), subset latin.
   Di-preload lewat partials/preload-fonts-story.blade.php.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Baloo 2';
    font-weight: 500 800;
    font-style: normal;
    font-display: block;
    src: url('../fonts/baloo-2.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-weight: 400 800;
    font-style: normal;
    font-display: block;
    src: url('../fonts/nunito.woff2') format('woff2');
}


/* 2. Variabel ---------------------------------------------------------------- */
:root {
    --story-font-judul: 'Baloo 2', cursive;
    --story-font-isi: 'Nunito', sans-serif;

    --story-biru: #2f6fa8;
    --story-merah: #c23a63;
    --story-teal: #178a8a;
    --story-teal-muda: #eef8f8;
    --story-teal-garis: #bfe8e8;

    --story-bayangan-tombol: 0 6px 0 rgba(0, 0, 0, 0.15);
}


/* 3. Dasar & latar ----------------------------------------------------------- */
.story-scope {
    font-family: var(--story-font-isi);
}

.story-scope h1,
.story-scope h2,
.story-scope h3,
.story-scope .story-font {
    font-family: var(--story-font-judul);
}

.storybook-bg {
    min-height: 100vh;
    background-color: #6fd6d6;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.16) 0,
        rgba(255, 255, 255, 0.16) 40px,
        transparent 40px,
        transparent 90px
    );
}


/* 4. Tombol ------------------------------------------------------------------ */

/* Tombol "Kembali" bulat dengan lingkaran panah */
.story-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.6rem 0.7rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: var(--story-biru);
    color: #fff;
    font-family: var(--story-font-judul);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--story-bayangan-tombol);
}

.story-back-btn .story-back-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--story-biru);
    font-size: 0.85rem;
}

/* Tombol utama selebar penuh (Login / Daftar); ditekan sedikit saat di-hover */
.story-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.05rem;
    border: none;
    border-radius: 1.1rem;
    background: var(--story-biru);
    color: #fff;
    font-family: var(--story-font-judul);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--story-bayangan-tombol);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.story-pill-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

/* Tombol "Dengarkan" */
.story-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.3rem;
    border: 2px solid var(--story-teal-garis);
    border-radius: 999px;
    background: var(--story-teal-muda);
    color: var(--story-teal);
    font-family: var(--story-font-judul);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.story-audio-btn:hover,
.story-audio-btn.story-audio-playing {
    border-color: var(--story-teal);
    background: var(--story-teal);
    color: #fff;
}


/* 5. Kartu, lencana & judul -------------------------------------------------- */
.story-card {
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 20px 45px -15px rgba(2, 90, 110, 0.5);
}

.story-badge {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    background: var(--story-merah);
    color: #fff;
    font-family: var(--story-font-judul);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

/* Judul bergaya stiker: teks merah dengan garis tepi putih */
.sticker-title {
    display: inline-block;
    color: var(--story-merah);
    font-family: var(--story-font-judul);
    font-weight: 800;
    line-height: 1.25;
    text-shadow:
        -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
        -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff,
        0 6px 10px rgba(0, 0, 0, 0.25);
}

.poin-number-circle {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--story-biru);
    color: #fff;
    font-family: var(--story-font-judul);
    font-weight: 700;
}


/* 6. Formulir ---------------------------------------------------------------- */
.story-input-group {
    margin-bottom: 1.4rem;
}

.story-input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--story-biru);
    font-family: var(--story-font-judul);
    font-weight: 600;
    font-size: 0.95rem;
}

.story-input {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: 2px solid #cdeef0;
    border-radius: 1rem;
    background: #f3fdfd;
    outline: none;
    font-family: var(--story-font-isi);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.story-input:focus {
    border-color: var(--story-biru);
    background: #fff;
    box-shadow: 0 0 0 4px #e0f2fe;
}


/* 7. Lain-lain --------------------------------------------------------------- */
.story-tooth-mascot {
    filter: drop-shadow(0 10px 18px rgba(2, 90, 110, 0.35));
}
