/* ============================================================
   Banner de destaque da home (Views/Home/_SlideBannerDestaque.cshtml)
   Loteria com prêmio alto para ela mesma ou concurso especial. Fica
   no começo do carrossel do hero e reaproveita as classes dele
   (hero-content, hero-title, hero-buttons, btn-*). As variáveis vêm
   do slide: --bd-cor (loteria), --bd-cor-escura e --bd-cor-tema.
   Cada tema (bd-tema-*) tem o próprio enfeite, só em CSS.
   Os seletores começam por .hero-carousel para valer por cima do
   modern_layout.css, que é carregado depois.
   ============================================================ */

.hero-carousel .bd-slide {
    position: relative;
    background:
        radial-gradient(ellipse 50% 75% at 76% 48%, color-mix(in srgb, var(--bd-cor) 55%, transparent), transparent 72%),
        radial-gradient(ellipse 45% 60% at 4% 100%, color-mix(in srgb, var(--bd-cor-tema) 16%, transparent), transparent 70%);
}

.hero-carousel .bd-slide .hero-content {
    position: relative;
    z-index: 1;
}

/* ---- Texto ---- */
.hero-carousel .bd-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-carousel .bd-loteria,
.hero-carousel .bd-selo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.3;
}

.hero-carousel .bd-loteria {
    background: var(--bd-cor);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.hero-carousel .bd-selo {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--bd-cor-tema) 70%, transparent);
}

