/* ══════════════════════════════════════════
   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; }
}

