/* ========== INDEX PAGE - UNIQUE STYLE ========== */

/* Hero Banner */
.hero-banner {
    margin: 15px 10px;
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(6, 182, 212, 0.12), rgba(56, 189, 248, 0.08));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(20, 184, 166, 0.18);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroBlob 8s ease-in-out infinite;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroBlob 10s ease-in-out infinite reverse;
}

@keyframes heroBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin: 10px 10px;
    justify-content: center;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(15, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.18);
    color: #99f6e4;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.category-tab:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(6, 182, 212, 0.15));
    border-color: rgba(20, 184, 166, 0.35);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.35);
}

/* Section Title with Decorative Elements */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    margin: 20px 10px 10px;
    position: relative;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #14b8a6, #06b6d4, #38bdf8);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.25), transparent);
}

/* Game Grid Container */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px;
    margin: 0;
}

.game-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Featured Game - Large Card */
.featured-game {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 24px;
    background: rgba(15, 30, 50, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(20, 184, 166, 0.18);
    padding: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #06b6d4, #38bdf8, #10b981);
    z-index: 1;
}

.featured-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.35);
}

.featured-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Game Card Badge */
.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.game-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.game-badge.new {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.game-badge.top {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

/* Quick Access Pills */
.quick-access {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin: 10px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-access::-webkit-scrollbar {
    display: none;
}

.quick-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(15, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.12);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-pill:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.12);
}

.quick-pill img {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    margin: 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.12);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

/* Decorative Corner Shapes */
.corner-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    pointer-events: none;
}

.corner-shape.top-left {
    top: 0;
    left: 0;
    border-top: 3px solid #14b8a6;
    border-left: 3px solid #14b8a6;
    border-radius: 12px 0 0 0;
}

.corner-shape.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #06b6d4;
    border-right: 3px solid #06b6d4;
    border-radius: 0 0 12px 0;
}

/* Game Card Overlay Effect */
.icdjz-game-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 12, 24, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
    pointer-events: none;
}

.icdjz-game-item:hover .overlay {
    opacity: 1;
}

/* Play Icon Overlay */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.45);
}

.icdjz-game-item:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-icon-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .featured-game {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .hero-banner {
        margin: 10px 8px;
        padding: 15px;
    }
}