.hero-carousel .bd-titulo {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-carousel .bd-premio {
    display: flex;
    flex-direction: column;
    margin: 4px 0 10px;
}

.hero-carousel .bd-premio small {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero-carousel .bd-premio strong {
    font-size: clamp(2.2rem, 4.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(135deg, #fff1a8, #ffc93c 55%, #ff9f1c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffc93c;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.hero-carousel .bd-subtitulo {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.hero-carousel .bd-data {
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    text-transform: none;
}

.hero-carousel .bd-data i {
    color: var(--bd-cor-tema);
    margin-right: 4px;
}

.hero-carousel .bd-aviso {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Visual: ilustração da IA ou desenho do site ---- */
.hero-carousel .bd-visual {
    height: 400px;
}

.hero-carousel .bd-ilustracao {
    margin: 0;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 3 / 2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.38),
        0 0 0 4px color-mix(in srgb, var(--bd-cor) 70%, transparent),
        0 0 60px color-mix(in srgb, var(--bd-cor-tema) 35%, transparent);
    transform: rotate(-1.2deg);
}

.hero-carousel .bd-ilustracao img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .bd-desenho {
    position: relative;
    width: 320px;
    height: 320px;
}

.hero-carousel .bd-medalha {
    position: absolute;
    inset: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bd-cor) 75%, #fff), var(--bd-cor) 55%, var(--bd-cor-escura));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 70px color-mix(in srgb, var(--bd-cor-tema) 45%, transparent);
}

.hero-carousel .bd-medalha i {
    font-size: 5.5rem;
    color: var(--bd-cor-tema);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.hero-carousel .bd-bola {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff, color-mix(in srgb, var(--bd-cor) 30%, #fff) 45%, var(--bd-cor) 100%);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero-carousel .bd-bola-1 { top: 0; left: 30px; animation-delay: 0s; }
.hero-carousel .bd-bola-2 { top: 40px; right: 0; animation-delay: -1.2s; width: 44px; height: 44px; }
.hero-carousel .bd-bola-3 { bottom: 20px; right: 22px; animation-delay: -2.4s; }
.hero-carousel .bd-bola-4 { bottom: 0; left: 50px; animation-delay: -3.6s; width: 40px; height: 40px; }
.hero-carousel .bd-bola-5 { top: 140px; left: -18px; animation-delay: -4.8s; width: 36px; height: 36px; }

/* ---- Enfeites de cada tema ---- */
.hero-carousel .bd-enfeite {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Prêmio acumulado: brilho que sobe do canto */
.hero-carousel .bd-tema-acumulado .bd-enfeite {
    background: linear-gradient(200deg, transparent 55%, color-mix(in srgb, var(--bd-cor-tema) 10%, transparent));
}

/* Quina de São João: bandeirinhas no alto e o calor da fogueira embaixo */
.hero-carousel .bd-tema-quina-sao-joao .bd-enfeite {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='36' viewBox='0 0 150 36'%3E%3Cpath d='M0 4 Q75 13 150 4' stroke='%23f5deb3' stroke-width='1.5' fill='none'/%3E%3Cpolygon points='4,5 26,7.5 15,31' fill='%23e74c3c'/%3E%3Cpolygon points='34,8.5 56,9.6 45,33' fill='%23f1c40f'/%3E%3Cpolygon points='64,10 86,10 75,34' fill='%232ecc71'/%3E%3Cpolygon points='94,9.6 116,8.5 105,33' fill='%233498db'/%3E%3Cpolygon points='124,7.5 146,5 135,31' fill='%23e67e22'/%3E%3C/svg%3E") repeat-x top left / 150px 36px,
        radial-gradient(ellipse 60% 45% at 50% 105%, rgba(243, 156, 18, 0.28), transparent 70%);
}

/* As bandeirinhas ocupam o alto do slide: o texto desce um pouco (cabe na altura mínima do carrossel). */
.hero-carousel .bd-tema-quina-sao-joao .bd-texto {
    padding-top: 22px;
}

/* Mega da Virada: céu de réveillon com brilhos dourados */
.hero-carousel .bd-tema-mega-da-virada .bd-enfeite,
.hero-carousel .bd-tema-especial .bd-enfeite {
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 236, 160, 0.9) 0 2px, transparent 3px),
        radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 45% 30%, rgba(212, 175, 55, 0.9) 0 2px, transparent 3px),
        radial-gradient(circle at 62% 12%, rgba(255, 255, 255, 0.8) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 88% 18%, rgba(255, 236, 160, 0.9) 0 2.5px, transparent 3.5px),
        radial-gradient(circle at 94% 70%, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 6% 78%, rgba(212, 175, 55, 0.8) 0 2px, transparent 3px),
        radial-gradient(ellipse 70% 60% at 80% 20%, rgba(212, 175, 55, 0.18), transparent 70%);
    animation: bd-cintilar 4s ease-in-out infinite alternate;
}

.hero-carousel .bd-tema-especial .bd-enfeite {
    opacity: 0.7;
}

/* Lotofácil da Independência: faixa verde e amarela e brilho das cores do Brasil */
.hero-carousel .bd-tema-lotofacil-independencia .bd-enfeite {
    background:
        linear-gradient(90deg, #009c3b 0 40%, #ffdf00 40% 70%, #002776 70% 100%) top left / 100% 6px no-repeat,
        radial-gradient(ellipse 45% 55% at 8% 90%, rgba(0, 156, 59, 0.3), transparent 70%),
        radial-gradient(ellipse 35% 45% at 95% 10%, rgba(255, 223, 0, 0.18), transparent 70%);
}

/* Dupla de Páscoa: bolinhas em tom pastel */
.hero-carousel .bd-tema-dupla-pascoa .bd-enfeite {
    background:
        radial-gradient(circle, rgba(255, 214, 231, 0.22) 0 4px, transparent 5px) 0 0 / 46px 46px,
        radial-gradient(circle, rgba(199, 236, 255, 0.18) 0 3px, transparent 4px) 23px 23px / 46px 46px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%);
    mask-image: linear-gradient(90deg, #000, transparent 45%);
}

@keyframes bd-cintilar {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .bd-enfeite,
    .hero-carousel .bd-bola {
        animation: none;
    }
}

/* Com banner no carrossel, todos os slides ficam com a altura dele (sem pulo na troca). */
@media (min-width: 769px) {
    .hero-carousel.bd-com-banner .hero-content {
        min-height: 440px;
    }
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .hero-carousel .bd-etiquetas {
        justify-content: center;
    }

    .hero-carousel .bd-titulo {
        font-size: var(--font-size-2xl);
    }

    .hero-carousel .bd-premio {
        align-items: center;
    }

    .hero-carousel .bd-slide .hero-content {
        gap: var(--spacing-lg);
    }

    .hero-carousel .bd-visual {
        height: auto;
    }

    .hero-carousel .bd-ilustracao {
        max-width: 420px;
        margin: 0 auto;
        transform: none;
    }

    .hero-carousel .bd-desenho {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .hero-carousel .bd-medalha {
        inset: 38px;
    }

    .hero-carousel .bd-medalha i {
        font-size: 4rem;
    }

    .hero-carousel .bd-tema-quina-sao-joao .bd-enfeite {
        background-size: 110px 27px, auto;
    }
}
