/* Import Font Poppins */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
}

/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #111214; 
    color: #ffffff;
    overflow-x: hidden;
}

/* CONTAINER - Kunci responsivitas (Agar di Layar PC tidak melebar) */
.container {
    max-width: 1200px; /* Lebar maksimal konten */
    margin: 0 auto;    /* Membuat konten selalu di tengah */
    padding: 0 20px;
    width: 100%;
}

/* NAVBAR */
.navbar {
    background-color: #1e1f22;
    border-bottom: 1px solid #2b2d31;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #00ff88; 
    letter-spacing: 1px;
}

.search-bar input {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #3a3d42;
    background-color: #2b2d31;
    color: white;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    width: 300px;
    border-color: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

/* HERO SECTION */
.hero-section {
    width: 100%;
    height: 50vh; 
    min-height: 350px;
    max-height: 500px;
    position: relative;
    background-color: #111214;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%; 
    position: relative;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 0 30px 0;
    background: linear-gradient(to top, #111214 0%, rgba(17, 18, 20, 0.8) 40%, transparent 100%);
}

.hero-overlay h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-overlay p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #e0e0e0;
    max-width: 600px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-play {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00ff88;
    color: #111214;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.btn-play:hover {
    background-color: #00cc6a;
    transform: scale(1.05);
}

/* GAME GALLERY SECTIONS */
.game-gallery {
    padding: 40px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #ffffff;
}

/* UI/UX Link Lihat Semua (Pill Button) */
.see-all {
    color: #00ff88;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 16px;
    border: 1px solid #00ff88;
    border-radius: 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.see-all:hover {
    background-color: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

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

/* KARTU GAME */
.game-card {
    text-decoration: none;
    color: white;
    background-color: #1e1f22;
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease, background-color 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.game-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.game-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #aaaaaa;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #00ff88;
    font-weight: bold;
}

.game-card:hover {
    transform: translateY(-5px);
    background-color: #2b2d31;
    border-color: #3a3d42;
}

/* MEDIA QUERIES UNTUK HP & TABLET */
@media (max-width: 768px) {
    .search-bar input {
        width: 140px;
    }
    .search-bar input:focus {
        width: 180px;
    }
    .hero-overlay h1 {
        font-size: 28px;
    }
    .grid-container {
        /* Paksa 2 kolom di HP */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .game-card {
        padding: 8px;
    }
    .game-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}