/**
 * Estilos para a Seção P1LED
 * 
 * Este arquivo contém todos os estilos CSS para o widget
 * de seção P1LED personalizado do Elementor
 */

/* Variáveis CSS personalizadas */
:root {
    --color-surface-base-900: #121926;
    --color-text-brand-primary: #0099D6;
    --color-text-base-minor-alt: #CDD5DF;
    --color-text-base-major: #121926;
    --color-surface-brand-primary-medium: #00AEEF;
    --font-size-6xl: 56px;
    --font-size-xl: 20px;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --font-weight-regular: 400;
    --family-highlight: 'Poppins', sans-serif;
    --family-base: 'Inter', sans-serif;
    --spacing-xl: 16px;
    --spacing-3xl: 24px;
    --spacing-md: 8px;
    --border-radius-full: 9999px;
}

/* Container principal da seção */
.leds-p1led-section {
    display: flex;
    padding: 96px 64px;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    align-self: stretch;
    background: var(--color-surface-base-900, #121926);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Container interno com wrapper padrão do projeto */
.leds-p1led-section .leds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    align-self: stretch;
    width: 1312px !important;
}

/* Título principal */
.leds-p1led-section .section-title {
    color: var(--color-text-brand-primary, #0099D6);
    text-align: center;
    font-family: 'Mont', sans-serif;
    font-size: var(--font-size-6xl, 56px);
    font-style: normal;
    font-weight: var(--font-weight-bold, 700);
    line-height: 100%;
    margin: 0;
}
.leds-p1led-section .section-title p {
    margin: 0 !important;
}

/* Subtítulo */
.leds-p1led-section .section-subtitle {
    color: var(--color-text-base-minor-alt, #CDD5DF);
    text-align: center;
    font-family: var(--family-base, 'Inter', sans-serif);
    font-size: var(--font-size-xl, 20px);
    font-style: normal;
    font-weight: var(--font-weight-regular, 400);
    line-height: 132%;
    margin: 0;
    max-width: 800px;
}

/* Carousel de logos */
.leds-p1led-section .logos-carousel-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
}

.leds-p1led-section .logos-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: scroll 30s linear infinite;
    padding: 20px 0;
}

.leds-p1led-section .logos-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Item individual do logo */
.leds-p1led-section .logo-item {
    display: flex;
    width: 88px;
    height: 88px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leds-p1led-section .logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leds-p1led-section .logo-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.leds-p1led-section .logo-item:hover::before {
    opacity: 1;
}

/* Imagem do logo */
.leds-p1led-section .logo-item img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Container da imagem responsiva */
.leds-p1led-section .image-container {
    width: 100%;
    position: relative;
    margin: 32px 0;
    border-radius: 16px;
}

/* Imagem desktop */
.leds-p1led-section .desktop-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.leds-p1led-section .desktop-image:hover {
    transform: scale(1.02);
}

/* Imagem mobile */
.leds-p1led-section .mobile-image {
    width: 100%;
    height: auto;
    display: none;
    transition: transform 0.3s ease;
}

.leds-p1led-section .mobile-image:hover {
    transform: scale(1.02);
}

/* Botão de call-to-action */
.leds-p1led-section .cta-button {
    display: flex;
    padding: var(--spacing-xl, 16px) var(--spacing-3xl, 24px);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md, 8px);
    border-radius: var(--border-radius-full, 9999px);
    background: var(--color-surface-brand-primary-medium, #00AEEF);
    color: var(--color-text-base-major, #121926);
    font-family: var(--family-highlight, 'Poppins', sans-serif);
    font-size: var(--font-size-xl, 20px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: 100%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
    position: relative;
    overflow: hidden;
}

.leds-p1led-section .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.leds-p1led-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.3);
    text-decoration: none;
    color: var(--color-text-base-major, #121926);
}

.leds-p1led-section .cta-button:hover::before {
    left: 100%;
}

.leds-p1led-section .cta-button:focus {
    outline: 2px solid var(--color-text-brand-primary, #0099D6);
    outline-offset: 2px;
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leds-p1led-section .section-title {
    animation: fadeInUp 0.8s ease-out;
}

.leds-p1led-section .section-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.leds-p1led-section .logos-carousel {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.leds-p1led-section .logo-item {
    animation: slideInFromLeft 0.6s ease-out both;
}

.leds-p1led-section .logo-item:nth-child(1) { animation-delay: 0.6s; }
.leds-p1led-section .logo-item:nth-child(2) { animation-delay: 0.7s; }
.leds-p1led-section .logo-item:nth-child(3) { animation-delay: 0.8s; }
.leds-p1led-section .logo-item:nth-child(4) { animation-delay: 0.9s; }
.leds-p1led-section .logo-item:nth-child(5) { animation-delay: 1.0s; }
.leds-p1led-section .logo-item:nth-child(6) { animation-delay: 1.1s; }
.leds-p1led-section .logo-item:nth-child(7) { animation-delay: 1.2s; }
.leds-p1led-section .logo-item:nth-child(8) { animation-delay: 1.3s; }

.leds-p1led-section .image-container {
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.leds-p1led-section .cta-button {
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

/* Responsividade - Tablet */
@media (max-width: 1024px) {
    .leds-p1led-section {
        padding: 80px 48px;
    }
    
    .leds-p1led-section .leds-container {
        gap: 56px;
    }
    
    .leds-p1led-section .section-title {
        font-size: 48px;
    }

    .leds-p1led-section .section-subtitle {
        font-size: 18px;
    }
    
    .leds-p1led-section .logos-carousel {
        gap: 18px;
        animation-duration: 28s;
    }
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    .leds-p1led-section {
        padding: 64px 32px !important;
    }
    
    .leds-p1led-section .leds-container {
        gap: 48px;
    }
    
    .leds-p1led-section .section-title {
        font-size: 40px;
    }
    
    .leds-p1led-section .section-subtitle {
        font-size: 18px;
    }
    
    .leds-p1led-section .logos-carousel {
        gap: 16px;
        animation-duration: 25s;
    }
    
    .leds-p1led-section .desktop-image {
        display: none;
    }
    
    .leds-p1led-section .mobile-image {
        display: block;
    }
    
    .leds-p1led-section .cta-button {
        font-size: 18px;
        padding: 14px 28px;
    }
}

/* Responsividade - Mobile pequeno */
@media (max-width: 480px) {
    .leds-p1led-section {
        padding: 48px 24px !important;
    }
    
    .leds-p1led-section .leds-container {
        gap: 32px;
    }
    
    .leds-p1led-section .section-title {
        font-size: 32px;
    }
    
    .leds-p1led-section .section-subtitle {
        font-size: 16px;
    }
    
    .leds-p1led-section .logos-carousel {
        gap: 12px;
        animation-duration: 20s;
    }
    
    .leds-p1led-section .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* Dark mode removido */

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .leds-p1led-section * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .leds-p1led-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .leds-p1led-section .cta-button {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    .leds-p1led-section .logo-item {
        background: #f5f5f5 !important;
    }
    
    .leds-p1led-section .logo-item img {
        filter: none !important;
    }
}
