
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    margin-top: 5rem;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}




.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.category-card {
    position: relative;
    overflow: hidden;
}



.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}


.game-card-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover .game-card-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}


.tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}


.ranking-number {
    position: relative;
}

.ranking-item:hover .ranking-number {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}


.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--card-bg) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .game-detail-title {
        font-size: 1.75rem;
    }
}


html {
    scroll-behavior: smooth;
}


*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: none;
}


::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}



:root {
    --primary: #a3e635; 
    --primary-color: var(--primary);
    --secondary-color: #fb7185; 
    --accent: #0ea5e9; 
    --bg-color: #f8fafc;
    --bg-secondary: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #334155;
    --card-bg: #ffffff;
    --card-hover: #f1f5f9;
    --border-color: #0f172a;
    --shadow: rgba(15, 23, 42, 0.12);
    --shadow-lg: rgba(15, 23, 42, 0.18);
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 0),
        radial-gradient(900px 600px at 15% 0%, rgba(163, 230, 53, 0.22), transparent 55%),
        radial-gradient(900px 600px at 90% 10%, rgba(251, 113, 133, 0.18), transparent 55%);
    background-size: 18px 18px, auto, auto;
    background-position: 0 0, 0 0, 0 0;
    background-attachment: fixed;
    color: var(--text-color);
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.75rem 1rem 3rem;
}

.header {
    top: 0.75rem;
    margin: 0.75rem auto;
    width: min(1400px, calc(100% - 1.5rem));
    border: 3px solid var(--border-color);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    box-shadow: 10px 10px 0 var(--border-color);
}

.logo {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-color);
    letter-spacing: -0.4px;
}

.logo i {
    color: var(--text-color);
}

.nav-links a {
    color: var(--text-color);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 2px solid transparent;
}

.nav-links a:hover {
    border-color: var(--border-color);
    background: var(--primary);
    color: var(--border-color);
}

.search-input {
    background: var(--bg-secondary) !important;
    border: 3px solid var(--border-color) !important;
    border-radius: 14px !important;
    color: var(--text-color) !important;
}

.search-input:focus {
    border-color: var(--border-color) !important;
    box-shadow: 6px 6px 0 var(--border-color) !important;
}

.search-btn-right {
    border: 3px solid var(--border-color);
    background: var(--primary);
    color: var(--border-color);
    border-radius: 14px;
}

.search-btn-right:hover {
    transform: translateY(-1px);
    box-shadow: 6px 6px 0 var(--border-color);
}

.dropdown-menu {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    box-shadow: 10px 10px 0 var(--border-color);
}

.dropdown-menu a {
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background: rgba(163, 230, 53, 0.35);
    color: var(--text-color);
}

.categories-menu::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.35) !important;
}

.categories-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.55) !important;
}

.categories-menu .category-item:hover {
    background: rgba(163, 230, 53, 0.30) !important;
    color: var(--text-color) !important;
}


.game-card-tags {
    scrollbar-color: rgba(15, 23, 42, 0.35) transparent;
}

.game-card-tags::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.35) !important;
}

.game-card-tags::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.55) !important;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(163, 230, 53, 0.30) !important;
    color: var(--text-color) !important;
    border-left-color: var(--border-color) !important;
}

@media (min-width: 1024px) {
    .home-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "hero hero"
            "featured latest"
            "recommended recommended"
            "tags tags"
            "recent recent";
        gap: 1.5rem;
        align-items: start;
    }

    .home-main > section:nth-of-type(1) { grid-area: featured; }
    .home-main > section:nth-of-type(2) { grid-area: hero; }
    .home-main > section:nth-of-type(3) { grid-area: latest; }
    .home-main > section:nth-of-type(4) { grid-area: recommended; }
    .home-main > section:nth-of-type(5) { grid-area: tags; }
    .home-main > section:nth-of-type(6) { grid-area: recent; }
}

.games-section,
.hero-banner-section {
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 10px 10px 0 var(--border-color);
    padding: 1.25rem;
}

.section-title {
    color: var(--text-color);
}

.view-all-link {
    border: 2px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-color);
    text-decoration: none;
}

.view-all-link:hover {
    background: var(--primary);
    color: var(--border-color);
}

.game-card,
.game-card-large,
.game-card-small,
.recommended-game-icon,
.category-card {
    background: var(--card-bg) !important;
    border: 3px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 8px 8px 0 var(--border-color) !important;
}

.game-card:hover,
.game-card-large:hover,
.category-card:hover,
.recommended-game-icon:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 12px 12px 0 var(--border-color) !important;
    border-color: var(--border-color) !important;
}

.game-card-image-gradient {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.75) 100%) !important;
}

.tag {
    background: rgba(163, 230, 53, 0.25) !important;
    color: var(--text-color) !important;
    border: 2px solid var(--border-color) !important;
}

.tag:hover {
    background: var(--primary) !important;
    color: var(--border-color) !important;
    box-shadow: 6px 6px 0 var(--border-color) !important;
}

.hero-banner-card {
    border: 3px solid var(--border-color) !important;
    box-shadow: 10px 10px 0 var(--border-color) !important;
    border-radius: 18px !important;
}

.hero-banner-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.85)) !important;
    opacity: 1 !important;
}

.hero-banner-badge {
    background: var(--primary) !important;
    color: var(--border-color) !important;
    border: 2px solid var(--border-color) !important;
}

.site-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 3px solid var(--border-color);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-color) !important;
}

.footer-section p,
.footer-section ul li a,
.footer-bottom p {
    color: var(--text-secondary) !important;
}

.back-to-top-btn {
    border: 3px solid var(--border-color) !important;
    box-shadow: 8px 8px 0 var(--border-color) !important;
    background: var(--primary) !important;
    color: var(--border-color) !important;
}
