/* ========== INDEX PAGE - UNIQUE STYLE ========== */

/* Hero Banner */
.hero-banner {
    margin: 15px 10px;
    border-radius: 24px;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.14), rgba(236, 72, 153, 0.08));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.22);
    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.2) 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(139, 92, 246, 0.14) 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); }
}

/* ===== FEATURED GAMES SECTION ===== */
.featured-section {
    margin: 15px 10px;
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(6, 182, 212, 0.06));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #ec4899);
}

.featured-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.featured-section-title .title-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.featured-section-title h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f0f0ff;
    margin: 0;
    letter-spacing: 0.3px;
}

.featured-section-title .more-btn {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.featured-section-title .more-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.5);
}

.featured-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.featured-game-card {
    border-radius: 18px;
    background: rgba(15, 10, 30, 0.65);
    border: 1px solid rgba(139, 92, 246, 0.12);
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.featured-game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(15, 10, 30, 0.85));
    border-radius: 0 0 14px 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-game-card:hover::after {
    opacity: 1;
}

.featured-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.18);
}

.featured-game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.featured-game-card .card-info {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
}

.featured-game-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.featured-game-card .card-info h3 {
    color: #f0f0ff;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-game-card .card-info p {
    color: #a5b4fc;
    font-size: 0.7rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-game-card .play-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ===== GAME LIST SECTION ===== */
.game-list-section {
    margin: 15px 10px;
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.06));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.15);
    position: relative;
    overflow: hidden;
}

.game-list-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899);
}

.game-list-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.game-list-section .section-header .header-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.game-list-section .section-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f0f0ff;
    margin: 0;
}

.game-list-section .section-header .more-link {
    margin-left: auto;
    color: #06b6d4;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.game-list-section .section-header .more-link:hover {
    color: #8b5cf6;
}

.game-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-list-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15, 10, 30, 0.55);
    border: 1px solid rgba(139, 92, 246, 0.10);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
}

.game-list-card:hover {
    background: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.12);
}

.game-list-card .list-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.10);
}

.game-list-card .list-info {
    flex: 1;
    min-width: 0;
}

.game-list-card .list-info h3 {
    color: #f0f0ff;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-list-card .list-info p {
    color: #7c83db;
    font-size: 0.75rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-list-card .list-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.game-list-card:hover .list-arrow {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.game-list-card .list-arrow::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid #a5b4fc;
    border-bottom: 2px solid #a5b4fc;
    transform: rotate(-45deg);
    margin-left: -2px;
    transition: border-color 0.3s;
}

.game-list-card:hover .list-arrow::after {
    border-color: #fff;
}

/* 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, 10, 30, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: #a5b4fc;
    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(139, 92, 246, 0.3), rgba(6, 182, 212, 0.22));
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.category-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* 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, #8b5cf6, #06b6d4, #ec4899);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f0f0ff;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), 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, 10, 30, 0.72);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.22);
    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, #8b5cf6, #06b6d4, #ec4899, #6334ce);
    z-index: 1;
}

.featured-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.4);
}

.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, #ec4899, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.game-badge.new {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.game-badge.top {
    background: linear-gradient(135deg, #8b5cf6, #6334ce);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

/* 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, 10, 30, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #e0e0ff;
    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(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.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(139, 92, 246, 0.15), rgba(6, 182, 212, 0.10));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: #7c83db;
    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 #8b5cf6;
    border-left: 3px solid #8b5cf6;
    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 */
.yzar-game-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 10, 30, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
    pointer-events: none;
}

.yzar-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(139, 92, 246, 0.92);
    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(139, 92, 246, 0.45);
}

.yzar-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;
    }

    .featured-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}
