/* style.css - PINOY365 ULTRA OPTIMIZED 2026 
   Focus: Performance 90+, Mobile First, SEO Visibility
*/

:root {
    --gold: #FFD700;
    --gold-light: #FFFACD;
    --gold-dark: #B8860B;
    --bg-dark: #0a0a0a;
    --accent-red: #ff0000;
}

/* 1. OPTIMASI PERFORMANCE: Gunakan system font sebagai fallback agar tidak render-blocking */
body {
    background-color: var(--bg-dark);
    background: radial-gradient(circle at center, #2d0101 0%, #000000 100%);
    color: #ffffff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 2. SEO & ACCESSIBILITY: Pastikan kontras teks tinggi agar mudah dibaca Google Crawler */
p {
    color: #d1d1d1;
    font-size: 1rem;
}

strong {
    color: var(--gold);
    font-weight: 700;
}

/* 3. SHINE EFFECT (Optimized: No heavy JS) */
.gold-text {
    background: linear-gradient(to right, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 900;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

@keyframes shine { to { background-position: 200% center; } }

/* 4. TOMBOL STRATEGIS (Conversion Rate Optimization) */
.glow-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.glow-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* 5. ARTIKEL SEO STYLING (Menjaga kebersihan teks panjang) */
article h2, article h3 {
    margin-top: 2rem;
    line-height: 1.2;
}

article p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* 6. IMAGE OPTIMIZATION (Prevent Layout Shift) */
img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto; /* Membantu performa scroll */
}

/* 7. GAMES GRID (Mobile-First 3 Column) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.game-item-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 6px;
    transition: border-color 0.3s ease;
}

.game-item-v2:hover {
    border-color: var(--gold);
}

.game-item-v2 img {
    border-radius: 8px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* 8. MARQUEE & JACKPOT (Ringan & Cepat) */
.animate-marquee {
    will-change: transform; /* Memberitahu browser untuk optimasi hardware */
}

#jackpot {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: -2px;
}

/* 9. FOOTER LEGAL LINKS */
footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* 10. ANIMASI TERKONTROL (Agar tidak membebani CPU Mobile) */
.float-anim {
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Tambahan: Sembunyikan elemen dekoratif di mobile untuk kecepatan */
@media (max-width: 480px) {
    .hide-on-mobile { display: none; }
    h2 { font-size: 2.5rem !important; }
}