:root {
    --bg-dark: #121212;
    --bg-black: #000000;
    --yellow-main: #ff9900;
    --yellow-dark: #cc7a00;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --blue-btn: #1a96f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overscroll-behavior: none;
}

body {
    background-color: var(--text-white);
    color: var(--text-white);
}

/* Placeholder Utility */
.placeholder-img {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 1px dashed #555;
    position: relative;
    overflow: hidden;
}

.placeholder-img::after {
    content: attr(data-label);
    padding: 10px;
}

/* Topbar */
.topbar {
    background-color: var(--bg-black);
    padding: 8px 20px;
    border-bottom: 1px solid #222;
}
.topbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}
.topbar-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}
.topbar-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: #fff;
    opacity: 0.5;
    vertical-align: middle;
    margin: 0 2px;
}
.icon-small {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
}

/* Header */
.header {
    background-color: #1a1a1a;
    padding: 15px 20px;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}
.auth-buttons {
    display: flex;
    gap: 10px;
}
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}
.btn-login {
    background-color: var(--blue-btn);
    color: white;
}
.btn-signup {
    background-color: var(--yellow-main);
    color: white;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    background-color: var(--bg-dark);
    position: relative;
    user-select: none;
    overflow: hidden;
}
.slider-wrapper {
    width: 100%;
    position: relative;
    cursor: grab;
    overflow: hidden;
}
.slider-wrapper:active {
    cursor: grabbing;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    pointer-events: none;
    transform: translateX(100%);
}
.slide.active {
    position: relative;
    transform: translateX(0);
    z-index: 1;
}
.slide.slide-in {
    animation: slideInRight 0.6s ease forwards;
}
.slide.slide-out {
    animation: slideOutLeft 0.6s ease forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background-color: var(--bg-black);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #555;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.dot.active {
    background-color: var(--yellow-main);
    transform: scale(1.3);
}

/* Main Nav */
.main-nav {
    background-color: var(--yellow-main);
}
.nav-list {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-list li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.nav-list li:last-child {
    border-right: none;
}
.nav-list a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}
.nav-list a.active {
    color: black;
}

/* Games Grid */
.games-section {
    padding: 40px 20px;
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.card-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: none;
    display: block;
}

/* Promo Section */
.promo-section {
    padding: 0 20px 40px;
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
}
.promo-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.promo-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
/* 2nd box - clean, no border, no shadow */
.promo-card-empty {
    background-color: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.promo-card-empty .promo-header {
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}
.promo-header {
    background-color: #f4f4f4;
    color: #333;
    padding: 10px 15px;
    font-weight: normal;
    font-size: 14px;
    border-bottom: none;
}
.promo-content-placeholder {
    height: 450px;
    background-color: #fff;
}
/* Promo Slider */
.promo-slider {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    position: relative;
    min-height: 100px;
}
.promo-slider:active {
    cursor: grabbing;
}
/* Inactive slides - completely hidden */
.promo-slide {
    width: 100%;
    display: none;
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}
/* Active slide - visible */
.promo-slide.active {
    display: block;
    position: relative;
    z-index: 1;
}
/* Animation classes (reuse from hero slider) */
.promo-slide.slide-in {
    display: block;
    animation: slideInRight 0.5s ease forwards;
}
.promo-slide.slide-out {
    display: block;
    animation: slideOutLeft 0.5s ease forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    background-color: #f9f9f9;
}
.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.promo-dot.active {
    background-color: var(--yellow-main);
    transform: scale(1.3);
}

/* Footer */
.footer {
    background-color: var(--bg-black);
    color: var(--text-gray);
    padding: 25px 20px 40px;
}
.footer-container {
    max-width: 870px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-bottom: 18px;
    border-bottom: 1px solid #fff;
}
.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.support-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
}
.support-text h4 {
    color: var(--yellow-main);
    margin-bottom: 2px;
    font-size: 14px;
}
.support-text p {
    font-size: 11px;
    margin-bottom: 2px;
    color: #999;
}
.support-text a {
    color: var(--yellow-main);
    text-decoration: none;
    font-size: 11px;
}

.footer-middle {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding: 12px 0;
    border-bottom: 1px solid #fff;
    align-items: flex-start;
}
.footer-col h4 {
    margin-bottom: 12px;
    color: #fff; /* Changed back to white as requested */
    font-weight: normal;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.resp-gaming {
    width: 120px;
}
.pay-methods {
    flex-grow: 1;
}
.logos-img {
    width: 100%;
    height: 30px;
    background: transparent;
    border: none;
    justify-content: flex-start;
    font-size: 12px;
}
.resp-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}
.resp-icon {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
/* White by default, original color on hover */
.pay-icon {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    cursor: pointer;
}
.pay-icon:hover {
    filter: none;
}

.footer-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #fff;
}
.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.phone {
    color: var(--yellow-main);
    font-size: 13px;
}
.social-icons {
    display: flex;
    gap: 8px;
}
.s-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
}
.app-links {
    display: flex;
    gap: 10px;
}
.app-btn {
    height: 40px;
    width: auto;
    object-fit: contain;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.curacao-btn {
    height: 35px;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 14px;
    font-size: 11px;
    color: #888;
}
.footer-links {
    margin-right: 5px;
}
.footer-links a {
    color: var(--yellow-main);
    text-decoration: none;
    margin-left: 8px;
    font-size: 11px;
}
.copyright {
    color: #fff;
    font-size: 11px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 10px;
    z-index: 1001;
    display: flex;
    align-items: center;
}
.wa-icon-link {
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}
.float-icon-img {
    width: 50px; /* Matched smaller reference size */
    height: 50px;
    object-fit: contain;
    cursor: pointer;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2)); /* Slight shadow for depth */
    transition: transform 0.2s ease;
}
.float-icon-img:hover {
    transform: scale(1.05);
}

