body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #2c0f52, #5a0e2e);
    color: #ffffff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a163a; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(45deg, #ec4899, #8b5cf6); 
    border-radius: 4px; 
}

.home-icon { display: none; }
.loaded .home-icon { display: block; }

.sidebar-scroll {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 120px) !important;
    scrollbar-width: thin;
    scrollbar-color: #ec4899 rgba(26, 22, 58, 0.3);
}

.sidebar-scroll::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: rgba(26, 22, 58, 0.5) !important;
    border-radius: 4px !important;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ec4899, #8b5cf6) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #be185d, #7c3aed) !important;
}

.neon-glow {
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

.neon-text {
    text-shadow: 0 0 5px rgba(236, 72, 153, 0.8), 0 0 10px rgba(139, 92, 246, 0.6);
}

/* ============ MODERN OYUN KARTLARI ============ */

/* Modern game card ana container */
.modern-game-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    /* Tailwind override */
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modern-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(236, 72, 153, 0.1) 50%,
        rgba(244, 114, 182, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
}

.modern-game-card:hover::before {
    opacity: 1;
}

.modern-game-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(139, 92, 246, 0.15),
        0 0 30px rgba(236, 72, 153, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Modern image container */
.modern-game-image-container {
    position: relative !important;
    width: 100% !important;
    height: 160px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.modern-game-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease !important;
}

.modern-game-card:hover .modern-game-image {
    transform: scale(1.1) !important;
}

/* Modern overlay */
.modern-game-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.85), rgba(236, 72, 153, 0.85)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 10 !important;
}

.modern-game-card:hover .modern-game-overlay {
    opacity: 1 !important;
}

/* Modern play button */
.modern-play-button {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a2e !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.modern-play-button:hover {
    transform: scale(1.1) !important;
    background: white !important;
}

/* Modern content area */
.modern-game-content {
    padding: 16px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    position: relative !important;
    z-index: 3 !important;
}

/* Modern title */
.modern-game-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: white !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Modern stats */
.modern-game-stats {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 10px !important;
}

.modern-stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.modern-stat-item i {
    color: #f59e0b !important;
}

/* Modern category tag */
.modern-game-category {
    display: inline-block !important;
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a78bfa !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

/* Modern badges */
.modern-game-badges {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
}

.modern-badge {
    padding: 3px 6px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.modern-badge-trending {
    background: linear-gradient(45deg, #ef4444, #dc2626) !important;
    color: white !important;
}

.modern-badge-popular {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
}

.modern-badge-new {
    background: linear-gradient(45deg, #10b981, #059669) !important;
    color: white !important;
}

/* ============ ESKİ KART SİSTEMİ FALLBACK ============ */

/* Eski game-card sistemi (backward compatibility) */
div.game-card.group:not(.modern-game-card),
div[class*="game-card"][class*="group"]:not(.modern-game-card) {
    position: relative !important;
    background: linear-gradient(145deg, 
        rgba(30, 27, 75, 0.95) 0%, 
        rgba(49, 46, 129, 0.95) 50%,
        rgba(76, 29, 149, 0.95) 100%) !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(236, 72, 153, 0.2) !important;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 3px 12px rgba(236, 72, 153, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    backdrop-filter: blur(15px) !important;
    transform-style: preserve-3d !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .modern-game-image-container {
        height: 120px !important;
    }
    
    .modern-game-content {
        padding: 12px !important;
    }
    
    .modern-game-title {
        font-size: 13px !important;
    }
    
    .modern-game-stats {
        font-size: 11px !important;
        gap: 8px !important;
    }
    
    .modern-play-button {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    /* Mobilde kategori etiketlerini gizle */
    .game-category-tag, 
    .category-section,
    .modern-game-category {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* Kategori seçili durumu */
.category-selected {
    position: relative;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.9), 0 0 40px rgba(139, 92, 246, 0.7);
    border: 2px solid #ec4899;
    animation: pulse-glow 2s infinite alternate;
    background: linear-gradient(135deg, 
        #ff007f 0%, 
        #a64aff 50%,
        #ec4899 100%) !important;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.9), 0 0 40px rgba(139, 92, 246, 0.7);
    }
    to {
        box-shadow: 0 0 25px rgba(236, 72, 153, 1), 0 0 50px rgba(139, 92, 246, 0.9);
    }
}

/* FOOTER GİZLEME - TÜM CİHAZLAR */
footer,
.footer,
.site-footer,
.page-footer,
#footer,
#site-footer,
#page-footer,
.mobile-nav,
nav.mobile-nav,
[class*="footer"],
[id*="footer"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Mobil navigasyon düzenlemeleri */
@media (max-width: 1023px) {
    main {
        padding-bottom: 90px !important;
        margin-bottom: 0 !important;
    }
    
    .mobile-nav-container {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: linear-gradient(to right, #4c1d95, #2a245c) !important;
        padding: 0.5rem !important;
        z-index: 9999 !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3) !important;
        border-top: 2px solid rgba(236, 72, 153, 0.3) !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        min-height: 70px !important;
    }
    
    .mobile-nav-container::-webkit-scrollbar {
        display: none !important;
    }
    
    .mobile-nav-item {
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0.75rem 0.5rem !important;
        border-radius: 0.75rem !important;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
        text-align: center !important;
        min-width: 80px !important;
        max-width: 90px !important;
        margin: 0 0.25rem !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    .mobile-nav-item:focus {
        outline: 2px solid #ec4899 !important;
        outline-offset: 2px !important;
    }
    
    .mobile-nav-item i {
        font-size: 1.5rem !important;
        color: #f472b6 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .mobile-nav-item span {
        font-size: 0.7rem !important;
        color: #e2e8f0 !important;
        font-weight: 500 !important;
        text-shadow: 0 0 3px rgba(244, 114, 182, 0.5) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        line-height: 1.2 !important;
    }
    
    .mobile-nav-item.category-selected {
        background: linear-gradient(to right, #ff007f, #a64aff) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 0 15px rgba(255, 0, 127, 0.8), 0 0 30px rgba(166, 74, 255, 0.6) !important;
        border: 2px solid #ff007f !important;
        animation: pulse-glow 1.5s infinite alternate !important;
    }
    
    .mobile-nav-item:hover:not(.category-selected) {
        background: #6b21a8 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.5), 0 0 25px rgba(139, 92, 246, 0.4) !important;
    }
    
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .flex.flex-col.lg\\:flex-row {
        padding-bottom: 90px !important;
        min-height: calc(100vh - 90px) !important;
    }
    
    /* Mobil modern kartlar */
    .modern-game-card {
        margin-bottom: 1rem;
    }
    
    .modern-game-card:hover {
        transform: translateY(-5px) scale(1.02) !important;
    }
    
    .grid.grid-cols-2 {
        margin-bottom: 2rem !important;
    }
    
    section:last-child {
        margin-bottom: 3rem !important;
    }
    
    .flex.justify-center.gap-2.mt-6 {
        margin-bottom: 2rem !important;
    }
}

/* Desktop navigasyon */
@media (min-width: 1024px) {
    .mobile-nav-container {
        display: none !important;
    }
    
    main {
        padding-bottom: 1.5rem !important;
    }
}

/* Tablet düzenleri */
@media (min-width: 768px) and (max-width: 1023px) {
    .modern-game-card:hover {
        transform: translateY(-6px) scale(1.02) !important;
    }
}