@layer components {
/**
 * Hero Carousel Styles
 * Estilos do componente de carousel da Home.
 * Anúncios extraídos para components/ads.css.
 * Anúncios extraídos para components/ads.css.
 * Legados admin removidos; manter este arquivo focado no carousel
 */

/* ================================================
   HERO CAROUSEL
   Mesmas dimensões do .highlight-section original
   ================================================ */

.hero-carousel-section {
    position: relative;
    margin: 0 auto 32px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: 0 8px 30px rgb(0 0 0 / 50%);
    width: calc(100% - 16px);
    max-width: none;
    border-radius: 24px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 21 / 9;
    background: #000;
    overflow: hidden;
}

@media (width <= 1200px) {
    .hero-carousel {
        aspect-ratio: 16 / 9;
    }
}

@media (width <= 968px) {
    .hero-carousel {
        aspect-ratio: 16 / 10;
    }
}

@media (width <= 640px) {
    .hero-carousel-section {
        margin-bottom: 24px;
    }

    .hero-carousel {
        aspect-ratio: 16 / 11;
    }
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-decoration: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-slide picture {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Ken Burns Effect - Zoom lento cinematográfico */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

/* Ken Burns ativo apenas no slide visível */
.carousel-slide.active .carousel-image {
    animation: kenBurns 10s ease-out forwards;
}

/* Hover adiciona zoom extra sutil */
.carousel-slide:hover .carousel-image {
    transform: scale(1.02);
    animation-play-state: paused;

    /* Pausa Ken Burns no hover */
}

/* Caption (opcional, se habilitado) */
.carousel-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide-inner picture {
    width: 100%;
    height: 100%;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.5rem 2rem;
    background: linear-gradient(transparent, rgb(0 0 0 / 85%));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.carousel-caption--highlight {
    padding: 2rem;
}

.carousel-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color, #6366f1);
    color: white;
}

.carousel-badge--ad {
    background: rgb(255 193 7 / 90%);
    color: #000;
}

.carousel-badge--short {
    background: #ef4444;
}

.carousel-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgb(0 0 0 / 50%);
}

.carousel-channel,
.carousel-views {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-views {
    font-size: 0.85rem;
    opacity: 0.8;
    color: rgb(255 255 255 / 85%);
}

.carousel-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

@media (width <= 768px) {
    .carousel-caption {
        padding: 1rem 1rem 1.5rem;
    }

    .carousel-title {
        font-size: 1rem;
    }

    .carousel-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgb(0 0 0 / 50%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: rgb(0 0 0 / 80%);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

@media (width <= 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
}

/* Indicadores (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgb(255 255 255 / 50%);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.indicator-dot:hover {
    background: rgb(255 255 255 / 80%);
}

.indicator-dot.active {
    background: var(--primary-color, #6366f1);
    transform: scale(1.2);
}

.indicator-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Play overlay sempre visível */
.carousel-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 15%);

    /* Mais sutil */
    opacity: 1;
    transition: background 0.3s ease;
}

.carousel-slide:hover .carousel-play-overlay {
    background: rgb(0 0 0 / 30%);
}

.carousel-play-overlay svg {
    width: 64px;
    height: 64px;

    /* Premium Glass Button */
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-slide:hover .carousel-play-overlay svg {
    transform: scale(1.1);
    background: rgb(255 255 255 / 20%);
    box-shadow: 0 8px 30px rgb(0 0 0 / 40%);
    border-color: rgb(255 255 255 / 40%);
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (width <= 480px) {
    .hero-carousel-section {
        margin: 0 0 1.5rem;
        border-radius: 0;
    }

    .carousel-caption {
        font-size: 0.9rem;
        padding: 1rem;
    }
}
}
