/**
 * CAROUSEL STYLES - Become P1
 * Estilos para carrossel interativo
 * Versão: 1.0
 * Data: 02/02/2026
 */

/* ========================================
   CONTAINER DO CARROSSEL
   ======================================== */

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   CONTROLES DO CARROSSEL
   ======================================== */

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Botões de navegação */
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1a1a2e;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-prev,
.carousel-next {
    flex-shrink: 0;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #ffffff;
    width: 12px;
    height: 12px;
}

/* ========================================
   SEÇÃO DO AUTOR COM CARROSSEL
   ======================================== */

.author-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
    text-align: center;
}

.author-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.author-section p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.author-carousel {
    margin: 40px auto;
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   SEÇÃO DE TRANSFORMAÇÕES COM GALERIA
   ======================================== */

.transformation-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
}

.transformation-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.transformation-section > p {
    font-size: 1.1rem;
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.transformation-carousel {
    margin: 40px auto;
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   GALERIA DE TRANSFORMAÇÕES (GRID)
   ======================================== */

.transformation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.transformation-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.transformation-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.transformation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.transformation-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
    .carousel {
        max-width: 100%;
    }

    .carousel-controls {
        bottom: 15px;
        gap: 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        width: 10px;
        height: 10px;
    }

    .author-section h2,
    .transformation-section h2 {
        font-size: 2rem;
    }

    .author-section p,
    .transformation-section > p {
        font-size: 1rem;
    }

    .transformation-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        bottom: 10px;
        gap: 10px;
        padding: 0 10px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .carousel-indicator {
        width: 6px;
        height: 6px;
    }

    .carousel-indicator.active {
        width: 8px;
        height: 8px;
    }

    .author-section h2,
    .transformation-section h2 {
        font-size: 1.5rem;
    }

    .author-section p,
    .transformation-section > p {
        font-size: 0.95rem;
    }

    .transformation-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .author-section,
    .transformation-section {
        padding: 40px 15px;
    }
}

/* ========================================
   MODO ESCURO (Padrão)
   ======================================== */

:root {
    --carousel-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --carousel-text: #ffffff;
    --carousel-secondary: #b0b0b0;
    --carousel-accent: #ff6b6b;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

.carousel-btn:focus,
.carousel-indicator:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.carousel-slide[role="img"] {
    role: img;
}

/* ========================================
   IMPRESSÃO
   ======================================== */

@media print {
    .carousel-controls {
        display: none;
    }

    .carousel-slide {
        opacity: 1 !important;
        transform: none !important;
    }
}
