﻿/* --- UNIVERSAL BOX SIZING FIX --- */
* {
    box-sizing: border-box;
}

/* --- Global Styles --- */

/* Apply the dark blue gradient background to the entire page */
body {
    background: linear-gradient(180deg, #001f3f, #000c17); /* Dark Blue Gradient */
    color: #fff; /* White text for better contrast */
    font-family: 'Inter', sans-serif;
}

/* Use a maximum width for desktop content to keep it readable */
.main-content {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 10px; 
}

/* PAGCOR text styling removed as requested */

/* --- Desktop/Default Styles (3-Column Layout) --- */

.header {
    text-align: center;
    padding: 20px 0;
}
.header-inner {
    /* Centered logo on desktop */
    display: block;
    text-align: center;
}
.logo-img {
    max-width: 100%;
    height: auto;
}

/* Hide the mobile register button by default (Desktop) */
.mobile-register-btn {
    display: none;
}

/* Three-Column Layout for Desktop */
.main {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

/* Left/Right columns for Desktop */
.left, .right {
    flex: 0 0 200px; /* Fixed width for sidebars on desktop */
    padding-top: 20px;
    max-width: 200px; /* NEW: Prevents content inside from pushing the column past its defined size */
}

.middle {
    flex: 1; /* CRITICAL: Ensures the column is maximally flexible (shorthand for flex: 1 1 0%) */
    min-width: 0; /* CRITICAL: Allows the middle column to shrink */
}

/* Side Column Images/Buttons */
.left img, .right img, .right .downgif {
    width: 100%;
    height: auto;
    margin-bottom: 15px; 
}

.right ul li {
    list-style: none;
    margin-bottom: 10px;
}

/* Swiper/Banner Styles (UPDATED for no overlap) */
.mySwiper {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    overflow: hidden; /* CRITICAL: Hides content that extends beyond its bounds */
    border-radius: 8px; /* Apply border-radius here to contain slides */
}
.swiper-slide {
    display: flex; /* Ensure slides fill available space */
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%; /* Ensure image fills the slide */
    height: auto;
    max-width: 100%; /* Make sure images are never larger than their parent */
    border-radius: 0; /* Remove individual image border-radius if container has it */
    object-fit: cover; /* NEW: Ensures images cover the area without stretching the container */
}

/* --- Jackpot Display Styling --- */
#jackpot-display {
    background: linear-gradient(90deg, #300a00 0%, #6e1700 100%); /* Dark red/gold background */
    border: 3px solid #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.jackpot-label {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 5px #ff8c00;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.jackpot-amount {
    font-family: monospace, sans-serif; /* Monospace for a clean, digital look */
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px #ffd700; /* Glowing white text */
    letter-spacing: 2px;
}
/* --- End Jackpot Display Styling --- */

/* --- Keyframes for Game Count Glow --- */
@keyframes subtle-gold-glow {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 5px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 5px rgba(255, 255, 255, 0.2);
    }
}

/* --- Game Count Text Styling (EFFECTIVELY ENHANCED) --- */
.game-count-text {
    text-align: center;
    /* Adopting Jackpot background style */
    background: linear-gradient(90deg, #300a00 0%, #6e1700 100%); 
    /* Adopting Jackpot border style */
    border: 3px solid #ffd700;
    border-radius: 10px;
    
    /* Applying the new, stronger glow animation */
    animation: subtle-gold-glow 3s infinite ease-in-out; 
    
    color: #ffd700; /* CRITICAL CHANGE: Bright gold color for text */
    font-size: 18px; 
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 3px; /* Increased letter spacing for impact */
    text-transform: uppercase;
    /* Stronger text shadow/glow */
    text-shadow: 0 0 8px #ff8c00, 0 0 15px rgba(255, 255, 255, 0.5); 
    padding: 10px;
}

/* Game List Layout (Desktop: 6 columns) */
.game-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 10px;
}

.game-list ul li a {
    display: block;
    text-align: center;
    text-decoration: none;
}
.game-list ul li img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.game-list ul li span {
    display: block;
    font-size: 14px;
    color: #fff; 
    padding: 5px 0;
}
.game-box .title {
    text-align: center;
    padding-bottom: 15px;
}
.game-box .title img {
    max-width: 80%;
    height: auto;
}


/* Footer Styles */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid #1a3a5a;
}
.footer p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-links a {
    text-decoration: none;
    color: #aaa;
    font-size: 14px;
}
.copyright {
    text-align: center;
    font-size: 12px;
    padding-bottom: 20px;
    color: #777;
}

