/* Estilos globais e animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

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

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

/* Melhorias para a busca */
#searchGames::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchGames:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 204, 0, 0.25);
    border-color: rgba(255, 204, 0, 0.5);
}

#searchHelper {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 0.25rem;
}

/* Estilos aprimorados para as barras de progresso */
.percent {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.percent-txt {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0;
    line-height: 17px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.percent-bar {
    height: 17px;
    transition: all 0.5s ease;
    position: relative;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Estilos para cards de jogos */
.game-card {
    transition: all 0.3s ease;
    overflow: hidden;

    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

    border: 1px solid #2e2e2e;
    border-radius: 10px;
}

.game-card .image-placeholder {
    position: relative;
    overflow: hidden;
}

.game-card .image-placeholder img {
    transition: transform 0.5s ease;
}

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

.game-card .game-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.game-card .btn {
    transition: all 0.3s ease;
}

.game-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos para a seção de jogos em destaque */
.featured-games-section {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.9) 0%, rgba(35, 35, 50, 0.9) 100%);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden; /* Evita overflow quando os elementos passam o mouse */
}

.featured-games-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00 0%, #ff6b6b 50%, #ffcc00 100%);
    animation: shimmer 3s infinite;
}

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

.featured-title {
    font-weight: 700;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
    position: relative;
}

.featured-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.featured-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3333 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    top: 8px;
    right: 8px;
}

.featured-game-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* .featured-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.25);
    border-color: rgba(255, 165, 0, 0.4);
} */

.featured-game-card .image-placeholder {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}

.featured-game-card .image-placeholder img {
    transition: transform 0.5s ease;
}

.featured-game-card:hover .image-placeholder img {
    transform: scale(1.05);
}

.featured-game-card .game-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-game-card .game-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.featured-game-card .game-info small {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 8px;
}

.featured-game-card .percent {
    margin-top: auto;
    margin-bottom: 12px;
}

.featured-game-card .btn {
    margin-top: auto;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-game-card .btn:hover {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    transform: translateY(-2px);
}

/* Estilos para o Swiper de jogos em destaque */
.featured-games-swiper {
    padding: 15px 0 40px 0;
    overflow: visible; /* Permite que os elementos com hover fiquem visíveis */
}

.featured-games-swiper .swiper-slide {
    width: 200px;
    height: auto; /* Permite que o slide se ajuste ao conteúdo */
}

.featured-games-swiper .swiper-button-next,
.featured-games-swiper .swiper-button-prev {
    color: #ffcc00;
    background: rgba(0, 0, 0, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.featured-games-swiper .swiper-button-next:hover,
.featured-games-swiper .swiper-button-prev:hover {
    background: rgba(255, 204, 0, 0.2);
}

.featured-games-swiper .swiper-pagination-bullet-active {
    background: #ffcc00;
}

/* Responsividade */
@media (max-width: 576px) {
    .featured-games-swiper .swiper-slide {
        width: 160px;
    }
    
    .featured-games-section {
        padding: 20px 15px;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .featured-games-swiper .swiper-slide {
        width: 180px;
    }
    
    .featured-games-section {
        padding: 22px 20px;
    }
}