/* Deeliv Carousel - Versão Otimizada */

/* Variáveis CSS para fácil customização */
:root {
    --carousel-transition-duration: 0.8s;
    --carousel-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --carousel-border-radius: 20px;
    --carousel-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    --carousel-shadow-hover: 0 35px 100px rgba(0, 0, 0, 0.4);
    
    /* Cores */
    --carousel-bg: #1a1a1a;
    --carousel-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    --carousel-nav-bg: rgba(255, 255, 255, 0.9);
    --carousel-nav-hover: rgba(255, 255, 255, 1);
    --carousel-indicator-bg: rgba(255, 255, 255, 0.5);
    --carousel-indicator-active: #ff6b35;
    
    /* Tamanhos */
    --carousel-height-desktop: 80vh;
    --carousel-height-tablet: 70vh;
    --carousel-height-mobile: 60vh;
    --carousel-min-height: 400px;
    --carousel-max-width: 1400px;
    --carousel-padding: 20px;
}

/* Container principal do carrossel */
.deeliv-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--carousel-bg);
}

/* Container interno */
.carousel-container {
    position: relative;
    height: 100%;
    min-height: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--carousel-padding);
    border-radius: var(--carousel-border-radius);
}

/* Overlay de gradiente */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--carousel-overlay);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--carousel-border-radius);
}

/* Elementos flutuantes decorativos */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Container dos slides */
.slides-wrapper {
    position: relative;
    width: 100%;
    height: var(--carousel-height-desktop);
    min-height: var(--carousel-min-height);
    overflow: hidden;
    border-radius: var(--carousel-border-radius);
    box-shadow: var(--carousel-shadow);
    transition: box-shadow 0.3s ease;
}

.slides-wrapper:hover {
    box-shadow: var(--carousel-shadow-hover);
}

/* Slides individuais */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: 
        opacity var(--carousel-transition-duration) var(--carousel-transition-timing),
        transform var(--carousel-transition-duration) var(--carousel-transition-timing);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--carousel-overlay);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide.next {
    transform: translateX(100%);
}

/* Conteúdo do slide */
.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    gap: 60px;
    z-index: 2;
    position: relative;
}

/* Texto do slide */
.slide-text {
    flex: 1;
    max-width: 500px;
}

.slide-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-title .highlight-orange {
    color: var(--carousel-indicator-active);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.slide-description p {
    margin-bottom: 8px;
}

/* CTA do slide */
.slide-cta {
    margin-top: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--carousel-indicator-active), #f7931e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

/* Visual do slide */
.slide-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.visual-mockup,
.visual-mockup-tablet {
    position: relative;
    max-width: 100%;
    height: auto;
}

.mockup-image {
    width: 100%;
    height: auto;
    max-width: 580px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    transform: scale(1.08);
}

.mockup-image:hover {
    transform: scale(1.05);
}

/* Badges de funcionalidades */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-badge i {
    width: 16px;
    height: 16px;
}

/* Navegação do carrossel */
.carousel-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

/* Botões de navegação */
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--carousel-nav-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: var(--carousel-nav-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-button:active {
    transform: translateY(0);
}

.nav-button i {
    width: 24px;
    height: 24px;
    color: #333;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Indicadores */
.slide-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--carousel-indicator-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--carousel-indicator-active);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--carousel-indicator-active);
    transform: scale(1.2);
}

.indicator.active::before {
    width: 100%;
    height: 100%;
}

.indicator:hover {
    transform: scale(1.1);
    background: rgba(255, 107, 53, 0.7);
}

/* Animações de entrada */
[data-animate="slideUp"] {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividade */

/* Tablets */
@media (max-width: 1024px) {
    .slides-wrapper {
        height: var(--carousel-height-tablet);
    }
    
    .slide-content {
        /* Mantém layout horizontal */
        gap: 30px;
        padding: 0 20px;
    }
    
    .slide-text {
        max-width: 450px;
    }
    
    .slide-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .slide-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .mockup-image {
        max-width: 480px;
        transform: scale(1.08);
    }
    
    .carousel-navigation {
        bottom: 20px;
        gap: 20px;
    }
    
    .nav-button {
        width: 45px;
        height: 45px;
    }
    
    .nav-button i {
        width: 20px;
        height: 20px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    :root {
        --carousel-padding: 15px;
        --carousel-border-radius: 15px;
    }
    
    .slides-wrapper {
        height: var(--carousel-height-mobile);
        min-height: 450px;
    }
    
    .slide-content {
        /* Mantém layout horizontal - FORÇADO */
        flex-direction: row !important;
        gap: 12px;
        padding: 0 12px;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
    }
    
    .slide-text {
        flex: 0 0 44% !important;
        max-width: 44% !important;
        text-align: left !important;
    }
    
    .slide-visual {
        flex: 0 0 52% !important;
        max-width: 52% !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .slide-title {
        font-size: clamp(1.3rem, 5.5vw, 2.2rem);
        margin-bottom: 10px;
        line-height: 1;
    }
    
    .slide-description {
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .slide-description p {
        margin-bottom: 3px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .mockup-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        transform: scale(1.3);
    }
    
    .feature-badges {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 8px;
    }
    
    .feature-badge {
        padding: 5px 8px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .feature-badge i {
        width: 10px;
        height: 10px;
    }
    
    .carousel-navigation {
        bottom: 15px;
        gap: 16px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }
    
    .nav-button i {
        width: 18px;
        height: 18px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slide-indicators {
        gap: 8px;
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    .slides-wrapper {
        min-height: 400px;
    }
    
    .slide-content {
        flex-direction: row !important;
        gap: 8px;
        padding: 0 8px;
        text-align: left !important;
    }
    
    .slide-text {
        flex: 0 0 46% !important;
        max-width: 46% !important;
        text-align: left !important;
    }
    
    .slide-visual {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
    }
    
    .slide-title {
        font-size: clamp(1.1rem, 4.5vw, 1.8rem);
        margin-bottom: 6px;
    }
    
    .slide-description {
        font-size: clamp(0.6rem, 1.8vw, 0.75rem);
        margin-bottom: 8px;
    }
    
    .slide-description p {
        margin-bottom: 2px;
    }
    
    .cta-button {
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    
    .mockup-image {
        max-width: 100%;
        width: 100%;
        transform: scale(1.25);
    }
    
    .feature-badges {
        gap: 3px;
        margin-top: 6px;
    }
    
    .feature-badge {
        padding: 3px 6px;
        font-size: 0.55rem;
    }
    
    .feature-badge i {
        width: 8px;
        height: 8px;
    }
    
    .carousel-navigation {
        bottom: 10px;
        gap: 12px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
    }
    
    .nav-button i {
        width: 16px;
        height: 16px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --carousel-bg: #1a1a1a;
        --carousel-nav-bg: rgba(255, 255, 255, 0.1);
        --carousel-nav-hover: rgba(255, 255, 255, 0.2);
        --carousel-indicator-bg: rgba(255, 255, 255, 0.3);
    }
    
    .nav-button i {
        color: #ffffff;
    }
}

/* Redução de movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements::before,
    .floating-elements::after {
        animation: none;
    }
}

/* Melhorias de performance */
.slide,
.nav-button,
.indicator,
.mockup-image {
    will-change: transform;
}

/* Otimização para impressão */
@media print {
    .deeliv-carousel {
        display: none;
    }
}


