/* Banner Slider Styles - Versão Suave e Centralizada */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: block;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Container pai dos banners - Sem espaçamento */
.banners {
    width: 100%;
    display: block;
    margin: 0 auto !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Forçar espaçamento na seção AO VIVO */
.ganhadores {
    margin-top: 30px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    margin-bottom: 15px !important;
}

/* Sobrescrever qualquer CSS que remova o espaçamento */
div.ganhadores {
    margin-top: 30px !important;
}

/* Garantir espaçamento após os banners */
.banners {
    margin-bottom: 30px !important;
}

/* Botões de Cadastrar e Entrar para usuários não logados */
.btn-cadastrar {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.btn-cadastrar:hover {
    background: #fff;
    color: #0e1015;
}

.btn-entrar {
    background: #00e880;
    color: #0e1015;
    border: 2px solid #00e880;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-entrar:hover {
    background: #00c26d;
    border-color: #00c26d;
}

/* Responsivo para mobile */
@media (max-width: 480px) {

    .btn-cadastrar,
    .btn-entrar {
        font-size: 12px;
        padding: 5px 10px;
    }
}

.banner-slider.single-slide {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 33.33%;
    /* 3:1 aspect ratio (1200x400) */
    overflow: hidden;
    border-radius: 12px;
}

.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(100%) scale(0.95);
    filter: blur(2px);
}

.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%) scale(0.95);
    filter: blur(2px);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.8s ease-out;
    border-radius: 12px;
}

.slide:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.slide.active:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.02);
}

.slide.image-error {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.slide.image-error::before {
    content: "Imagem não disponível";
}

/* Navigation Arrows - Ocultos (apenas automático) */
.slider-arrow {
    display: none !important;
}

/* Navigation Dots - Ocultos (apenas automático) */
.slider-controls {
    display: none !important;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
        filter: blur(5px);
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    to {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
        filter: blur(5px);
    }
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(3px);
    }

    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Loading State - Versão Suave */
.banner-slider.loading {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef, #f8f9fa);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Efeito de entrada suave para novos slides */
.slide.entering {
    animation: slideInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide.exiting {
    animation: slideOutLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Responsive Design - Mobile Centralizado */
@media (max-width: 768px) {
    .banners {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .banner-slider {
        margin: 0 auto;
        width: 100%;
        max-width: calc(100% - 20px);
        border-radius: 8px;
        left: auto;
        transform: none;
        position: relative;
    }

    .slider-wrapper {
        padding-bottom: 45%;
        /* Mais alto no mobile */
        margin: 0 auto;
        width: 100%;
    }

    /* Ocultar controles no mobile - apenas automático */
    .slider-arrow {
        display: none !important;
    }

    .slider-controls {
        display: none !important;
    }

    .slide img {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .banners {
        padding: 0 15px;
    }

    .banner-slider {
        border-radius: 6px;
        margin: 0 auto;
        width: 100%;
        max-width: calc(100% - 30px);
        left: auto;
        right: auto;
        transform: none;
        position: relative;
    }

    .slider-wrapper {
        padding-bottom: 50%;
        /* Mais alto em telas pequenas */
        width: 100%;
        margin: 0 auto;
    }

    .slide img {
        border-radius: 6px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .slider-arrow {
        background: black;
        border: 2px solid white;
    }

    .slider-dot {
        border-color: white;
        background: black;
    }

    .slider-dot.active {
        background: white;
        border-color: black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .slide,
    .slides-container,
    .slider-arrow,
    .slider-dot {
        transition: none;
    }

    .slide img {
        transition: none;
    }

    .slide:hover img {
        transform: none;
    }

    .slider-dot.active::after {
        animation: none;
    }

    .banner-slider.loading {
        animation: none;
        background: #f0f0f0;
    }
}

/* Print styles */
@media print {
    .banner-slider {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .slider-arrow,
    .slider-controls {
        display: none;
    }

    .slide {
        position: static;
        opacity: 1;
        transform: none;
    }

    .slide:not(.active) {
        display: none;
    }
}

/* Focus styles for accessibility */
.slider-arrow:focus,
.slider-dot:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.slider-arrow:focus:not(:focus-visible),
.slider-dot:focus:not(:focus-visible) {
    outline: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .banner-slider {
        background: #2c3e50;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .slide.image-error {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }

    .slider-arrow {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .slider-arrow:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Slider Simples - Tamanho otimizado baseado na slide1.png */
.banner-slider-simple {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 200px; /* Altura aumentada para mostrar mais da imagem */
    margin: 15px auto; /* Margem adequada */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: block;
}

.banner-slider-simple .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slider-simple .slide.active {
    opacity: 1;
}

.banner-slider-simple .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenche o espaço sem distorcer */
    object-position: center; /* Centraliza a imagem */
    border-radius: 12px;
    background: #0e1015; /* Fundo escuro para combinar com o tema */
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .banner-slider-simple {
        height: 150px; /* Altura aumentada para tablet */
        margin: 10px auto;
        max-width: calc(100% - 15px);
    }
}

@media (max-width: 480px) {
    .banner-slider-simple {
        height: 130px; /* Altura aumentada no mobile */
        margin: 8px auto;
        max-width: calc(100% - 15px);
        border-radius: 8px;
    }
    
    .banner-slider-simple .slide img {
        border-radius: 8px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 360px) {
    .banner-slider-simple {
        height: 110px; /* Altura aumentada para telas pequenas */
        margin: 5px auto;
        max-width: calc(100% - 10px);
        border-radius: 6px;
    }
    
    .banner-slider-simple .slide img {
        border-radius: 6px;
    }
}


/* Animação para o ícone de fogo no título */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Estilo adicional para os cards com ícone de fogo */
.raspadinha-card-modern:hover .text-amber-400 {
    animation: pulse 0.8s infinite;
    color: #ff6b35 !important;
}