/* Custom styles for alllatestyonogames */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
    --primary-blue: #0056ff;
    --accent-red: #ff3b30;
    --accent-orange: #ff9500;
    --accent-yellow: #ffcc00;
    --accent-purple: #5856d6;
    --bg-light: #f5f7fa;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom shadows */
.shadow-soft {
    box-shadow: var(--card-shadow);
}

/* Hero Section Styles */
.hero-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.hero-slides-container {
    display: flex;
    width: 100%;
}

.hero-slide {
    width: 100%;
    flex-shrink: 0;
}

.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots span.active {
    width: 24px;
    border-radius: 4px;
    background: #ffffff;
}

/* Mobile specific fixes for Hero Slider */
@media (max-width: 640px) {
    .hero-slide {
        padding-bottom: 40px !important; /* Slightly less space for dots */
    }
    .hero-cta-btn {
        margin-top: 1rem !important;
        width: fit-content;
    }
    .hero-dots {
        bottom: 12px !important;
    }
}

/* Trending Games Scroll */
.trending-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 10px 20px; /* Increased top/left/right padding */
    scroll-snap-type: x mandatory;
}

.trending-card {
    flex: 0 0 calc((100% - 20px) / 3);
    scroll-snap-align: start;
    position: relative;
    min-width: 95px;
}

.rank-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
}

/* Trending page full cards */
.trending-page-card .rank-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 8px;
}

@media (max-width: 639px) {
    .trending-page-card {
        overflow: visible;
    }
}

/* Quick Links Grid */
.quick-link-item {
    padding: 16px;
    border-radius: 20px;
    transition: transform 0.2s ease;
}

.quick-link-item:hover {
    transform: translateY(-2px);
}

/* Game Card in All Games */
.game-icon-card {
    text-align: center;
    transition: transform 0.2s ease;
}

.game-icon-card:hover {
    transform: scale(1.05);
}

.game-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Category Tabs */
.category-tab {
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-tab.active {
    background-color: var(--primary-blue);
    color: white;
}

.category-tab:not(.active) {
    background-color: #f0f2f5;
    color: #64748b;
}

/* Feature Badge */
.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
}

/* Bottom Nav */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
    padding: 4px 0;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.bottom-nav-item.active {
    color: var(--primary-blue);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Search Results Styles */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 800;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 2px;
}

.search-result-bonus {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.search-result-version {
    font-size: 12px;
    font-weight: 800;
    color: #06b6d4;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .trending-scroll {
        gap: 16px;
    }
    .trending-card {
        flex: 0 0 200px;
    }
}

/* About intro section on homepage */
.about-intro-section {
    overflow: hidden;
}

.about-intro-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.about-intro-blob {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.about-intro-image {
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.08));
}

@media (max-width: 1023px) {
    .about-intro-visual {
        order: -1;
        min-height: 220px;
    }
}
