/**
 * Hot Games Styles - Unique styling for featured/hot games section
 * File: hot-games.css
 */

/* Hot Games Section Container */
.hot-games-section {
    position: relative;
    padding: 20px 0;
    margin-bottom: 24px;
}

/* Hot Games Header */
.hot-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 16px;
}

.hot-games-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hot-games-title .hot-icon {
    font-size: 22px;
    animation: hot-pulse 1.5s ease-in-out infinite;
}

.hot-games-title .hot-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

@keyframes hot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* See All Button */
.hot-see-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-see-all:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.15) 100%);
    border-color: #d4af37;
    transform: translateX(3px);
}

.hot-see-all i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.hot-see-all:hover i {
    transform: translateX(2px);
}

/* Hot Games Grid */
.hot-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    padding: 0 16px;
}

/* Hot Game Card - Unique Styling */
.hot-game-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hot-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%, rgba(255, 71, 87, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.hot-game-card:hover::before {
    opacity: 1;
}

.hot-game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hot-game-card:active {
    transform: scale(0.98);
}

/* Hot Game Thumbnail */
.hot-game-thumb {
    position: relative;
    aspect-ratio: 1 / 1.15;
    background: #0f0f23;
    overflow: hidden;
}

.hot-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-game-card:hover .hot-game-thumb img {
    transform: scale(1.08);
}

/* Black gradient shadow overlay */
.hot-game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* Win Odds Badge */
.hot-game-odds {
    display: none;
}

/* Hot Game Info — overlaid on image */
.hot-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 8px 7px;
    z-index: 4;
    pointer-events: none;
}

.hot-game-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hot-game-provider {
    display: none;
}

/* Rank Badge for Top Games */
.hot-game-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #1a1a2e;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.hot-game-rank.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.hot-game-rank.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.hot-game-rank.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
}

/* Hot Game Placeholder (No Image) */
.hot-game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
    padding: 12px;
    text-align: center;
}

.hot-game-placeholder .placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.hot-game-placeholder .placeholder-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* Hot Games Horizontal Scroll (for mobile) */
.hot-games-scroll {
    display: flex;
    gap: 14px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hot-games-scroll::-webkit-scrollbar {
    display: none;
}

.hot-games-scroll .hot-game-card {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
}

/* Hot Games 2-Row Horizontal Scroll Grid (Home Page) */
.hot-games-grid-2row {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: 130px;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hot-games-grid-2row::-webkit-scrollbar {
    display: none;
}

.hot-games-grid-2row .hot-game-card {
    width: 130px;
    scroll-snap-align: start;
}

@media (max-width: 480px) {
    .hot-games-grid-2row {
        grid-auto-columns: 100px;
        gap: 8px;
        padding: 0 12px;
    }

    .hot-games-grid-2row .hot-game-card {
        width: 100px;
    }
}

/* Category Tabs for Hot Games Page */
.hot-games-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hot-games-tabs::-webkit-scrollbar {
    display: none;
}

.hot-games-tab {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-games-tab:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.hot-games-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-color: #d4af37;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hot-games-tab .tab-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.hot-games-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.2);
    color: #1a1a2e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hot-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .hot-games-title {
        font-size: 16px;
    }
    
    .hot-game-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .hot-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 12px;
    }
    
    .hot-games-header {
        padding: 0 12px 12px;
    }
    
    .hot-see-all {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .hot-game-info {
        padding: 8px 10px;
    }
    
    .hot-game-name {
        font-size: 11px;
    }
    
    .hot-game-provider {
        font-size: 9px;
    }
}

/* Loading State */
.hot-game-skeleton {
    background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    aspect-ratio: 1 / 1.15;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.hot-games-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.hot-games-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.hot-games-empty .empty-text {
    font-size: 14px;
    font-weight: 600;
}
