/* ======================================
   RESET
====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================
   BODY
====================================== */

body {

    background: #121212;

    color: white;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}

/* ======================================
   SCROLLBAR
====================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {

    background: #00a2ff;

    border-radius: 20px;
}

/* ======================================
   HEADER
====================================== */

.header {

    position: fixed;

    top: 0;

    width: 100%;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 30px;

    background: rgba(0,0,0,0.75);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(0,162,255,0.2);

    z-index: 999;
}

/* ======================================
   LOGO
====================================== */

.logo {

    font-size: 1.8rem;

    font-weight: bold;

    display: flex;

    gap: 8px;

    letter-spacing: 2px;
}

.logo-blue {

    color: #00a2ff;

    text-shadow:
        0 0 10px #00a2ff,
        0 0 25px rgba(0,162,255,0.7);
}

.logo-white {

    color: white;
}

/* ======================================
   SEARCH
====================================== */

.search-container {

    width: 350px;

    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container input {

    width: 100%;

    padding: 12px 16px;

    border-radius: 12px;

    border: 1px solid rgba(0,162,255,0.3);

    background: rgba(255,255,255,0.05);

    color: white;

    outline: none;

    transition: 0.3s ease;
}

/* Discord icon next to search */
.discord-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.18s cubic-bezier(.2,.9,.2,1), box-shadow 0.18s ease;
    cursor: pointer;
    display: block;
}

#discordLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#discordLink:hover .discord-icon {
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,162,255,0.12);
}

#discordLink:active .discord-icon {
    transform: translateX(2px) scale(0.99);
}

.search-container input:focus {

    border-color: #00a2ff;

    box-shadow:
        0 0 15px rgba(0,162,255,0.5);
}

/* ======================================
   HERO
====================================== */

.hero {

    position: relative;

    height: 75vh;

    display: flex;

    align-items: center;

    padding: 120px 60px 40px;

    background-size: cover;

    background-position: 10% 10%;

    overflow: hidden;

    transition:
        background-image 1s ease,
        opacity 0.5s ease;
}

.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.9),
            rgba(0,0,0,0.4)
        );
}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(0,162,255,0.15),
            transparent 70%
        );
}

.hero-content {

    position: relative;

    z-index: 1;

    max-width: 600px;
}

.hero-badge {

    display: inline-block;

    padding: 8px 16px;

    border-radius: 999px;

    margin-bottom: 20px;

    background: rgba(0,162,255,0.15);

    border: 1px solid rgba(0,162,255,0.4);

    color: #00a2ff;
}

.hero-content h1 {

    font-size: 4rem;

    margin-bottom: 20px;

    text-shadow:
        0 0 20px rgba(0,162,255,0.5);
}

.hero-content p {

    color: #d0d0d0;

    font-size: 1.1rem;

    margin-bottom: 25px;

    line-height: 1.6;
}

.hero-buttons {

    display: flex;

    gap: 15px;
}

.hero-btn {

    padding: 14px 22px;

    border-radius: 12px;

    border: none;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s ease;
}

.hero-btn.primary {

    background:
        linear-gradient(
            90deg,
            #005eff,
            #00a2ff
        );

    color: white;
}

.hero-btn.secondary {

    background: rgba(255,255,255,0.08);

    color: white;

    border: 1px solid rgba(255,255,255,0.15);
}

.hero-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 15px rgba(0,162,255,0.5);
}

/* ======================================
   CATEGORIAS
====================================== */

.categories {

    display: flex;

    gap: 14px;

    padding: 25px 30px;

    overflow-x: auto;
}

.category-btn {

    padding: 10px 18px;

    border-radius: 999px;

    border: 1px solid rgba(0,162,255,0.25);

    background: #1b1b1b;

    color: white;

    cursor: pointer;

    transition: 0.3s ease;

    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {

    background: #00a2ff;

    box-shadow:
        0 0 15px rgba(0,162,255,0.5);
}

/* ======================================
   SECTIONS
====================================== */

.section-block {

    padding: 20px 30px 50px;
}

.section-title {

    font-size: 1.6rem;

    margin-bottom: 24px;
}

/* ======================================
   GRID
====================================== */

.games-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    gap: 24px;
}

/* ======================================
   CARD
====================================== */

.game-card {

    position: relative;

    background:
        linear-gradient(
            180deg,
            #1a1a1a,
            #101010
        );

    border-radius: 18px;

    overflow: hidden;

    border: 1px solid rgba(0,162,255,0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border 0.3s ease;
}

.game-card:hover {

    transform: scale(1.03);

    border-color: rgba(0,162,255,0.8);

    box-shadow:
        0 0 20px rgba(0,162,255,0.25),
        0 0 40px rgba(0,162,255,0.1);
}

/* ======================================
   IMAGE
====================================== */

.game-image {

    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.game-card:hover .game-image {

    transform: scale(1.05);
}

/* ======================================
   CARD INFO
====================================== */

.game-info {

    padding: 16px;
}

.game-title {

    font-size: 1rem;

    margin-bottom: 10px;

    min-height: 45px;
}

.game-meta {

    color: #a8a8a8;

    font-size: 0.9rem;

    margin-bottom: 12px;
}

.game-rating {

    color: #00a2ff;

    margin-bottom: 14px;

    font-weight: bold;
}

/* ======================================
   TAGS
====================================== */

.game-tags {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 14px;
}

.game-tag {

    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(0,162,255,0.12);

    border: 1px solid rgba(0,162,255,0.2);

    font-size: 0.75rem;

    color: #00a2ff;
}

/* ======================================
   BUTTON
====================================== */

.download-btn {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #005eff,
            #00a2ff
        );

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s ease;
}

.download-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 15px rgba(0,162,255,0.5);
}

.download-btn.disabled {

    background: #2a2a2a;

    color: #777;

    cursor: not-allowed;
}

/* ======================================
   FOOTER
====================================== */

.footer {

    text-align: center;

    padding: 30px;

    color: #777;
}

/* ======================================
   RESPONSIVO
====================================== */

@media (max-width: 768px) {

    .header {

        height: auto;

        flex-direction: column;

        gap: 15px;

        padding: 15px;
    }

    .hero {

        height: auto;

        padding: 140px 20px 60px;
    }

    .hero-content h1 {

        font-size: 2.5rem;
    }

    .games-grid {

        grid-template-columns:
            repeat(auto-fill, minmax(160px, 1fr));
    }

    .discord-icon {
        width: 32px;
        height: 32px;
    }
}

/* ======================================
   LOADING SPINNER & SKELETONS
====================================== */
.loading-spinner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 0 60px;
}

.loading-spinner .spinner-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.08);
    border-top-color: #00a2ff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.card-skeleton {
    background: linear-gradient(90deg, #141414 25%, #1a1a1a 50%, #141414 75%);
    background-size: 200% 100%;
    animation: shine 1.2s linear infinite;
    border-radius: 12px;
    height: 320px;
}

@keyframes shine { from { background-position: 200% 0 } to { background-position: -200% 0 } }