/**
 * Benefícios Carousel - A Casa dos Gamers
 * CSS Otimizado para WordPress - Versão Mobile Fix
 * Encoding: UTF-8
 */

/* Container principal */
.beneficios-carousel {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-color: transparent !important;
    /* Previne seleção acidental em mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Reset apenas para elementos internos */
.beneficios-carousel * {
    box-sizing: border-box;
}

/* Track do carrossel */
.beneficios-carousel .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    background: transparent !important;
    /* Melhora performance de scroll em mobile */
    will-change: scroll-position;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.beneficios-carousel .carousel-track::-webkit-scrollbar {
    display: none;
}

/* Slide individual */
.beneficios-carousel .beneficio-slide {
    min-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always; /* Força parada em cada slide */
    display: flex;
    justify-content: center;
    padding: 10px;
    background: transparent !important;
}

/* Card */
.beneficios-carousel .beneficio-card {
    width: 100%;
    max-width: 320px;
    height: 280px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background: transparent !important;
    /* Previne zoom em double tap no iOS */
    touch-action: manipulation;
}

/* Parte interna do card - FUNDO ESCURO */
.beneficios-carousel .beneficio-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #141414, #1e1e1e);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Área do ícone */
.beneficios-carousel .beneficio-icon-wrapper {
    width: 100%;
    height: 100px;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Efeito de brilho */
.beneficios-carousel .beneficio-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    animation: beneficio-rotate 15s linear infinite;
    z-index: 1;
}

@keyframes beneficio-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container do ícone */
.beneficios-carousel .beneficio-icon {
    position: relative;
    width: 65px;
    height: 65px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculo ao redor do ícone */
.beneficios-carousel .beneficio-icon-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    animation: beneficio-pulse 2s ease-in-out infinite;
}

.beneficios-carousel .beneficio-icon-circle::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 215, 0, 0.6);
    animation: beneficio-rotate-slow 12s linear infinite;
}

@keyframes beneficio-rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Imagem do ícone */
.beneficios-carousel .beneficio-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    transition: all 0.3s ease;
    z-index: 3;
}

/* Efeito shine */
.beneficios-carousel .beneficio-shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 170, 0, 0.1), 
        transparent);
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
    z-index: 4;
}

/* Conteúdo do card */
.beneficios-carousel .beneficio-content {
    padding: 20px 15px 15px 15px;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
}

/* Título */
.beneficios-carousel .beneficio-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.beneficios-carousel .beneficio-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #FFC125, #FF8C00);
    border-radius: 2px;
}

/* Container das descrições */
.beneficios-carousel .beneficio-desc-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

/* Descrição */
.beneficios-carousel .beneficio-desc {
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* Nota */
.beneficios-carousel .beneficio-note {
    color: rgba(204, 204, 204, 0.7);
    font-size: 0.7rem;
    font-style: italic;
    line-height: 1.3;
    margin-top: auto;
    padding-top: 5px;
}

/* Destaque */
.beneficios-carousel .highlight {
    color: #FFD700;
    font-weight: 600;
}

/* Elementos especiais - Time Icon */
.beneficios-carousel .time-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 4px;
    vertical-align: middle;
    position: relative;
    border: 1px solid #FFD700;
    border-radius: 50%;
}

.beneficios-carousel .time-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 1px;
    background-color: #FFD700;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: left center;
    animation: beneficio-clockHand 2s linear infinite;
}

@keyframes beneficio-clockHand {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(-50%, -50%) rotate(405deg); }
}

/* Links */
.beneficios-carousel .saiba-mais {
    color: #FFD700;
    text-decoration: none;
    font-weight: normal;
}

/* Badge Premium */
.beneficios-carousel .premium-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #FFC125, #FF8C00);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin: 0 3px;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

/* Ícone de cupom */
.beneficios-carousel .coupon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0 3px;
    vertical-align: middle;
}

.beneficios-carousel .coupon-icon::before {
    content: '%';
    color: #FFD700;
    font-size: 0.8rem;
    font-weight: bold;
    animation: beneficio-pulse-scale 2s infinite;
}

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

/* Chat bubble */
.beneficios-carousel .chat-bubble {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

.beneficios-carousel .bubble-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.beneficios-carousel .bubble-dot {
    width: 3px;
    height: 3px;
    background-color: #FFD700;
    border-radius: 50%;
    margin: 0 1.5px;
    opacity: 0.7;
}

.beneficios-carousel .bubble-dot:nth-child(1) {
    animation: beneficio-bubbleBounce 1.2s infinite 0s;
}

.beneficios-carousel .bubble-dot:nth-child(2) {
    animation: beneficio-bubbleBounce 1.2s infinite 0.2s;
}

.beneficios-carousel .bubble-dot:nth-child(3) {
    animation: beneficio-bubbleBounce 1.2s infinite 0.4s;
}

@keyframes beneficio-bubbleBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}

/* Botões de navegação - CORRIGIDO PARA MOBILE */
.beneficios-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px; /* Aumentado para dar mais espaço */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    /* REMOVIDO pointer-events: none */
    z-index: 20; /* Aumentado z-index */
}

.beneficios-carousel .carousel-btn {
    width: 48px; /* Aumentado para melhor toque mobile */
    height: 48px;
    background: #FF8C00;
    border: 2px solid #FFD700; /* Border mais visível */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    font-size: 24px; /* Aumentado o tamanho da seta */
    font-weight: bold;
    z-index: 30; /* Alto z-index */
    /* Otimizações para mobile */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    -webkit-touch-callout: none;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hover apenas para desktop */
@media (hover: hover) {
    .beneficios-carousel .carousel-btn:hover {
        background: #FFD700;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    }
}

/* Estado ativo para feedback visual */
.beneficios-carousel .carousel-btn:active {
    transform: scale(0.95);
    background: #FFA500;
}

/* Setas dos botões - Caracteres corrigidos */
.beneficios-carousel .carousel-btn.prev::before {
    content: '\2039'; /* ‹ */
    display: block;
    margin-right: 2px;
}

.beneficios-carousel .carousel-btn.next::before {
    content: '\203A'; /* › */
    display: block;
    margin-left: 2px;
}

/* Indicadores */
.beneficios-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px; /* Aumentado para melhor toque */
    margin-top: 20px;
    padding: 10px;
    z-index: 10;
}

.beneficios-carousel .dot {
    width: 10px; /* Aumentado */
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.3);
    border: 1px solid rgba(255, 170, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Mobile optimization */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.beneficios-carousel .dot.active {
    background: #FFD700;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsivo - Mobile First */
@media (max-width: 768px) {
    .beneficios-carousel .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    /* Desabilita animações pesadas em mobile */
    .beneficios-carousel .beneficio-icon-wrapper::before {
        animation: none;
        background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    }
}

/* Desktop */
@media (min-width: 769px) {
    .beneficios-carousel {
        max-width: 1000px;
    }
    
    .beneficios-carousel .carousel-track {
        gap: 20px;
        padding: 0 20px;
        max-width: 100%;
    }
    
    .beneficios-carousel .beneficio-slide {
        min-width: 320px;
        scroll-snap-align: start;
    }
    
    .beneficios-carousel .beneficio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    .beneficios-carousel .carousel-nav {
        max-width: 1050px;
    }
}

/* Fix para iOS Safari */
@supports (-webkit-touch-callout: none) {
    .beneficios-carousel .carousel-btn {
        -webkit-appearance: none;
    }
}
