/* --- Variabel Warna CSS untuk kemudahan edit --- */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #151520;
    --primary-gold: #ffd700;
    --primary-gold-hover: #e6c200;
    --text-light: #ffffff;
    --text-muted: #a0a0b0;
    --accent-red: #ff3333;
}

/* --- Pengaturan Dasar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #050508;
    display: flex;
    justify-content: space-between;
    padding: 5px 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-gold);
}

/* --- Header & Navbar --- */
header {
    background: linear-gradient(180deg, #12121a 0%, var(--bg-dark) 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-gold);
}

/* Auth Buttons */
.auth-buttons button {
    padding: 10px 25px;
    margin-left: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold) !important;
}

.btn-login:hover {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
}

.btn-register {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-register:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-gold);
    cursor: pointer;
}

/* --- Marquee (Running Text) --- */
.marquee-container {
    display: flex;
    background-color: #1a1a24;
    border-bottom: 1px solid #333;
    padding: 5px 0;
    align-items: center;
}

.marquee-title {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    padding: 5px 15px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
}

.marquee-text {
    color: var(--text-light);
    font-size: 14px;
    padding-left: 10px;
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at center, #252538 0%, var(--bg-dark) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--primary-gold);
}

.jackpot-container {
    margin-top: 30px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-gold);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.jackpot-container h2 {
    font-size: 3rem;
    color: var(--primary-gold);
    letter-spacing: 2px;
}

/* --- Kategori --- */
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px 10px;
}

.cat-btn {
    background-color: var(--bg-card);
    border: 1px solid #333;
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.cat-btn:hover, .cat-btn.active {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
}

/* --- Grid Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 5%;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #2a2a35;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.3);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.badge.hot { background-color: var(--accent-red); color: white; }
.badge.new { background-color: #00cc66; color: white; }

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.btn-play {
    background: linear-gradient(90deg, var(--primary-gold) 0%, #ffaa00 100%);
    color: var(--bg-dark);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.btn-play:hover {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background-color: #050508;
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 2px solid #1a1a24;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1a1a24;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Responsive (Untuk Layar HP) --- */
@media (max-width: 768px) {
    header { padding: 15px; }
    
    .navbar {
        display: none; /* Sembunyikan menu di HP */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--primary-gold);
    }
    
    .navbar.show { display: flex; }
    .navbar a { padding: 15px; text-align: center; border-top: 1px solid #1a1a24; margin: 0;}
    .menu-toggle { display: block; }
    .auth-buttons { display: none; } /* Sembunyikan tombol auth di header HP, bisa dipindah ke menu */
    
    .hero h1 { font-size: 2.5rem; }
    .jackpot-container h2 { font-size: 2rem; }
}

/* --- Live RTP Bar --- */
.rtp-container {
    background-color: #1a1a24;
    border: 1px solid #333;
    border-radius: 10px;
    height: 24px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.rtp-bar {
    height: 100%;
    width: 0%; /* Akan diatur oleh JS */
    background: linear-gradient(90deg, #00cc66, #00ff88);
    transition: width 1s ease-in-out, background 0.5s ease;
}

.rtp-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 24px;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 2;
}

/* --- Notifikasi Popup (Jepe & Wede) --- */
.notif-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; /* Agar tidak mengganggu klik user */
}

.notif-toast {
    background: rgba(21, 21, 32, 0.95);
    backdrop-filter: blur(5px);
    border-left: 4px solid var(--primary-gold); /* Default Emas untuk JP */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInLeft 0.5s forwards, fadeOut 0.5s 4.5s forwards;
}

.notif-toast.wede {
    border-left-color: #00cc66; /* Hijau untuk WD */
}

.notif-icon {
    font-size: 24px;
}

.notif-content b {
    color: var(--primary-gold);
}

.notif-toast.wede .notif-content b {
    color: #00cc66;
}

/* Animasi Pop-up */
@keyframes slideInLeft {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsif Notifikasi di HP (Pindah ke Atas) */
@media (max-width: 768px) {
    .notif-container {
        bottom: auto;
        top: 80px;
        left: 10px;
        right: 10px;
    }
    .notif-toast {
        min-width: unset;
        width: 100%;
        animation: slideInDown 0.5s forwards, fadeOut 0.5s 4.5s forwards;
    }
    @keyframes slideInDown {
        from { transform: translateY(-100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}
/* --- Artikel / About Section --- */
.about-section {
    padding: 60px 5%;
    background-color: var(--bg-dark);
    border-top: 1px solid #1a1a24;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #151520 0%, #0a0a0f 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05); /* Efek zoom tipis saat kursor diarahkan */
}

/* Efek garis neon di sekitar gambar */
.about-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    pointer-events: none;
    opacity: 0.5;
}

.about-content {
    flex: 1.2;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-content h2 span {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-content h3 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.4;
    background: rgba(26, 26, 36, 0.5);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
    transition: transform 0.3s ease;
}

.benefit-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 215, 0, 0.1);
}

.benefit-list li i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-top: 2px;
}

.benefit-list li strong {
    color: var(--primary-gold);
}

/* Responsif untuk layar HP */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column; /* Gambar pindah ke atas teks */
        padding: 25px;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .about-content p {
        text-align: center;
    }
    
    .about-content h3 {
        justify-content: center;
    }
}