/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #2a0055, #4b0082, #2a0055);
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* ✅ Banner Homepage */
.homepage-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.homepage-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

/* ✅ Perbaikan Search Bar */
.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #007BFF;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

#search-bar:focus {
    border-color: #0056b3;
}

/* ✅ Perbaikan Tombol Provider dengan Background Hitam */
.provider-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 60px;
    border-radius: 8px;
    transition: 0.3s;
    overflow: hidden;
    background-color: black;
    border: 2px solid #222;
}

.provider-btn img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* ✅ Perbaikan Layout Game */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ✅ Pastikan kartu game memiliki ukuran yang lebih kecil */
.game-card {
    background: white;
    border-radius: 10px;
    padding: 8px;
    max-width: 140px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ✅ Gambar Game */
.game-img {
    width: 100%;
    border-radius: 10px;
}

/* ✅ Nama Game */
.game-title {
    font-size: 12px;
    font-weight: bold;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    display: block;
}

/* ✅ Progress Bar */
.progress {
    width: 100%;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e0e0e0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    position: relative;
}

/* ✅ Animasi Progress Bar */
/* ✅ Warna progress bar sesuai dengan RTP */
.progress-bar {
    height: 100%;
    font-weight: bold;
    text-align: center;
    transition: width 1s ease-in-out;
    line-height: 12px;
    position: relative;
}

.progress-bar.low {
    background-color: #FF4C4C; /* Merah untuk RTP 0 - 40% */
}

.progress-bar.medium {
    background-color: #FFC107; /* Kuning untuk RTP 41 - 70% */
}

.progress-bar.high {
    background-color: #28A745; /* Hijau untuk RTP 71 - 100% */
}

/* ✅ Teks di Dalam Progress Bar */
.rtp-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: white;
    font-weight: bold;
}

/* ✅ Tombol "Main Sekarang" */
.play-button {
    display: block;
    margin-top: 5px;
    background: #007BFF;
    color: white;
    padding: 6px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.play-button:hover {
    background: #0056b3;
}

/* ✅ Responsiveness */
@media (max-width: 768px) {
    /* ✅ Banner Homepage Responsif */
    .homepage-banner img {
        max-width: 95%;
        border-radius: 15px;
    }

    /* ✅ Grid Game di Mobile: 3 Game Per Baris */
    .games-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
        padding: 10px;
    }

    /* ✅ Game Card Lebih Kecil di Mobile */
    .game-card {
        max-width: 95px;
        padding: 5px;
    }

    .game-title {
        font-size: 10px;
    }

    .game-img {
        max-width: 85px;
    }

    /* ✅ Progress Bar Ukuran Lebih Kecil */
    .progress {
        height: 10px;
    }

    .progress-bar {
        line-height: 10px;
    }

    .rtp-text {
        font-size: 8px;
    }

    /* ✅ Tombol "Main Sekarang" */
    .play-button {
        font-size: 10px;
        padding: 5px;
    }

    /* ✅ Search Bar Responsif */
    .search-box {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 5px;
    }

    #search-bar {
        width: 90%;
        max-width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    /* ✅ Provider Buttons Responsif */
    .provider-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin-bottom: 10px;
    }

    .provider-btn {
        width: 130px;
        height: 45px;
        border-radius: 5px;
    }

    .provider-btn img {
        width: 85%;
        height: auto;
        object-fit: contain;
    }
}
/* ✅ Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to right, #1e003d, #370064, #1e003d);
    display: flex;
    align-items: center;
    justify-content: center; /* Header sejajar di tengah */
    padding: 10px 0;
    z-index: 1000;
}

/* ✅ Header Container */
.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* ✅ Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

/* ✅ Navigasi */
.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #007BFF, #0056b3);
    border-radius: 5px;
    transition: 0.3s;
}

.nav-btn:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
}

/* ✅ Tombol Daftar Lebih Menonjol */
.daftar-btn {
    background: linear-gradient(45deg, #FFC107, #FFA000);
    color: black;
}

.daftar-btn:hover {
    background: linear-gradient(45deg, #FFA000, #FF8C00);
}

/* ✅ Pastikan Konten Tidak Tertutup Header */
body {
    padding-top: 80px;
}

/* ✅ Responsiveness untuk Mobile */
@media (max-width: 768px) {
    /* ✅ Header di Mobile */
    .site-header {
        height: 50px;
        padding: 5px 10px;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .logo img {
        height: 30px;
    }

    .nav-buttons {
        gap: 5px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
