/* ============================================================================
   depoimentos.css — Estilos da Página de Depoimentos — CRC-ES
   ============================================================================ */

/* ── Honeypot anti-bot ────────────────────────────────────────────────────────
   Não usar display:none — bots detectam e ignoram. Usar posicionamento fora
   da tela, para que seja inacessível a humanos mas detectável por scrapers. */
.dep-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Seção de Introdução ────────────────────────────────────────────────────── */
.dep-intro {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5f0 100%);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--crc-primary, #003087);
    position: relative;
    overflow: hidden;
}

.dep-intro::before {
    content: '\201C';
    font-size: 9rem;
    color: var(--crc-primary, #003087);
    opacity: 0.06;
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.dep-intro-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--crc-primary, #003087);
    margin-bottom: 0.75rem;
}

.dep-intro-text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
}

/* ── Formulário de Depoimento ───────────────────────────────────────────────── */
.dep-form-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 48, 135, 0.08);
    border: 1px solid rgba(0, 48, 135, 0.08);
    margin-bottom: 3rem;
}

.dep-form-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--crc-primary, #003087);
    margin-bottom: 0.35rem;
}

.dep-form-card .dep-form-subtitle {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.dep-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.4rem;
    display: block;
}

.dep-form-input,
.dep-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    color: #2d3748;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    font-family: inherit;
}

.dep-form-input:focus,
.dep-form-textarea:focus {
    border-color: var(--crc-primary, #003087);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
    background: #fff;
}

.dep-form-input::placeholder,
.dep-form-textarea::placeholder {
    color: #a0aec0;
}

.dep-form-textarea {
    min-height: 140px;
    resize: vertical;
}

.dep-form-counter {
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: right;
    margin-top: 0.25rem;
    transition: color 0.2s;
}

.dep-form-counter.warn {
    color: #e53e3e;
}

.dep-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--crc-primary, #003087) 0%, #1a4fb5 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    letter-spacing: 0.01em;
}

.dep-form-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.3);
}

.dep-form-btn:active:not(:disabled) {
    transform: translateY(0);
}

.dep-form-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Feedback do formulário */
.dep-form-feedback {
    display: none;
    padding: 0.9rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    align-items: center;
    gap: 0.6rem;
}

.dep-form-feedback.show {
    display: flex;
}

.dep-form-feedback--success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.dep-form-feedback--error {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* ── Bloco de confirmação pós-envio ─────────────────────────────────────────── */
.dep-confirm-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    animation: dep-confirm-in 0.4s ease both;
}

@keyframes dep-confirm-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dep-confirm-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #065f46;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.dep-confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--crc-primary, #003087);
    margin-bottom: 0.5rem;
}

.dep-confirm-msg {
    color: #4a5568;
    font-size: 0.9375rem;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.dep-confirm-cooldown {
    font-size: 0.875rem;
    color: #718096;
    background: #f7f8fc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
}

.dep-confirm-cooldown strong {
    color: var(--crc-primary, #003087);
    font-variant-numeric: tabular-nums;
}

.dep-confirm-cooldown a {
    color: var(--crc-primary, #003087);
}


/* ── Seção de Listagem ──────────────────────────────────────────────────────── */
.dep-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dep-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f0f4ff, #e8f5f0);
    color: var(--crc-primary, #003087);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.875rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 48, 135, 0.12);
}

/* ── Cards de Depoimentos ──────────────────────────────────────────────────── */
.dep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dep-card {
    background: #fff;
    border-radius: 1.125rem;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 48, 135, 0.07);
    border: 1px solid rgba(0, 48, 135, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dep-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 48, 135, 0.13);
}

/* Aspas decorativas no card */
.dep-card-quote-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--crc-primary, #003087);
    opacity: 0.12;
    font-family: Georgia, serif;
    line-height: 1;
    user-select: none;
}

.dep-card-body {
    flex: 1;
}

.dep-card-text {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
    font-style: italic;
}

.dep-card-footer {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f4ff;
}

/* Avatar com iniciais */
.dep-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.dep-avatar--blue   { background: linear-gradient(135deg, #003087, #1a4fb5); }
.dep-avatar--teal   { background: linear-gradient(135deg, #0d7a6e, #14b8a6); }
.dep-avatar--indigo { background: linear-gradient(135deg, #3730a3, #6366f1); }
.dep-avatar--violet { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.dep-avatar--amber  { background: linear-gradient(135deg, #b45309, #f59e0b); }
.dep-avatar--rose   { background: linear-gradient(135deg, #be123c, #fb7185); }

.dep-author {
    flex: 1;
    min-width: 0;
}

.dep-author-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dep-author-date {
    font-size: 0.75rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Estado Vazio ────────────────────────────────────────────────────────────── */
.dep-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #a0aec0;
}

.dep-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dep-empty p {
    font-size: 1rem;
    margin: 0;
}

/* ── Paginação ─────────────────────────────────────────────────────────────── */
.dep-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.dep-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.375rem;
    height: 2.375rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    border: 1.5px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.dep-page-link:hover {
    background: #f0f4ff;
    border-color: var(--crc-primary, #003087);
    color: var(--crc-primary, #003087);
}

.dep-page-link.active {
    background: var(--crc-primary, #003087);
    border-color: var(--crc-primary, #003087);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.dep-page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Seção Home ────────────────────────────────────────────────────────────── */
.dep-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.dep-home-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dep-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.dep-home-card .dep-card-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.dep-home-card .dep-card-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.dep-home-card .dep-author-name {
    color: #fff;
}

.dep-home-card .dep-author-date {
    color: rgba(255, 255, 255, 0.6);
}

.dep-home-card .dep-card-quote-icon {
    color: #fff;
    opacity: 0.15;
}

/* ── Carrossel da Home ─────────────────────────────────────────────────────── */
.dep-carousel {
    position: relative;
}

.dep-carousel-track-wrap {
    overflow: hidden;
}

.dep-carousel-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    transition: opacity 0.42s ease;
}

/* Fade entre slides */
.dep-carousel-track.dep-carousel-fade {
    opacity: 0;
}

/* Controles: setas + dots numa linha */
.dep-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.dep-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
    flex-shrink: 0;
}

.dep-carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.dep-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Dots */
.dep-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dep-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.22s, transform 0.22s, width 0.22s;
    flex-shrink: 0;
}

.dep-carousel-dot.active {
    background: #fff;
    width: 1.5rem;
    border-radius: 0.3rem;
    transform: none;
}

.dep-carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.65);
    transform: scale(1.2);
}

/* Responsividade do track do carrossel */
@media (max-width: 991.98px) {
    .dep-carousel-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .dep-carousel-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .dep-carousel-track {
        grid-template-columns: 1fr;
    }
}

/* ── Responsividade ─────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .dep-intro {
        padding: 1.75rem 1.25rem;
    }

    .dep-form-card {
        padding: 1.5rem 1.125rem;
    }

    .dep-grid {
        grid-template-columns: 1fr;
    }

    .dep-home-grid {
        grid-template-columns: 1fr;
    }

    .dep-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
