/**
 * Biotech Hero Slider - Estilos
 * 
 * @package Biotech_Hero_Slider
 */

/* ==========================================================================
   Container Principal
   ========================================================================== */

.biotech-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

/* Modo de largura fixa (não full-width) */
.biotech-hero-slider:not(.biotech-slider-full-width) {
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================================================
   CRÍTICO: Propagação de altura para toda a hierarquia do Swiper
   O .biotech-hero-slider recebe a altura do Elementor via selectors inline.
   Precisamos garantir que TODOS os elementos internos herdem essa altura.
   ========================================================================== */

/* O container principal já recebe height via Elementor */
.biotech-hero-slider.swiper {
    display: flex;
    flex-direction: column;
}

/* Swiper wrapper DEVE ocupar 100% da altura do container pai */
.biotech-hero-slider.swiper > .swiper-wrapper {
    flex: 1 1 100%;
    height: 100% !important;
    min-height: inherit !important;
}

/* Cada slide DEVE ocupar 100% da altura do wrapper */
.biotech-hero-slider .swiper-wrapper > .swiper-slide {
    height: 100% !important;
    min-height: inherit !important;
}

/* O elemento .biotech-slide dentro do swiper-slide */
.biotech-hero-slider .swiper-slide > .biotech-slide {
    height: 100% !important;
    min-height: inherit !important;
}

/* Fallback: seletores menos específicos para compatibilidade */
.biotech-hero-slider .swiper-wrapper {
    align-items: stretch;
    height: 100% !important;
}

.biotech-hero-slider .swiper-slide {
    height: 100% !important;
}

.biotech-hero-slider .biotech-slide {
    height: 100% !important;
}

/* ==========================================================================
   Full Width Mode
   ========================================================================== */

.biotech-slider-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
    border-radius: 0;
}

/* Mantém o conteúdo interno centralizado */
.biotech-slider-full-width .biotech-slide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Slides
   ========================================================================== */

.biotech-slide {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    height: 100% !important;
    min-height: inherit !important;
    box-sizing: border-box;
}

/* Background - SEM efeito de zoom */
.biotech-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* Forçar sem zoom/transformações */
    transform: none !important;
    transition: none !important;
}

/* Garantir que slide ativo também não tenha zoom */
.biotech-slide.swiper-slide-active .biotech-slide-bg,
.biotech-slide:hover .biotech-slide-bg {
    transform: none !important;
}

/* Overlay */
.biotech-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.biotech-slide-overlay.overlay-color {
    background-color: rgba(0, 0, 0, 0.5);
}

