/* =========================================
   STYLE.CSS - AMBONPOOLS OFFICIAL WEB
   (VERSI BOLA BILIAR SUPER REALISTIS)
   ========================================= */

/* Import Font dari Google Fonts (Exo 2 agar terlihat modern dan tegas) */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;900&display=swap');

body {
    font-family: 'Exo 2', sans-serif;
    background-color: #30300e;
}

/* =========================================
   EFEK BOLA BILIAR 3D REALISTIS
   ========================================= */

.billiard-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Agar tidak terpotong di layar HP yang kecil */
    gap: 8px;        /* Jarak antar bola */
    margin: 10px 0;
}

.billiard-ball {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    /* Bayangan jatuh ke bawah & bayangan gelap di dalam bola (sisi kanan bawah) */
    box-shadow: 
        2px 5px 6px rgba(0, 0, 0, 0.4), 
        inset -5px -5px 15px rgba(0, 0, 0, 0.7);
        
    transition: transform 0.3s ease;
}

/* Pantulan Cahaya (Glare) Khas Bola Resin/Kaca */
.billiard-ball::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 45%;
    height: 35%;
    border-radius: 50%;
    /* Gradasi putih transparan menyilang di kiri atas */
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-45deg);
    z-index: 3; /* Pastikan cahaya ada di atas lingkaran angka */
    pointer-events: none; /* Agar tidak mengganggu jika diklik */
}

/* Lingkaran Putih di Tengah Bola (Tempat Angka) */
.billiard-ball .inner-circle {
    position: relative;
    z-index: 2; /* Berada di bawah pantulan cahaya */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    background-color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 16px;
    color: #111111;
    font-family: monospace; /* Angka lebih rapi */
    
    /* Bayangan tipis ke dalam agar lingkaran putih seperti tertanam */
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.6);
}

/* Efek saat bola disorot mouse */
.billiard-ball:hover {
    transform: translateY(-4px) scale(1.05);
}

/* =========================================
   WARNA BOLA UNTUK MASING-MASING PRIZE
   ========================================= */

/* 1st PRIZE & PAST RESULT - Merah Realistis (Seperti bola nomor 3) */
.ball-p1, .ball-past { 
    background: radial-gradient(circle at 35% 35%, #ff4d4d 0%, #cc0000 50%, #4d0000 100%); 
}

/* 2nd PRIZE - Kuning Realistis (Seperti bola nomor 1) */
.ball-p2 { 
    background: radial-gradient(circle at 35% 35%, #ffee66 0%, #ffcc00 50%, #997a00 100%); 
}

/* 3rd PRIZE - Hijau Realistis (Seperti bola nomor 6) */
.ball-p3 { 
    background: radial-gradient(circle at 35% 35%, #66ff66 0%, #00b300 50%, #004d00 100%); 
}

/* =========================================
   UKURAN BOLA UNTUK TABEL PAST RESULT
   ========================================= */
   
/* Bola di tabel dibuat lebih kecil agar muat */
.ball-past { 
    width: 35px; 
    height: 35px; 
}

/* Ukuran pantulan cahaya disesuaikan untuk bola yang lebih kecil */
.ball-past::before {
    top: 6%;
    left: 12%;
    width: 50%;
    height: 40%;
}

.ball-past .inner-circle { 
    width: 18px; 
    height: 18px; 
    font-size: 12px; 
}

/* =========================================
   PENYESUAIAN TAMBAHAN (UI/UX)
   ========================================= */

/* Pastikan teks di tabel rata tengah secara vertikal */
.table td, .table th {
    vertical-align: middle !important;
}

/* Efek Hover pada baris tabel */
.table-hover tbody tr:hover {
    background-color: #fff3cd !important; /* Warna kuning muda saat disorot */
    transition: background-color 0.3s;
}

/* Penyesuaian khusus layar kecil (HP) */
@media (max-width: 768px) {
    .billiard-ball {
        width: 40px;
        height: 40px;
    }
    .billiard-ball .inner-circle {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
    .ball-past {
        width: 28px;
        height: 28px;
    }
    .ball-past .inner-circle {
        width: 15px;
        height: 15px;
        font-size: 10px;
    }
    .billiard-wrapper {
        gap: 5px; /* Jarak antar bola dipersempit di HP */
    }
}