/* ========================================
   HERO SLIDER COM VÍDEOS - ESTILOS
   ======================================== */

/* Container principal do slider */
.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden;
}

/* Wrapper do slider */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* Track do slider (contém todos os slides) */
.hero-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

/* Cada slide individual */
.hero-slide {
    flex: 0 0 calc(50% - 10px); /* 2 slides por vez em desktop */
    min-width: calc(50% - 10px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Badge "EM DESTAQUE" */
.hero-slide-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFD700;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Badge para vídeos */
.hero-slide-video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slide-video-badge svg {
    width: 14px;
    height: 14px;
}

/* Imagem/Vídeo do slide */
.hero-slide-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slide:hover .hero-slide-image img {
    transform: scale(1.1);
}

/* Elemento de vídeo */
.hero-slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    background: #000;
}

.hero-slide-video.playing {
    display: block;
}

/* Overlay para vídeos */
.hero-slide-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.hero-slide-image:hover .hero-slide-video-overlay {
    opacity: 1;
}

/* Ícone de play */
.hero-slide-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slide-image:hover .hero-slide-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-slide-play-icon svg {
    width: 24px;
    height: 24px;
    fill: #667eea;
    margin-left: 4px;
}

/* Conteúdo do slide */
.hero-slide-content {
    padding: 24px;
}

.hero-slide-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.hero-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.hero-slide-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Controles de navegação */
.hero-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-slider-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-slider-button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: scale(1.1);
}

.hero-slider-button:hover svg {
    stroke: white;
}

.hero-slider-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-slider-button svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    transition: stroke 0.3s ease;
}

/* Indicadores de página */
.hero-slider-dots {
    display: flex;
    gap: 8px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   RESPONSIVO - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .hero-slider-container {
        padding: 20px 10px;
    }

    .hero-slide {
        flex: 0 0 100%; /* 1 slide por vez em mobile */
        min-width: 100%;
    }

    .hero-slider-track {
        gap: 0;
    }

    .hero-slide-image {
        height: 220px;
    }

    .hero-slide-content {
        padding: 20px;
    }

    .hero-slide-title {
        font-size: 18px;
    }

    .hero-slide-description {
        font-size: 13px;
    }

    .hero-slider-button {
        width: 40px;
        height: 40px;
    }

    .hero-slider-button svg {
        width: 16px;
        height: 16px;
    }

    .hero-slide-play-icon {
        width: 50px;
        height: 50px;
    }

    .hero-slide-play-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Desabilitar hover em mobile para melhor performance */
    .hero-slide-image:hover .hero-slide-video-overlay {
        opacity: 0;
    }

    .hero-slide-image:hover .hero-slide-play-icon {
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVO - TABLET
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