.biotech-slide-overlay.overlay-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.biotech-slide-overlay.overlay-dark {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.biotech-slide-overlay.overlay-light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.biotech-slide-overlay.overlay-none {
    display: none;
}

/* ==========================================================================
   Container de Conteúdo
   ========================================================================== */

.biotech-slide-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

.biotech-slide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Posicionamento */
.biotech-slide-content.content-left {
    align-items: flex-start;
    text-align: left;
}

.biotech-slide-content.content-center {
    align-items: center;
    text-align: center;
}

.biotech-slide-content.content-right {
    align-items: flex-end;
    text-align: right;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.biotech-slide-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.content-center .biotech-slide-badges {
    justify-content: center;
}

.content-right .biotech-slide-badges {
    justify-content: flex-end;
}

.biotech-slide-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ==========================================================================
   Título e Subtítulo
   ========================================================================== */

.biotech-slide-title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    animation: slideInUp 0.8s ease-out;
}

.biotech-slide-subtitle {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.8s ease-out 0.1s both;
}

/* ==========================================================================
   Botões
   ========================================================================== */

.biotech-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.content-center .biotech-slide-buttons {
    justify-content: center;
}

.content-right .biotech-slide-buttons {
    justify-content: flex-end;
}

.biotech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Estilos base - cores serao sobrescritas pelo Elementor */
.biotech-btn-primary {
    color: #ffffff;
}

.biotech-btn-primary:hover {
    transform: translateY(-2px);
}

/* Estilos base - cores serao sobrescritas pelo Elementor */
.biotech-btn-secondary {
    color: #ffffff;
}

.biotech-btn-secondary:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Navegação - Setas
   ========================================================================== */

.biotech-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.biotech-slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.biotech-slider-arrow svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.biotech-slider-prev {
    left: 20px;
}

.biotech-slider-next {
    right: 20px;
}

/* ==========================================================================
   Setas - Modo Hover (aparecem apenas com mouse em cima)
   ========================================================================== */

.biotech-arrows-hover .biotech-slider-arrow {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.biotech-arrows-hover:hover .biotech-slider-arrow {
    opacity: 1;
    visibility: visible;
}

.biotech-arrows-hover:hover .biotech-slider-arrow.swiper-button-disabled {
    opacity: 0.35;
}

/* ==========================================================================
   Navegação - Dots/Pagination
   ========================================================================== */

.biotech-slider-pagination {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

/* Posições */
.biotech-slider-pagination.dots-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.biotech-slider-pagination.dots-bottom-left {
    bottom: 20px;
    left: 20px;
}

.biotech-slider-pagination.dots-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* ==========================================================================
   Estilo: Bolinhas (Bullets) - Padrão
   ========================================================================== */

.biotech-slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.biotech-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.biotech-slider-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ==========================================================================
   Estilo: Barras
   ========================================================================== */

.biotech-slider-bar {
    width: 30px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.biotech-slider-bar:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.biotech-slider-bar.active {
    background-color: #ffffff;
    width: 50px;
}

/* ==========================================================================
   Estilo: Números
   ========================================================================== */

.biotech-slider-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.biotech-slider-number:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.biotech-slider-number.active {
    color: #ffffff;
    background-color: #10b981;
    border-color: #10b981;
}

/* ==========================================================================
   Estilo: Fração
   ========================================================================== */

.biotech-slider-pagination.pagination-fraction {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    gap: 4px;
}

.biotech-slider-pagination.pagination-fraction .swiper-pagination-current {
    font-size: 28px;
    font-weight: 700;
}

.biotech-slider-pagination.pagination-fraction .swiper-pagination-total {
    font-size: 16px;
    opacity: 0.7;
}

/* ==========================================================================
   Estilo: Barra de Progresso
   ========================================================================== */

.biotech-slider-pagination.pagination-progressbar {
    position: absolute;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 4px !important;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0 !important;
    border-radius: 0;
}

.biotech-slider-pagination.pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: #10b981;
    border-radius: 0;
}

/* ==========================================================================
   Animações
   ========================================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
    .biotech-slide-title {
        font-size: 40px;
    }
    
    .biotech-slide-subtitle {
        font-size: 18px;
    }
    
    .biotech-slider-arrow {
        width: 44px;
        height: 44px;
    }
    
    .biotech-slider-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .biotech-slide-container {
        padding: 0 16px;
    }
    
    .biotech-slide-title {
        font-size: 32px;
    }
    
    .biotech-slide-subtitle {
        font-size: 16px;
    }
    
    .biotech-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Removido: flex-direction e width fixos - agora controlados pelo Elementor */
    
    .biotech-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .biotech-slider-prev {
        left: 10px;
    }
    
    .biotech-slider-next {
        right: 10px;
    }
    
    .biotech-slider-pagination {
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .biotech-slide-title {
        font-size: 28px;
    }
    
    .biotech-slide-subtitle {
        font-size: 15px;
    }
    
    .biotech-slide-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .biotech-slider-arrow {
        display: none;
    }
}

/* ==========================================================================
   Efeitos do Swiper
   ========================================================================== */

/* Fade Effect */
.biotech-hero-slider[data-effect="fade"] .swiper-slide {
    opacity: 0 !important;
}

.biotech-hero-slider[data-effect="fade"] .swiper-slide-active {
    opacity: 1 !important;
}

/* Flip Effect */
.biotech-hero-slider[data-effect="flip"] {
    perspective: 1200px;
}

/* Creative Effect */
.biotech-hero-slider[data-effect="creative"] .swiper-slide {
    transform-origin: center;
}
