body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0a0f1f;
    color: #f1f1f1;
    line-height: 1.6;
}

.logo {
    font-size: 1.6rem;
    color: #ffea00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(to bottom, #0f1a35, #0a0f1f);
    border-bottom: 1px solid #132040;
}

    .hero h1 {
        font-size: 2.5rem;
        color: #ffffff;
        margin-bottom: 0.5rem;
    }

.filters {
    background: #0f162b;
    padding: 1.6rem;
    border-bottom: 2px solid #132040;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.filter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .filter-form select,
    .filter-btn {
        padding: 0.6rem 1rem;
        border-radius: 8px;
        border: none;
        font-size: 1rem;
        font-family: 'Poppins', sans-serif;
    }

    .filter-form select {
        background: #1a1f35;
        color: #f1f1f1;
        cursor: pointer;
    }

        .filter-form select:focus {
            outline: 2px solid #ffea00;
        }

.filter-btn {
    background: #ffea00;
    color: #0a0f1f;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

    .filter-btn:hover {
        transform: scale(1.05);
    }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.game-card {
    display: block;
    background: #132040;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

    .game-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
    }

.game-info {
    padding: 1rem;
}

    .game-info h2 {
        font-size: 1.2rem;
        margin: 0 0 0.3rem;
        color: #ffea00;
    }

    .game-info p {
        font-size: 0.95rem;
        margin: 0 0 0.5rem;
        color: #cfd3e0;
    }

.platform {
    display: inline-block;
    font-size: 0.8rem;
    color: #0a0f1f;
    background: #ffea00;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 234, 0, 0.5);
    border: 1px solid #ffea00;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.page-btn {
    background: #ffea00;
    color: #0a0f1f;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

    .page-btn:hover {
        transform: scale(1.05);
    }

.page-info {
    color: #cfd3e0;
    font-size: 0.95rem;
}

.custom-navbar {
    background: #0d152b;
    border-bottom: 0px solid #ffea00;
    padding: 0.8rem 2rem;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffea00 !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.custom-navbar .nav-link {
    color: #f1f1f1 !important;
    margin-left: 1rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

    .custom-navbar .nav-link:hover {
        color: #ffea00 !important;
        border-bottom: 0px;
    }

.details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2rem auto;
    background: #132040;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 0 35px rgba(255, 234, 0, 0.4);
}

.details-thumbnail {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    object-fit: cover;
    border-bottom: 3px solid #ffea00;
}

.details-info h1 {
    font-size: 2.5rem;
    color: #ffea00;
    margin-bottom: 1rem;
}

.details-info p {
    font-size: 1.1rem;
    margin: 0.7rem 0;
    color: #cfd3e0;
}

.play-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: #ffea00;
    color: #0a0f1f;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .play-btn:hover {
        transform: scale(1.07);
        box-shadow: 0 0 20px rgba(255, 234, 0, 0.7);
    }

.back-btn {
    display: inline-block;
    margin: 2rem 0 1rem 0;
    background: #ffea00;
    color: #0a0f1f;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .back-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 234, 0, 0.7);
    }

@media (min-width: 768px) {
    .details-container {
        flex-direction: row;
        gap: 4rem;
    }

    .details-thumbnail {
        flex: 1;
    }

    .details-info {
        flex: 2;
    }
}
