/* --- ZEBS STORE - OFFICIAL STYLESHEET --- */
:root {
    --primary-color: #8a2be2; /* Ungu khas Zebs Store */
    --secondary-color: #00d4ff; /* Biru Neon */
    --bg-dark: #0a0510;
    --card-bg: #1a1525;
    --text-white: #ffffff;
    --text-gray: #a2a2a2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.5s ease; /* Untuk animasi fade-out script.js */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER & LOGO --- */
header {
    background: linear-gradient(135deg, #150a26 0%, #0a0510 100%);
    padding: 30px 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 15px var(--primary-color);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* --- SECTION TITLE --- */
.section-title {
    font-size: 22px;
    margin: 30px 0;
    padding-left: 15px;
    border-left: 5px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- GAMES GRID SYSTEM --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.game-card.active {
    border-color: var(--secondary-color);
    transform: scale(0.95);
}

.game-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-img {
    transform: scale(1.1);
}

.game-info {
    padding: 12px;
    text-align: center;
}

.game-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-info p {
    font-size: 11px;
    color: var(--text-gray);
}

/* --- ANIMASI LOADING (FOR SCRIPT.JS) --- */
#loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- SYSTEM TOAST (NOTIFIKASI) --- */
.toast {
    position: fixed;
    bottom: -100px; /* Sembunyi di bawah */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), #4b0082);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.toast.show {
    bottom: 30px; /* Muncul ke atas */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom di HP */
        gap: 15px;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 22px;
    }
}