/* ----------------------------------------------------------------- */
/* --- Mobile Styles (Applied when screen is 768px or smaller) --- */
/* ----------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    
    .main-content {
        padding: 0 5px; 
    }

    /* 1. Mobile Structure: Stack columns */
    .main {
        flex-direction: column;
        gap: 0; 
    }

    /* Hide the entire Left sidebar */
    .left {
        display: none;
    }
    
    .middle {
        order: 1; 
        padding-top: 0; 
    }
    
    .right {
        order: 2; 
        /* Reduced padding for less space between games and buttons */
        padding: 5px 0 10px 0; 
    }
    
    /* HEADER Adjustments */
    .header {
        display: flex;
        flex-direction: column; 
        padding: 10px 0 0 0; 
        order: 0;
    }

    /* Remove PAGCOR alignment styles and revert header-inner */
    .header-inner {
        display: block;
        text-align: center;
        margin-bottom: 10px; 
    }

    /* Hide PAGCOR text entirely, even if present in HTML */
    .pagcor-text {
        display: none;
    }

    .logo-img {
        max-width: 180px; 
        height: auto;
        margin: 0 auto; 
    }

    /* --- Register Button Animation (New Keyframes) --- */
    @keyframes pulse {
        0% {
            box-shadow: 0 4px 10px rgba(255, 235, 59, 0.5), 0 0 0 0 rgba(255, 255, 255, 0.7);
        }
        70% {
            box-shadow: 0 4px 10px rgba(255, 235, 59, 0.8), 0 0 0 10px rgba(255, 255, 255, 0);
        }
        100% {
            box-shadow: 0 4px 10px rgba(255, 235, 59, 0.5), 0 0 0 0 rgba(255, 255, 255, 0);
        }
    }
    
    /* 3. Professional & Convenient Register Button Styling (UPDATED) */
    .mobile-register-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px; 
        text-align: center;
    }
    .mobile-register-btn a {
        display: block;
        width: 98%; 
        margin: 0 auto;
    }
    .mobile-register-btn button {
        width: 100%;
        padding: 12px 10px; 
        font-size: 15px; 
        font-weight: 900; 
        
        /* REFINED Gradient for Professional Look */
        background: linear-gradient(180deg, #ffeb3b, #fbc02d); 
        color: #333; 
        border: 2px solid #fff; 
        border-radius: 50px; 
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        /* Applying the pulse animation */
        animation: pulse 2s infinite ease-out; 
        white-space: normal; 
        line-height: 1.2;
        transition: transform 0.1s ease-out;
    }
    .mobile-register-btn button:active {
        transform: scale(0.98); /* Add tap feedback */
    }

    /* Jackpot adjustments for mobile */
    #jackpot-display {
        margin: 0 5px 10px 5px; 
        padding: 8px 10px;
    }
    .jackpot-amount {
        font-size: 24px;
    }

    /* Game count text adjustment for mobile */
    .game-count-text {
        font-size: 14px; 
        margin: 0 5px 10px 5px; /* Added horizontal margin to match jackpot */
        padding: 8px;
    }
    
    /* 4. Game List Layout (Mobile: 3 columns) */
    .game-list ul {
        grid-template-columns: repeat(3, 1fr); 
        gap: 5px;
        margin-bottom: 5px; 
    }
    .game-list ul li span {
        font-size: 10px;
        padding: 4px 0;
    }
    .game-box .title {
        padding: 10px 0 5px 0;
    }

    /* Right Button Grid Adjustments */
    .right .downgif {
        display: none; 
    }
    .right .nav-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px;
        padding: 0;
    }
    
    /* Footer adjustments for mobile */
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
}
