/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0d10;
    color: #eaeef2;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- UTILITY ----- */
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #facc15, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #facc15;
    color: #0b0d10;
}
.btn-primary:hover {
    background: #fbbf24;
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: #eaeef2;
    border: 2px solid #374151;
}
.btn-outline:hover {
    border-color: #facc15;
    color: #facc15;
}

/* ----- HERO (Homepage) ----- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #1f2937;
}

.hero-badge {
    display: inline-block;
    background: #1f2937;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #facc15;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #facc15, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 20px auto 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ----- GAMES GRID (Homepage) ----- */
.games-section {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.game-card-link {
    display: block;
    transition: transform 0.2s ease;
}

.game-card-link:hover {
    transform: translateY(-4px);
}

.game-card {
    background: #14181c;
    border-radius: 32px;
    padding: 28px 24px 32px;
    border: 1px solid #1f2937;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    border-color: #facc15;
    box-shadow: 0 20px 40px -12px rgba(250, 204, 21, 0.08);
}

.game-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.game-card .game-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #facc15;
    background: #1f2937;
    padding: 2px 14px;
    border-radius: 40px;
    align-self: flex-start;
}

.game-card p {
    color: #9ca3af;
    margin: 14px 0 20px;
    flex: 1;
}

/* ----- GALLERY (Homepage) ----- */
.game-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 22px;
    cursor: grab;
    position: relative;
}
.game-gallery:active { cursor: grabbing; }

.game-gallery::-webkit-scrollbar {
    height: 6px;
}
.game-gallery::-webkit-scrollbar-track {
    background: #1a1f26;
    border-radius: 10px;
}
.game-gallery::-webkit-scrollbar-thumb {
    background: #facc15;
    border-radius: 10px;
}

.game-gallery img {
    flex: 0 0 auto;
    width: 140px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #2a2f38;
    cursor: pointer;
}

/* ----- HOVER BIG PREVIEW (tooltip) ----- */
.hover-preview {
    display: none;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 2px solid #facc15;
    max-width: 60vw;
    max-height: 70vh;
    object-fit: contain;
    background: #0b0d10;
    padding: 4px;
    transform: translate(-50%, -50%) scale(0.95);
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0;
}

.hover-preview.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ----- STORE LINKS (Homepage) ----- */
.game-card .store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.game-card .store-links .btn {
    flex: 1 0 auto;
    text-align: center;
    padding: 10px 18px;
    font-size: 0.85rem;
}

.game-card .btn-outline {
    border-color: #374151;
}

/* ----- FOOTER ----- */
.footer {
    padding: 48px 0 40px;
    border-top: 1px solid #1f2937;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.footer a {
    color: #facc15;
    font-weight: 500;
}
.footer a:hover {
    text-decoration: underline;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 20px;
}

.footer .social-links a {
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}
.footer .social-links a:hover {
    color: #facc15;
    text-decoration: none;
}

/* ----- LIGHTBOX ----- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 30px;
    animation: fadeIn 0.25s ease;
}
.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    animation: zoomIn 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    background: none;
    border: none;
    line-height: 1;
    font-weight: 300;
    opacity: 0.7;
}
.lightbox-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    .footer .social-links {
        gap: 16px;
    }
    .game-gallery img {
        width: 110px;
        height: 74px;
    }
    .lightbox-overlay img {
        max-width: 95vw;
        max-height: 80vh;
    }
    .hover-preview {
        max-width: 80vw;
        max-height: 50vh;
    }
}
