/* ══════════════════════════════════════════
   style.css — Global Stylesheet
   Play N Chill Madiun
   ══════════════════════════════════════════ */

/* ────────────────────────
   VARIABLE & RESET
──────────────────────── */
:root {
    --purple:       #734FFF;
    --purple-dark:  #472CA1;
    --purple-light: #A391E3;
    --yellow:       #D7E319;
    --orange:       #E65A29;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--purple-dark);
    color: #fff;
    overflow-x: hidden;
}

.teks-outline {
    /* Warna bagian dalam teks */
    color: white; 
    
    /* 2px adalah ketebalan outline, black adalah warna outlinennya */
    text-shadow: 
         2px  2px 0 #281664;
}

.font-modak {
    font-family: 'Modak', cursive;
    /* Font Modak biasanya terlihat lebih kecil, 
       jadi kamu bisa sesuaikan ukurannya di sini */
    font-size: 1.2em; 
    line-height: normal;
    display: inline-block; /* Agar teks tidak terpotong jika menggunakan stroke */
}

/* ────────────────────────
   NAVBAR (Shared)
──────────────────────── */
.navbar {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-nav .nav-link {
    font-weight: 400;
    color: #333;
    font-size: .9rem;
    padding: 6px 14px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--purple) !important;
}

.nav-btn-active {
    background: var(--purple-dark) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 22px !important;
    font-weight: 700;
    font-size: .88rem;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5d5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.nav-avatar:hover {
    border-color: var(--purple-light);
}

.nav-avatar svg {
    width: 24px;
    height: 24px;
    fill: var(--purple-dark);
}

/* ────────────────────────
   HERO & CAROUSEL (Shared)
──────────────────────── */
.hero {
    padding: 0 !important;
    background: var(--purple-dark);
}

.hero-slide-img {
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3rem, 9vw, 5.5rem);
    color: #fff;
    line-height: normal !important;
}

/* ────────────────────────
   BACKGROUND DECORATION (Shared)
──────────────────────── */
.bg-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: .9;
    pointer-events: none;
}

/* Container Daftar Game */
.game-section {
    padding: 0px 0px 5px;
    background: transparent;
    text-align: center;
}

.game-section h2 {
    font-family: 'Modak', system-ui;
    color: var(--yellow);
    font-size: 2.8rem;
    margin-bottom: 30px;
}

/* Tab Filter Game */
.game-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-game-btn {
    font-family: 'Fredoka One', cursive;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid var(--purple-light);
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-game-btn.active, .filter-game-btn:hover {
    background: var(--yellow);
    color: var(--purple-dark);
    border-color: var(--yellow);
}

/* Grid Game */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.game-card {
    background: rgba(163, 145, 227, 0.2);
    border-radius: 20px;
    padding: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(163, 145, 227, 0.4);
}

.game-card img {
    width: 100%;
    aspect-ratio: 3/4; /* Standar cover game */
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 10px;
}

.game-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 5px 0;
    color: #fff;
}

.game-badge {
    font-size: 0.7rem;
    background: var(--orange);
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ────────────────────────
   RESPONSIVE (Shared)
──────────────────────── */
@media (max-width: 480px) {
    .hero-slide-img { height: 300px; }
}

/* 3. Sinkronisasi Jarak (Gap) Antara Header (.f-head) dengan Elemen di Bawahnya */
footer .f-head {
    margin-bottom: 12px !important; /* Memastikan gap bawah setiap judul f-head bernilai sama persis */
}

footer .f-list {
    margin: 0 !important;
    padding: 0 !important;
}

/* Penyesuaian Responsivitas Khusus Layar Mobile (HP) */
@media (max-width: 767px) {
    footer {
        padding-top: 25px !important; /* Mengangkat seluruh isi konten lebih dekat ke batasan atas footer */
    }

    /* Mengunci jarak vertikal antar kolom yang menumpuk di HP agar presisi berjarak sama */
    footer .row {
        row-gap: 1.5rem !important;  /* Jarak vertikal seragam antar section di perangkat mobile */
    }
}

/* ==========================================================================
   BEST PRACTICE UI: LOGO + NAMA BRAND + TAGLINE (FOOTER)
   ========================================================================== */

/* Container Utama */
.f-brand-container {
    display: flex;
    align-items: center;    /* Mengunci seluruh elemen agar sejajar tengah secara vertikal */
    gap: 16px;              /* Jarak horizontal yang ideal antara logo dan blok teks */
    width: 100%;
}

/* Penataan Logo Bundar */
.f-logo-round {
    width: 65px;            /* Diameter logo yang sangat proporsional dengan tinggi teks 2 baris */
    height: 65px;           /* Harus sama agar bulat sempurna */
    border-radius: 50%;     /* Memotong gambar menjadi lingkaran */
    object-fit: cover;      /* Mencegah logo gepeng */
    flex-shrink: 0;         /* Mengunci ukuran logo agar tidak mengecil di layar HP */
    border: 2px solid rgba(255, 255, 255, 0.15); /* Frame halus agar logo terlihat kontras dan bersih */
}

/* Pembungkus Teks (Nama Brand + Tagline) */
.f-brand-text {
    display: flex;
    flex-direction: column; /* Menyusun Nama Brand di atas dan Tagline di bawah */
    justify-content: center;
}

/* Nama Brand "Play N Chill" */
.f-brand-title {
    font-family: 'Fredoka One', cursive; /* Font playful khas Play N Chill */
    font-size: 1.3rem;       /* Ukuran pas berdampingan dengan logo 65px */
    color: var(--yellow);    /* Menggunakan warna kuning khas web Anda */
    margin: 0 0 3px 0 !important; /* Jarak tipis ke deskripsi di bawahnya */
    line-height: 1.1;
    letter-spacing: 0.5px;
}

/* Deskripsi / Tagline */
.f-brand-text .f-tagline {
    font-size: 0.78rem;      /* Ukuran font lebih kecil agar kontras dengan nama brand */
    color: rgba(255, 255, 255, 0.7); /* Warna abu-abu terang agar nyaman dibaca dan tidak merusak fokus */
    line-height: 1.35;
    margin: 0 !important;
    max-width: 220px;        /* Membatasi lebar teks agar turun ke bawah secara estetik */
}

/* Responsivitas Layar Kecil (Mobile) */
@media (max-width: 480px) {
    .f-logo-round {
        width: 58px;         /* Sedikit mengecilkan logo di layar HP agar menghemat ruang */
        height: 58px;
    }
    .f-brand-title {
        font-size: 1.15rem;  /* Menyesuaikan ukuran judul di layar kecil */
    }
    .f-brand-text .f-tagline {
        font-size: 0.73rem;  /* Menyesuaikan ukuran deskripsi di layar kecil */
    }
}