/**
 * IA LPs Pro - Landing Page Styles
 * Refatoração Técnica para Produção
 * Mantém 100% das funcionalidades e animações originais
 */

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.scroll-left {
    opacity: 0;
    transition: 1s !important;
    filter: blur(10px);
    transform: translate(-30px, 0);
}

.scroll-right {
    opacity: 0;
    transition: 1s !important;
    filter: blur(10px);
    transform: translate(30px, 0);
}

.scroll-top {
    opacity: 0;
    transition: 1s !important;
    filter: blur(5px);
    transform: translate(0, 30px);
}

.scroll-bottom {
    opacity: 0;
    transition: 1s !important;
    filter: blur(10px);
    transform: translate(0, -30px);
}

.scroll-escala {
    opacity: 0;
    transition: 1s !important;
    filter: blur(10px);
    transform: scale(0.8);
}

.ativo {
    opacity: 1 !important;
    transition: 1s;
    filter: blur(0px);
    transform: translate(0, 0px) scale(1) !important;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */

/* Grid Background */
.grid-bg {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ========================================
   TEXT EFFECTS
   ======================================== */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow-text {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* ========================================
   BORDERS
   ======================================== */

/* Neon Border */
.neon-border {
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2),
                inset 0 0 10px rgba(99, 102, 241, 0.1);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-red {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
}

/* ========================================
   ACCORDION
   ======================================== */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* ========================================
   SWIPER CUSTOMIZATION
   ======================================== */

.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: #6366F1;
    width: 30px;
    border-radius: 5px;
}

/* Features Swiper removido - substituído por cards estáticos
.features-swiper {
    padding-bottom: 50px;
}

.features-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.features-swiper .swiper-slide > div {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.features-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.features-swiper .swiper-pagination-bullet-active {
    background: #6366F1;
    width: 30px;
    border-radius: 5px;
}
*/

/* ========================================
   VIDEO PLAYER OVERLAYS SYSTEM
   ======================================== */

#video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

#hero-video {
    width: 100%;
    height: auto;
    background: #000;
    aspect-ratio: 16/9;
}

/* Start Overlay - Deve ser clicável */
#start-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

/* Play Button - NÃO deve interceptar clicks */
#play-button {
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: transform 0.3s;
    pointer-events: none;
}

#start-overlay:hover #play-button {
    transform: scale(1.05);
}

/* Playing Overlay - Invisível mas clicável */
#playing-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    display: none;
}

/* Pause Overlay */
#pause-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 20;
}

/* Resume Button */
#resume-button {
    width: 100%;
    max-width: 500px;
    height: auto;
    transition: transform 0.3s;
}

#pause-overlay:hover #resume-button {
    transform: scale(1.05);
}

/* ========================================
   MOBILE UX OPTIMIZATIONS
   ======================================== */

@media (max-width: 640px) {
    /* CRITICAL: Video Player Button Size */
    #play-button,
    #resume-button {
        max-width: 280px !important;
    }

    /* CRITICAL: Hero Section Height */
    section.min-h-screen {
        min-height: auto !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Hide CTA icon in hero section on mobile */
    section.min-h-screen .btn-red svg {
        display: none;
    }

    /* CRITICAL: Touch Targets (44-48px minimum) */
    .cta-button,
    button,
    .faq-item button {
        min-height: 48px !important;
        padding: 14px 28px !important;
        font-size: 16px !important;
    }

    /* IMPORTANT: Typography Hierarchy */
    h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* IMPORTANT: Countdown Timer */
    #countdown {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    #countdown > div {
        padding: 8px 4px !important;
    }

    #countdown .text-5xl,
    #countdown .text-6xl {
        font-size: 24px !important;
    }

    #countdown .text-sm,
    #countdown .text-base {
        font-size: 11px !important;
    }

    /* IMPORTANT: FAQ Touch Feedback */
    .faq-item button {
        transition: all 0.2s ease !important;
    }

    .faq-item button:active {
        transform: scale(0.98);
        background: rgba(99, 102, 241, 0.1);
    }

    /* IMPORTANT: Pricing Card Spacing */
    #comprar .bg-gradient-to-br {
        padding: 24px !important;
    }

    #comprar ul li {
        padding: 12px 0 !important;
        font-size: 15px !important;
    }

    /* IMPROVEMENT: Reduce Vertical Spacing */
    section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    section.py-20,
    section.py-32 {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    /* IMPROVEMENT: Video Performance */
    #hero-video {
        max-height: 250px;
        object-fit: cover;
    }

    /* Safe Area for iPhone X+ */
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Improve touch scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Remove hover effects on mobile */
    .hover\:scale-105:hover,
    .hover\:scale-110:hover {
        transform: none !important;
    }
}

/* ========================================
   LANDSCAPE MODE OPTIMIZATIONS
   ======================================== */

@media (max-width: 896px) and (orientation: landscape) {
    section.min-h-screen {
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    h1 {
        font-size: 32px !important;
    }

    #hero-video {
        max-height: 300px;
    }
}
