/* ====================================
   CARROSSEL DOS DEPOIMENTOS ("pódio") — criação da mentora, restaurado em 2026-11 a pedido dela.
   Script: wwwroot/effects/depoimentosCarousel.js (loop infinito com cópias, arrastar, setas e pontos).
   O depoimento completo abre no <dialog> nativo (js/site.js), sem <img src="">.
   ==================================== */

/* ====================================
   PODIUM CAROUSEL - INFINITE SLIDER
   ==================================== */

/* Viewport - the visible window (overflow hidden) */
.podium-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
    /* Height will be locked by JS after images load */
}

/* Track - the ONLY element that receives transform */
.podium-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    align-items: flex-start; /* Prevent vertical stretching */
    /* Transition is controlled by JS */
}

/* ====================================
   CARD STYLES
   ==================================== */
.podium-card {
    flex: 0 0 auto;
    width: 280px;
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    transform: scale(0.85);
    opacity: 0.5;
    filter: brightness(0.7);
}

/* Active/Center card - applied via JS */
.podium-card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(250, 204, 21, 0.15);
}

/* ====================================
   PHOTO STYLES
   ==================================== */
.podium-photo-container {
    position: relative;
    padding: 1.25rem 1.25rem 0;
}

.podium-photo-frame {
    aspect-ratio: 3 / 4;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(100, 116, 139, 0.3);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.podium-card.is-active .podium-photo-frame {
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2);
}

.podium-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.podium-card.is-active:hover .podium-photo {
    transform: scale(1.05);
}

/* ====================================
   CROWN BADGE
   ==================================== */
.podium-crown {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
    transition: transform 0.4s ease;
    color: #1e293b;
}

.podium-card.is-active .podium-crown {
    transform: translateX(-50%) scale(1);
    animation: crown-glow 2s ease-in-out infinite;
}

@keyframes crown-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(250, 204, 21, 0.7); }
}

/* ====================================
   CONTENT STYLES
   ==================================== */
.podium-content {
    padding: 1.25rem;
    text-align: center;
}

.podium-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    transition: font-size 0.4s ease;
}

.podium-card.is-active .podium-name {
    font-size: 1.25rem;
}

.podium-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    transition: opacity 0.4s ease;
}

.podium-card:not(.is-active) .podium-title {
    opacity: 0.7;
}

.podium-stars {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.podium-card:not(.is-active) .podium-stars {
    transform: scale(0.85);
    opacity: 0.7;
}

/* Quote - visible only on active card */
/* Uses fixed height reserve to prevent layout shift */
.podium-quote {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    /* Reserve space: always maintain height, use opacity for show/hide */
    min-height: 4.5rem; /* ~3 lines of text */
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.podium-card.is-active .podium-quote {
    opacity: 1;
    margin-top: 0.5rem;
}

/* ====================================
   NAVIGATION BUTTONS
   ==================================== */
.podium-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    color: inherit;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(250, 204, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.podium-nav-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(250, 204, 21, 0.5);
}

.podium-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.podium-nav-prev {
    left: 0.5rem;
}

.podium-nav-next {
    right: 0.5rem;
}

/* ====================================
   INDICATORS
   ==================================== */
.podium-indicators {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 1.5rem;
}

/* Área de toque de 44x44 px com o mesmo ponto de 12 px: o padding fica transparente (background-clip: content-box)
   e o raio de 22 px deixa o conteúdo com 6 px de raio (ponto redondo; pílula quando ativo). */
.podium-indicator {
    box-sizing: content-box;
    width: 0.75rem;
    height: 0.75rem;
    padding: 16px;
    border-radius: 22px;
    background: rgba(148, 163, 184, 0.45);
    background-clip: content-box;
    border: none;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.podium-indicator:hover {
    background: rgba(148, 163, 184, 0.7);
    background-clip: content-box;
}

.podium-indicator.is-active {
    width: 2rem;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    background-clip: content-box;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */
@media (min-width: 768px) {
    .podium-track {
        gap: 2rem;
    }
    
    .podium-card {
        width: 320px;
    }
    
    .podium-nav-prev {
        left: 1rem;
    }
    
    .podium-nav-next {
        right: 1rem;
    }
}

@media (min-width: 1024px) {
    .podium-track {
        gap: 2.5rem;
    }
    
    .podium-card {
        width: 340px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .podium-card {
        width: 240px;
    }
    
    .podium-track {
        gap: 1rem;
    }
    
    .podium-content {
        padding: 1rem;
    }
    
    .podium-quote {
        font-size: 0.8rem;
    }
    
    .podium-nav-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* ====================================
   TOUCH/DRAG SUPPORT
   ==================================== */
.podium-viewport {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.podium-track.is-dragging {
    cursor: grabbing;
}

.podium-track:not(.is-dragging) {
    cursor: grab;
}

/* ====================================
   READ MORE BUTTON
   ==================================== */
.podium-read-more {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    background: transparent;
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.podium-card.is-active .podium-read-more {
    display: inline-flex;
}

.podium-read-more:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.7);
}

/* ====================================
   SEM JAVASCRIPT: todos os cards visíveis por inteiro e rolagem horizontal
   ==================================== */
html:not(.js) .podium-viewport {
    overflow-x: auto;
}

html:not(.js) .podium-card {
    transform: none;
    opacity: 1;
    filter: none;
}

html:not(.js) .podium-card .podium-quote {
    opacity: 1;
}

html:not(.js) .podium-nav-btn,
html:not(.js) .podium-indicators {
    display: none;
}

/* ====================================
   REDUÇÃO DE MOVIMENTO: sem brilho pulsante nem transições
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .podium-card,
    .podium-photo-frame,
    .podium-photo,
    .podium-crown,
    .podium-name,
    .podium-quote,
    .podium-indicator,
    .podium-nav-btn {
        transition: none !important;
    }

    .podium-card.is-active .podium-crown {
        animation: none !important;
    }

    .podium-card.is-active:hover .podium-photo {
        transform: none;
    }
}
