/* ==========================================
   TECNOLOGIA.CSS - ESTILOS DA PÁGINA DE TECNOLOGIA
   ========================================== */

/* ----- TECH SECTION ----- */
.tech-section {
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
}

.tech-section:last-of-type {
    border-bottom: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.tech-grid.reverse {
    direction: rtl;
}

.tech-grid.reverse .tech-content {
    direction: ltr;
}

.tech-grid.reverse .tech-visual {
    direction: ltr;
}

/* ----- TECH CONTENT ----- */
.tech-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-4);
}

.tech-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
    color: var(--color-text-secondary);
}

.tech-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.tech-features li {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.tech-stat {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.tech-stat .stat-number {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    display: block;
}

.tech-stat .stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ----- TECH VISUAL ----- */
.tech-visual {
    position: relative;
}

.tech-animation {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.animation-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Efeitos visuais para cada tecnologia */
.water-effect {
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.3), transparent 70%);
    border-radius: 50%;
    animation: waterPulse 3s ease-in-out infinite;
}

.tire-effect {
    width: 60%;
    height: 60%;
    border: 8px solid var(--color-border);
    border-radius: 50%;
    position: absolute;
    animation: tireSpin 10s linear infinite;
}

.brake-effect {
    width: 70%;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: brakePulse 1.5s ease-in-out infinite;
}

.distance-effect {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.distance-effect .bar {
    width: 60px;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
}

.distance-effect .bar.active {
    background: var(--color-primary);
    width: 40px;
}

.grip-effect {
    width: 60%;
    height: 60%;
    border: 6px solid var(--color-primary);
    border-radius: 50%;
    animation: gripPulse 2s ease-in-out infinite;
}

.curve-effect {
    width: 70%;
    height: 70%;
    border: 4px dashed var(--color-border);
    border-radius: 50%;
    position: absolute;
}

.fuel-effect {
    font-size: 48px;
    animation: fuelBounce 2s ease-in-out infinite;
}

.efficiency-effect {
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.2), transparent 70%);
    border-radius: 50%;
    animation: efficiencyPulse 2s ease-in-out infinite;
}

/* ----- ANIMAÇÕES ----- */
@keyframes waterPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes tireSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes brakePulse {
    0%, 100% { transform: scaleX(1); opacity: 0.5; }
    50% { transform: scaleX(1.5); opacity: 1; }
}

@keyframes gripPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes fuelBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes efficiencyPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ----- COMPARISON ----- */
.tech-comparison {
    background: var(--color-bg-secondary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
}

.comparison-card h4 {
    text-align: center;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-xl);
}

.comparison-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.comparison-card ul li {
    font-size: var(--font-size-base);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.comparison-card:first-child {
    border-color: var(--color-primary);
}

.comparison-card:first-child ul li {
    color: var(--color-text-primary);
}

/* ----- RESPONSIVIDADE ----- */
@media (max-width: 1024px) {
    .tech-grid {
        gap: var(--space-8);
    }
    
    .tech-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tech-grid,
    .tech-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-6);
    }

    .tech-grid.reverse .tech-content {
        direction: ltr;
    }

    .tech-grid.reverse .tech-visual {
        direction: ltr;
    }

    .tech-content h2 {
        font-size: var(--font-size-3xl);
    }

    .tech-stats {
        grid-template-columns: 1fr 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .comparison-card {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .tech-stats {
        grid-template-columns: 1fr;
    }

    .tech-stat .stat-number {
        font-size: var(--font-size-2xl);
    }
}