:root {
    --bg-dark: #0a0a1a;
    --bg-light: #f8f9fa;
    --bg-card-dark: rgba(255, 255, 255, 0.05);
    --bg-card-light: #ffffff;
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --accent-glow: 0 0 15px rgba(0, 210, 255, 0.4);
    --text-main-dark: #ffffff;
    --text-main-light: #212529;
    --text-muted-dark: #a0a0c0;
    --text-muted-light: #6c757d;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Current Theme Variables (Default: Dark) */
    --bg: var(--bg-dark);
    --card: var(--bg-card-dark);
    --text: var(--text-main-dark);
    --muted: var(--text-muted-dark);
    --border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --card: var(--bg-card-light);
    --text: var(--text-main-light);
    --muted: var(--text-muted-light);
    --border: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 6px;
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background: var(--primary-gradient);
    color: white;
}

.navbar-toggler {
    color: var(--text);
    font-size: 2rem;
}

/* Back to Top Button */
#backToTop {
    z-index: 1000;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: var(--transition);
}

#backToTop:hover {
    transform: scale(1.1);
}

/* Navbar Styling */
.navbar {
    background: var(--bg) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 26, 0.8) !important;
    color: var(--text) !important;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--muted) !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text) !important;
}

.btn-telegram {
    background: #0088cc;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: var(--transition);
}

.btn-telegram:hover {
    background: #0099e6;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.1) 0%, transparent 50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Game List Card (Horizontal) */
.game-list-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.game-list-card:hover {
    transform: translateX(5px);
    border-color: #00d2ff;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.15);
}

.game-rank {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.game-list-logo {
    width: 65px;
    height: 65px;
    aspect-ratio: 1/1;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-list-content {
    flex-grow: 1;
    min-width: 0;
}

.game-list-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-info-item {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-label {
    color: #ff4d4d;
    font-weight: 600;
}

.info-value {
    color: #00d2ff;
    font-weight: 600;
}

.btn-download-list {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 8px;
    padding: 6px 15px;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
    animation: glow 1s ease-in-out infinite;
}

@keyframes glow {
    0% {
        box-shadow: var(--accent-glow);
        scale: 1;
    }

    50% {
        box-shadow: var(--accent-glow) 0 0 20px;
        scale: 1.1;
    }

    100% {
        box-shadow: var(--accent-glow);
        scale: 1;
    }
}

.btn-download-list:hover {
    filter: brightness(1.1);
    color: white;
    transform: translateY(-2px);
}

/* Game Grid Card */
.game-grid-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-grid-card:hover {
    transform: translateY(-10px);
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
}

.game-grid-card img {
    width: 100%;
    height: auto;
}

.game-grid-logo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 10px;
}

.game-grid-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
    text-align: center;
}

.game-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--muted);
}

.game-info-value {
    font-weight: 600;
    color: var(--text);
}

.btn-download-grid {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 10px;
    padding: 8px 5px;
    width: 100%;
    margin-top: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

.btn-download-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
    color: white;
    filter: brightness(1.1);
}

/* 18+ Floating Badge */
.floating-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

@keyframes animate-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.footer {
    background: rgba(199, 199, 199, 0.3);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Search Bar */
.search-container {
    background: var(--bg-card);
    border: 1px solid rgb(9 9 9 / 10%);
    border-radius: 50px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.search-input {
    background: transparent;
    border: none;
    color: rgb(49, 48, 48);
    padding: 10px 15px;
    width: 100%;
}

.search-input:focus {
    outline: none;
}