/* ============================================================
   CARROSSEL – 3 CARDS FIXOS (AJUSTADO PARA O CARD CENTRAL)
   ============================================================ */

.carrossel-frentes-container {
    position: relative;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carrossel-frentes-header h3 {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #00ffcc;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.carrossel-frentes {
    width: 1130px;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    /* Altura automática para acomodar o card central escalado */
    min-height: 240px;
    padding: 10px 0;
}

.carrossel-track {
    display:flex;
    gap:20px;
}

/* ========== CARDS ========== */
.card-frente-carrossel {
    flex: 0 0 350px;
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.5;
    transform: scale(0.92);
    padding: 18px 14px 10px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    /* Altura fixa para todos os cards, evitando que o central estoure */
    height: 210px;
}

.card-frente-carrossel.central {
    transform: scale(1.05);
    border-color: #00ffcc;
    box-shadow: 0 12px 50px rgba(0, 255, 204, 0.25);
    opacity: 1;
    z-index: 2;
    /* Altura aumenta junto com a escala, mas o container pai acomoda */
    height: 220px;
}

.card-frente-carrossel:hover {
    transform: translateY(-4px) scale(0.95);
    border-color: #00ffcc88;
}
.card-frente-carrossel.central:hover {
    transform: scale(1.07);
}

.card-frente-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: relative;
    flex: 1;
}

/* ========== BADGE ========== */
.destaque-badge {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ffcc;
    color: #0a0a0a;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 14px;
    border-radius: 12px 12px 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 -4px 20px rgba(0, 255, 204, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
    white-space: nowrap;
    border: 1px solid #00ffcc;
    border-bottom: none;
}
.card-frente-carrossel.central .destaque-badge {
    opacity: 1;
}

/* ========== SVG ========== */
.frente-svg-container {
    flex: 0 0 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a14;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #1a1a2e;
}
.frente-svg-container svg {
    width: 100%;
    height: 100%;
    max-width: 110px;
    max-height: 110px;
    display: block;
}

/* ========== INFO ========== */
.frente-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 1px;
}
.frente-nome {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-height: 3.9em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.frente-descricao {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #aaa;
    margin: 0;
    line-height: 1.3;
    max-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* ========== BARRA ========== */
.progresso-card {
    width: 100%;
    height: 5px;
    background: #1a1a2e;
    border-radius: 3px;
    overflow: hidden;
}
.progresso-bar {
    height: 100%;
    background: linear-gradient(90deg, #00cc88, #00ffcc);
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* ========== STATS ========== */
.frente-stats {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #aaa;
    width: 100%;
}
.frente-capitulos {
    color: #00ffcc;
}
.frente-progresso-texto {
    color: #666;
}

/* ========== BOTÕES ========== */
.carrossel-prev,
.carrossel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffcc;
    color: #fff;
    font-size: 22px;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s, transform 0.2s;
}
.carrossel-prev:hover,
.carrossel-next:hover {
    background: rgba(0, 255, 204, 0.2);
}
.carrossel-prev:active,
.carrossel-next:active {
    transform: translateY(-50%) scale(0.92);
}
.carrossel-prev {
    left: 10px;
}
.carrossel-next {
    right: 10px;
}

/* ========== DOTS ========== */
.carrossel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.carrossel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 1px solid #00ffcc44;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.carrossel-dot.active {
    background: #00ffcc;
    border-color: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.3);
}
.carrossel-dot:hover {
    background: #00ffcc66;
    transform: scale(1.2);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .carrossel-frentes {
        width: 820px;
    }
    .card-frente-carrossel {
        flex: 0 0 280px;
        height: 180px;
        padding: 14px 10px;
    }
    .card-frente-carrossel.central {
        height: 190px;
    }
    .frente-svg-container {
        flex: 0 0 90px;
        height: 90px;
    }
    .frente-nome {
        font-size: 14px;
        max-height: 3.6em;
        -webkit-line-clamp: 3;
    }
    .frente-descricao {
        font-size: 11px;
        max-height: 32px;
        -webkit-line-clamp: 2;
    }
    .carrossel-prev,
    .carrossel-next {
        font-size: 18px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .carrossel-frentes {
        width: 660px;
    }
    .card-frente-carrossel {
        flex: 0 0 220px;
        height: 150px;
        padding: 12px 8px;
    }
    .card-frente-carrossel.central {
        height: 160px;
    }
    .frente-svg-container {
        flex: 0 0 70px;
        height: 70px;
    }
    .frente-nome {
        font-size: 12px;
        max-height: 3.6em;
        -webkit-line-clamp: 3;
    }
    .frente-descricao {
        font-size: 10px;
        max-height: 28px;
        -webkit-line-clamp: 2;
    }
    .carrossel-prev,
    .carrossel-next {
        font-size: 14px;
        padding: 6px 10px;
    }
}