/* Popup pill - perfectly sized to reference */
.wa-popup {
    position: absolute;
    left: 20px; /* Sits behind icon */
    z-index: 1; /* Behind icon */
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #34c759;
    color: white;
    font-size: 11px;
    font-weight: 500;
    /* Padding to clear the 50px icon (left: 20px, so 30px overlap + 10px spacing = 40px) */
    padding: 8px 12px 8px 40px;
    border-radius: 25px;
    line-height: 1.3;
    /* Reference has a very subtle, soft shadow */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    /* Hide using max-width so it shrinks into the icon without poking out the left */
    max-width: 40px; 
    width: 200px;
    overflow: hidden;
    opacity: 0; /* Fade out completely when hidden */
    pointer-events: none;
    /* When hiding, it slides back under the icon very slowly (1.5s) AND fades out gradually */
    transition: max-width 1.5s ease-in-out, opacity 1.5s ease-in-out;
}
.wa-popup.visible {
    max-width: 200px; /* Fully revealed */
    opacity: 1; /* Fully visible */
    pointer-events: auto;
    /* When appearing, fade in/reveal instantly */
    transition: max-width 0.1s ease-in-out, opacity 0.1s ease-in-out;
}
.wa-popup span:first-child {
    display: block;
    white-space: normal;
    width: 140px; 
    min-width: 140px; /* Crucial to prevent text from wrapping/stretching vertically when closing */
}
.wa-popup-arrow {
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    /* Topbar */
    .topbar {
        display: none; /* Hide topbar on mobile to save space, usually standard */
    }
    
    /* Header */
    .header {
        padding: 10px 10px 10px 4px;
    }
    .header-container {
        flex-direction: row; /* Keep on one line */
        justify-content: space-between;
        gap: 5px;
    }
    .logo-img {
        max-height: 50px; /* Mobile par bhi bada logo */
    }
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Hero Slider */
    .slide {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }
    
    /* Main Nav */
    .nav-list {
        overflow-x: visible;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .nav-list li {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    .nav-list a {
        padding: 10px 5px;
        font-size: 13px;
        font-weight: normal;
    }
    
    /* Games Grid */
    .games-section {
        padding: 15px 10px;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Promo Section */
    .promo-container {
        flex-direction: column;
    }
    .promo-card {
        width: 100%; /* Ensure it takes full width */
    }
    /* Mobile par sirf placeholder hide - header "Mamaji247" dikhega */
    .promo-card-empty .promo-content-placeholder {
        display: none;
    }
    
    /* Floating WhatsApp - Show on mobile too, above bottom nav */
    .floating-whatsapp {
        display: flex;
        bottom: 70px; /* Above the bottom nav bar */
    }
    .wa-popup {
        font-size: 11px;
        padding: 8px 12px;
        max-width: 220px;
    }

    /* Footer Adjustments */
    .footer {
        padding: 15px 15px 80px; /* Extra bottom padding to fill space above mobile bottom nav */
    }
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
        padding-bottom: 12px;
    }
    .footer-top .support-item {
        flex: 1;
        flex-direction: column; /* Stack icon and text vertically */
        align-items: flex-start;
        gap: 8px;
    }
    .support-icon {
        width: 35px; /* Restored size slightly */
        height: 35px;
    }
    /* Restored text sizes by removing the overrides, let them inherit base sizes */
    .footer-middle {
        flex-direction: column;
        gap: 12px;
        overflow: hidden; /* Prevent page scroll */
        width: 100%;
    }
    .pay-methods {
        width: 100%;
        overflow: hidden; /* Prevent page scroll */
    }
    /* Horizontal scroll for Payment Methods on mobile */
    .pay-icons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px; /* Space for scrollbar */
        width: 100%;
        max-width: 100vw;
        gap: 15px;
        /* Prevent scroll chaining to body */
        overscroll-behavior-x: contain;
    }
    .pay-icons::-webkit-scrollbar {
        height: 4px;
    }
    .pay-icons::-webkit-scrollbar-track {
        background: #333;
        border-radius: 4px;
    }
    .pay-icons::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .footer-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* Tuck WhatsApp icon halfway behind the mobile bottom nav */
    .floating-whatsapp {
        bottom: 35px; /* Sinks into the 60px tall nav bar */
        left: 10px;   /* Restore normal left position */
        z-index: 999; /* Lower than nav bar (1000) */
    }
    
    /* Add padding to body so bottom nav doesn't hide content */
    body {
        padding-bottom: 60px;
    }
}

/* Mobile Bottom Nav Styles */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #25183f 0%, #461440 50%, #9e1436 100%);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        height: 54px;
        border-top: none;
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: white;
        font-size: 9px;
        flex: 1;
        position: relative;
        height: 100%;
        gap: 1px; /* Tiny gap between icon and text */
    }
    .nav-icon {
        width: 36px;
        height: 36px;
        background-color: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }
    /* Cricket Fight center item */
    .nav-item.main-action {
        flex: 1.2;
        position: relative;
        height: 100%;
        justify-content: center;
        overflow: visible;
    }
    /* Dark trapezoid behind Cricket Fight */
    .nav-item.main-action::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, #0d0612 0%, #4a0e28 60%, #7a1535 100%);
        clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
        z-index: 0;
    }
    .nav-item.main-action .nav-icon {
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.8));
    }
    .nav-item.main-action span {
        position: relative;
        z-index: 2;
        white-space: nowrap;
        font-size: 9px;
        line-height: 1;
        letter-spacing: -0.2px;
    }
}


