/* 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, #490609 0%, #7a201f 49%, #490609 100%);
    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 */
}

.progress-bar.medium {
    background-color: #FFC107; /* Kuning */
}

.progress-bar.high {
    background-color: #28A745; /* Hijau */
}

/* ✅ 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: #310909;
    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;
    }
}

/* ✅ Tampilan Running Text & Jam yang Lebih Elegan */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #222, #000); /* Gradasi warna lebih elegan */
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-top: 3px solid #007BFF;
    border-bottom: 3px solid #007BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 1200px;
    margin: 10px auto; /* Pusatkan posisi */
    color: white;
}

/* ✅ Running Text */
.running-text-container {
    flex: 1;
    overflow: hidden;
}

.running-text {
    color: #FFD700; /* Warna emas */
    font-weight: bold;
    font-size: 18px;
}

/* ✅ Jam Real-Time */
.time-container {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
}

.clock-icon {
    font-size: 20px;
    color: #FFD700;
}

.current-time {
    font-size: 18px;
    font-weight: bold;
    color: #FFF;
}

/* ✅ Efek Glow pada Running Text */
@keyframes glow {
    0% { text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700; }
    50% { text-shadow: 0 0 15px #FF4500, 0 0 20px #FF4500; }
    100% { text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700; }
}

.running-text {
    animation: glow 2s infinite alternate;
}

/* ✅ Progress Bar untuk 20 Game Teratas */
.top-games-progress {
    width: 100%;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #d3d3d3; /* Warna background lebih soft */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* ✅ Animasi Smooth Progress Bar */
.top-games-progress-bar {
    height: 100%;
    font-weight: bold;
    text-align: center;
    transition: width 1.5s ease-in-out; /* Efek lebih smooth */
    line-height: 12px;
    position: relative;
}

/* ✅ Warna Progress Bar Berdasarkan RTP untuk 20 Game Teratas */
.top-games-progress-bar.low {
    background: linear-gradient(90deg, #FF6B6B, #FF1A1A); /* Merah untuk RTP 0 - 40% */
}

.top-games-progress-bar.medium {
    background: linear-gradient(90deg, #FFD54F, #FFA000); /* Kuning untuk RTP 41 - 70% */
}

.top-games-progress-bar.high {
    background: linear-gradient(90deg, #66BB6A, #388E3C); /* Hijau untuk RTP 71 - 100% */
}

/* ✅ Teks di Tengah Progress Bar */
.top-games-progress-bar span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: white;
    font-weight: bold;
}
/* ✅ Style untuk Tombol "Game Lainnya" */
/* ✅ Style untuk Tombol "Game Lainnya" */
.more-games-container {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.more-games-btn {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    width: 1200px; /* Sama dengan info bar */
    max-width: 100%;
}

.more-games-btn:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
}
#show-all-games {
    display: block;
    width: 100%;
    max-width: 750px; /* Menyesuaikan dengan top-info */
    margin: 20px auto;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500); /* Gradient warna emas */
    color: #000;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Efek hover */
#show-all-games:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500); /* Warna lebih mencolok */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.02); /* Sedikit membesar saat hover */
}

/* Efek klik */
#show-all-games:active {
    transform: scale(0.98); /* Sedikit mengecil saat diklik */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
}

/* Efek garis animasi di dalam tombol */
#show-all-games::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
}

#show-all-games:hover::before {
    left: 100%;
}
/* ✅ Perbaiki Tombol "Main Sekarang" */
.play-btn {
    display: block;
    width: 100%;
    padding: 6px 8px; /* Ukuran lebih proporsional */
    background: #007BFF;
    color: white;
    text-transform: uppercase;
    font-size: 12px; /* Font lebih kecil */
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 6px;
    text-decoration: none; /* ✅ Menghilangkan garis bawah */
}

/* ✅ Hover Efek */
.play-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    text-decoration: none; /* ✅ Pastikan tetap tidak ada garis bawah */
}

/* ✅ Efek Klik */
.play-btn:active {
    transform: scale(0.98);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* ✅ Responsiveness */
@media (max-width: 768px) {
    .play-btn {
        font-size: 10px;
        padding: 5px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .play-btn {
        font-size: 10px;
        padding: 4px;
        margin-top: 3px;
    }
}
