/* ============================================================
   CASINO GAMES - VIBRANT PREMIUM GAMING UI
   ============================================================ */

/* ============ BASE PAGE ============ */
* { box-sizing: border-box; }

body {
    background: #020617 !important;
    color: #fff !important;
    overflow: auto !important;
}

html {
    overflow: auto !important;
}

section { display: block !important; }
.page-wrapper { display: block !important; }

/* ============ STATS CARDS - VIBRANT COLORS ============ */
.stats-cards-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
    margin: 0 !important;
}

.stats-card {
    padding: 16px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
    border: none !important;
    transition: transform 0.2s ease !important;
}

.stats-card:active { transform: scale(0.94) !important; }

/* TOTAL DIAMONDS - Vibrant Pink */
.stats-card-balance {
    background: linear-gradient(135deg, #ff006e, #ff4d6d) !important;
}

/* WIN - Vibrant Gold/Yellow */

/* ============ STATS CARDS - CUSTOM SEPARATE STYLING ============ */

.stats-section .stats-card {
    padding: 14px 10px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
    border: none !important;
    transition: transform 0.2s ease !important;
    min-height: 85px !important;
    background: none !important;
}

.stats-section .stats-card:active { 
    transform: scale(0.94) !important; 
}

/* TOTAL DIAMONDS - Vibrant Pink */
.stats-section .stats-card-balance {
    background: linear-gradient(135deg, #ff006e, #ff4d6d) !important;
    min-height: 85px !important;
    max-height: 120px !important;
}

/* WIN - Vibrant Gold/Yellow */
.stats-section .stats-card-win {
    background: linear-gradient(135deg, #ffd60a, #ffc300) !important;
    min-height: 85px !important;
    max-height: 120px !important;
}

.stats-section .stats-icon {
    font-size: 32px !important;
    color: #fff !important;
    margin-bottom: 6px !important;
}

.stats-section .stats-label {
    font-size: 10px !important;
    color: rgba(255,255,255,0.9) !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}

.stats-section .stats-value {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 4px 0 0 0 !important;
}

.stats-section .stats-content { 
    width: 100% !important; 
}

/* ============ GAME CARDS - SEPARATE STYLING ============ */

.games-grid .game-card-mobile {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #111827 !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    position: relative !important;
    min-height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
}

.games-grid .game-card-mobile:active {
    transform: scale(0.95) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.games-grid .game-card-mobile:nth-child(4n+1) { 
    background: linear-gradient(135deg, #1e3a8a, #1e1b4b) !important; 
}

.games-grid .game-card-mobile:nth-child(4n+2) { 
    background: linear-gradient(135deg, #134e4a, #1a1a2e) !important; 
}

.games-grid .game-card-mobile:nth-child(4n+3) { 
    background: linear-gradient(135deg, #7e22ce, #3730a3) !important; 
}

.games-grid .game-card-mobile:nth-child(4n) { 
    background: linear-gradient(135deg, #a16207, #2c1810) !important; 
}

/* Game card footer - specific styling */
.games-grid .card-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 15 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    gap: 4px !important;
    min-height: 50px !important;
}

.games-grid .card-content h5 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 4px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.games-grid .play-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4d6d 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255,0,110,0.4) !important;
    transition: all 0.15s ease !important;
    position: static !important;
    margin: 0 !important;
    text-align: center !important;
}

.stats-card-win {
    background: linear-gradient(135deg, #ffd60a, #ffc300) !important;
}

/* Hide others */
.stats-card-invest,
.stats-card-loss {
    display: none !important;
}

.stats-icon {
    font-size: 32px !important;
    color: #fff !important;
    margin-bottom: 8px !important;
}

.stats-label {
    font-size: 11px !important;
    color: rgba(255,255,255,0.9) !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}

.stats-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 4px 0 0 0 !important;
}

.stats-content { width: 100% !important; }

.games-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 16px !important;
    padding-bottom: 120px !important;
    margin-top: 2px !important;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.5) !important;
}

.section-title,
.title {
    background: linear-gradient(135deg, #ff006e 0%, #ffc300 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 2px 0 4px 0 !important;
}

.section-title {
    text-align: center !important;
    width: 100% !important;
}

.section-header {
    padding-bottom: 12px !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(135deg, #ff006e, #ffc300) 1 !important;
}

.games-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

.game-card-mobile {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #111827 !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    position: relative !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
}

.game-card-mobile:active {
    transform: scale(0.95) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* Color variations per card */
.game-card-mobile:nth-child(4n+1) { background: linear-gradient(135deg, #1e3a8a, #1e1b4b) !important; }
.game-card-mobile:nth-child(4n+2) { background: linear-gradient(135deg, #134e4a, #1a1a2e) !important; }
.game-card-mobile:nth-child(4n+3) { background: linear-gradient(135deg, #7e22ce, #3730a3) !important; }
.game-card-mobile:nth-child(4n) { background: linear-gradient(135deg, #a16207, #2c1810) !important; }

/* Image Container - Full Height with Overlay */
.game-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #1f2937 !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.game-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* ============ GAME OVERLAY & PLAY BUTTON ============ */

.game-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 5 !important;
}

.game-card-mobile:hover .game-overlay {
    opacity: 1 !important;
}

.play-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #ff006e, #ff4d6d) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255,0,110,0.5) !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    position: relative !important;
}

.play-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255,0,110,0.7) !important;
}

.play-btn:active {
    transform: scale(0.95) !important;
}

.play-btn i {
    display: inline-block !important;
}



/* Dark Overlay on Image */
.game-thumb::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)) !important;
    z-index: 2 !important;
}

/* Card Footer - Positioned on Top of Image */
.card-content {
    position: relative !important;
    z-index: 10 !important;
    margin-top: auto !important;
    padding: 12px !important;
    background: transparent !important;
    border-top: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.card-content h5 {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-align: left !important;
    flex: 1 !important;
}

.play-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4d6d 100%) !important;


/* Hide game name from showing at top */
.game-card-mobile .card-content h5 {
    display: block !important;
    order: 2 !important;
    margin-top: 6px !important;
}

/* Play button first (above game name) */
.game-card-mobile .play-link {
    order: 1 !important;
}

/* Card content container - flex column */
.card-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    gap: 6px !important;
}


.play-link {
    position: static !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

.card-content h5 {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 4px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}


.stats-section {
    padding: 12px 12px 8px 12px !important;
    margin-bottom: 0 !important;
}

.stats-cards-row {
    margin-bottom: 8px !important;
}

.games-section {
    margin-top: 4px !important;
    padding: 12px !important;
    padding-bottom: 120px !important;
    border-radius: 20px 20px 0 0 !important;
}

.section-header {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}

.games-grid {
    gap: 8px !important;
}

.game-card-mobile {
    min-height: 180px !important;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 10px 10px 6px 10px !important;
    }
    
    .games-section {
        padding: 10px !important;
        margin-top: 2px !important;
    }
    
    .games-grid {
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 8px 8px 4px 8px !important;
    }
    
    .games-section {
        padding: 8px !important;
        margin-top: 0 !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .section-header {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }
    
    .games-grid {
        gap: 6px !important;
    }
    
    .game-card-mobile {
        min-height: 160px !important;
    }
}


.card-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 15 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    gap: 4px !important;
    min-height: 50px !important;
}

.card-content h5 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 4px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.play-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4d6d 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255,0,110,0.4) !important;
    transition: all 0.15s ease !important;
    position: static !important;
    margin: 0 !important;
    text-align: center !important;
}

.game-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    z-index: 9999 !important;
    padding: 8px 6px !important;
    background: rgba(0,0,0,0.8) !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    min-height: 50px !important;
    max-height: 60px !important;
}

/* ============ GAME-INFO PLAY BUTTON (BOTTOM) ============ */

.game-info .play-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #ff006e 0%, #ff4d6d 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(255,0,110,0.3) !important;
    transition: all 0.15s ease !important;
    margin-top: 4px !important;
}

.game-info .play-link:hover {
    box-shadow: 0 4px 12px rgba(255,0,110,0.5) !important;
}

.game-info .play-link:active {
    transform: scale(0.92) !important;
}


/* ============ FORCE PLAY LINK VISIBILITY (OVERRIDE) ============ */
.game-info .play-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ed1569, #ff4d6d) !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 20px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 0 10px 5px rgba(237, 21, 105, 0.3) !important;
    transition: all 0.3s ease !important;
}

.game-info .play-link:hover {
    background: linear-gradient(135deg, #d8115e, #ff0054) !important;
    box-shadow: 0 0 15px 8px rgba(237, 21, 105, 0.5) !important;
    transform: scale(1.05) !important;
}

.game-info .play-link:active {
    transform: scale(0.95) !important;
}
