/*
Theme Name: COKISEO Pusaka88 Edit
Version: 7.0 (PUSAKA REBUILD)
Author: COKISEO
Author URI: https://cokiseo.com
Description: High-Conversion Slot Engine Theme (Pusaka Style).
*/

:root {
    /* -- Pusaka Palette -- */
    --bg-body: #000000;
    --bg-section: #080808;
    --bg-header: #111111;
    
    --brand-gold: #ffcc00;       /* The classic 'Gacor' Gold */
    --brand-gold-gradient: linear-gradient(180deg, #ffcc00 0%, #ff9900 100%);
    --brand-purple: #8a2be2;
    --brand-red: #ff0000;
    
    --text-primary: #ffffff;
    --text-gold: #ffcc00;
    --text-muted: #888888;
    
    --border-gold: 1px solid #7a5c00;
    --border-dim: 1px solid #222;
    
    --bottom-nav-height: 60px;
}

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Roboto', 'Arial', sans-serif; /* Standard readable font */
    margin: 0;
    line-height: 1.5;
    padding-bottom: var(--bottom-nav-height); /* Space for fixed nav */
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }

/* ================= UTILITIES ================= */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.upper { text-transform: uppercase; }
.gold-text { color: var(--brand-gold); }
.hidden { display: none; }

/* ================= HEADER (Compact & Functional) ================= */
.site-header {
    background: var(--bg-header);
    border-bottom: 2px solid #333;
    position: sticky; top: 0; z-index: 999;
}

.header-main {
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px;
}

.logo-img { height: 40px; width: auto; }

/* Auth Buttons (Top Right) */
.header-auth { display: flex; gap: 8px; }

.btn-auth {
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.btn-login {
    background: #333;
    border: 1px solid #555;
    color: #fff;
}

.btn-register {
    background: var(--brand-gold-gradient);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
    animation: pulse-gold 2s infinite;
}

/* Marquee / Running Text */
.marquee-container {
    background: #000;
    border-bottom: 1px solid #222;
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}
.marquee-content { display: flex; align-items: center; gap: 10px; }
.scrolling-text { width: 100%; overflow: hidden; white-space: nowrap; }

/* ================= HERO & SLIDER ================= */
.hero-section { margin-top: 10px; margin-bottom: 20px; }
.hero-banner img { border-radius: 8px; border: var(--border-dim); }

/* ================= PROVIDER GRID (WP MENU SUPPORT) ================= */
.provider-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.provider-menu li {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    transition: 0.2s;
    overflow: hidden;
}

.provider-menu li a {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    padding: 10px;
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    height: 100%;
}

.provider-menu li:hover {
    background: #1a1a1a;
    border-color: var(--brand-gold);
    transform: translateY(-2px);
}
.provider-menu li:hover a { color: #fff; }

/* Icon Injection via CSS Classes (User adds 'pragmatic' to Menu Class) */
.provider-menu li a::before {
    content: '';
    display: block;
    width: 60px; height: 40px;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    margin-bottom: 6px;
    filter: grayscale(100%);
    transition: 0.3s;
}
.provider-menu li:hover a::before { filter: grayscale(0%); }

/* Icon Mappings - User adds class to LI */
.provider-menu li.pragmaticplay a::before { background-image: url(images/ico/pragmaticplay.png); }
.provider-menu li.pgsoft a::before { background-image: url(images/ico/pgsoft.png); }
.provider-menu li.habanero a::before { background-image: url(images/ico/habanero.png); }
.provider-menu li.spadegaming a::before { background-image: url(images/ico/spadegaming.png); }
.provider-menu li.joker a::before { background-image: url(images/ico/joker.png); }
.provider-menu li.microgaming a::before { background-image: url(images/ico/microgaming.png); }
.provider-menu li.cq9 a::before { background-image: url(images/ico/cq9gaming.png); }
.provider-menu li.top trend a::before { background-image: url(images/ico/toptrend.png); }
.provider-menu li.betsoft a::before { background-image: url(images/ico/betsoft.png); }
.provider-menu li.advantplay a::before { background-image: url(images/ico/advantplay.png); }

/* Fallback for Generic */
.provider-menu li.generic a::before { background-image: url(images/ico/generic-slot.png); }

/* Mobile Density Override */
@media (max-width: 600px) {
    .provider-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .provider-menu li a { padding: 8px 4px; font-size: 0.7rem; }
    .provider-menu li a::before { width: 40px; height: 30px; }
}

/* ================= CONTENT & FOOTER ================= */
.entry-content {
    background: #0a0a0a;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #222;
    font-size: 14px;
    color: #ccc;
    text-align: justify;
}
.entry-content h1 { font-size: 1.4rem; color: var(--brand-gold); text-align: center; }

.site-footer {
    background: #050505;
    padding: 30px 0 80px; /* Extra padding for bottom nav */
    border-top: 2px solid var(--brand-gold);
    text-align: center;
}
.bank-list img { display: inline-block; margin: 3px; border-radius: 4px; }

/* ================= MOBILE BOTTOM NAV (FIXED) ================= */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: #111;
    border-top: 2px solid var(--brand-gold);
    display: flex; align-items: center; justify-content: space-around;
    z-index: 10000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

.nav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #888;
    font-size: 10px;
    height: 100%;
}
.nav-item i { font-size: 20px; margin-bottom: 4px; }
.nav-item.active, .nav-item:hover { color: var(--brand-gold); }

/* Center Button (Login/Daftar) Highlight */
.nav-item.center-btn {
    background: var(--brand-gold-gradient);
    color: #000;
    border-radius: 50%;
    width: 60px; height: 60px;
    margin-bottom: 30px; /* Pop out effect */
    border: 4px solid #000;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}
.nav-item.center-btn i { font-size: 24px; margin: 0; }

/* Floating Buttons */
.floating-btns {
    position: fixed; bottom: 80px; right: 10px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 990;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.wa-btn { background: #25d366; }
.lc-btn { background: #337ab7; }
.float-btn img { width: 28px; height: 28px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
    /* High Density Mobile Grid */
    .provider-menu {
        grid-template-columns: repeat(3, 1fr); /* 3 cols on mobile */
        gap: 6px;
    }
    .ico-provider { width: 100%; height: 35px; }
    
    .header-main { padding: 0 8px; }
    .logo-img { height: 32px; }
    
    .btn-auth { padding: 5px 10px; font-size: 11px; }
    
    /* Hide desktop nav completely */
    .desktop-nav { display: none; }
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}
/* ================= RESPONSIVE V3 ================= */
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-inner { padding: 0 var(--sp-md); }
    .site-logo img { height: 42px; }
}

@media (max-width: 600px) {
    /* Mobile Grid Overrides */
    .provider-menu { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .provider-menu li a { padding: 8px 4px; }
    .ico-menu { height: 35px; margin-bottom: 4px; }
    
    /* Content Padding */
    .entry-content { padding: 15px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    
    /* Button adjustments */
    .btn { padding: 8px 16px; font-size: 0.75rem; }
    
    /* Payment icons smaller */
    .payment-item { width: 60px; height: 30px; }
    .payment-item img { max-height: 20px; width: auto; }
}

@media (max-width: 400px) {
    .provider-menu { grid-template-columns: repeat(2, 1fr); }
    .contact-menu span { display: none; } /* Hide text, show only icons if tight */
}