/**
 * Apollo Depoimentos — Testimonial Card Design
 *
 * Grid layout: avatar | content (text + author + groups)
 * Dark theme compatible (inherits Apollo CDN vars).
 *
 * @package Apollo\Comment
 */

/* ─── Section ────────────────────────────────────────────────── */
.depoimentos-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 0;
}

.depoimentos-header {
    margin-bottom: 20px;
}

.depoimentos-title {
    font-family: var(--ff-display, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.depoimentos-title i {
    font-size: 20px;
    opacity: 0.6;
}

.depoimentos-count {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.5;
}

/* ─── Empty state ────────────────────────────────────────────── */
.depoimentos-empty {
    text-align: center;
    padding: 48px 24px;
    opacity: 0.5;
}

.depoimentos-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.depoimentos-empty p {
    font-size: 14px;
    font-family: var(--ff-mono, monospace);
}

/* ─── Card (the user-specified testimonial layout) ───────────── */
.depoimento-card {
    max-width: 800px;
    margin: 0 auto 16px;
    background: var(--surface-1, #f5f5f5);
    border-radius: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 20px;
    position: relative;
    padding: 0 24px 0 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.depoimento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(var(--rgb-d),0.12);
}

/* Pending state */
.depoimento--pending {
    opacity: 0.6;
    border: 1px dashed var(--border, rgba(var(--rgb-t),0.1));
}

/* ─── Avatar ─────────────────────────────────────────────────── */
.depoimento-avatar {
    display: block;
}

.depoimento-avatar-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
    display: block;
}

.depoimento-avatar a {
    display: block;
}

/* ─── Body / Content ─────────────────────────────────────────── */
.depoimento-body {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    gap: 12px;
}

.depoimento-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary, #333);
    word-break: break-word;
}

/* ─── Meta: author + badge + groups ──────────────────────────── */
.depoimento-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.depoimento-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #333);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.depoimento-author a {
    color: inherit;
    text-decoration: none;
}

.depoimento-author a:hover {
    text-decoration: underline;
}

/* Badge icon (from apollo-membership) */
.depoimento-author .apollo-badge {
    font-size: 14px;
    vertical-align: middle;
}

.depoimento-groups {
    font-size: 12px;
    color: var(--text-secondary, #c1c1c1);
    font-family: var(--ff-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.depoimento-date {
    font-size: 11px;
    color: var(--text-muted, #999);
    font-family: var(--ff-mono, monospace);
}

/* ─── Pending notice ─────────────────────────────────────────── */
.depoimento-pending-notice {
    font-size: 12px;
    color: var(--warning, #ff9800);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Reply link ─────────────────────────────────────────────── */
.depoimento-reply {
    margin-top: 4px;
}

.depoimento-reply a {
    font-size: 12px;
    color: var(--accent, #00bcd4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ff-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.depoimento-reply a:hover {
    text-decoration: underline;
}

/* ─── Form ───────────────────────────────────────────────────── */
.depoimento-form-wrapper {
    max-width: 800px;
    margin: 0 auto 32px;
}

.depoimento-form-card {
    background: var(--surface-1, #f5f5f5);
    border-radius: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 20px;
    padding: 0 24px 0 0;
    overflow: hidden;
}

.depoimento-form-card .depoimento-avatar-img {
    height: 100%;
    min-height: 140px;
    border-radius: 16px 0 0 16px;
}

.depoimento-form-body {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.depoimento-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid var(--border, rgba(var(--rgb-t),0.1));
    border-radius: 12px;
    background: var(--surface-2, rgba(var(--rgb-d),0.05));
    color: var(--text-primary, #333);
    font-size: 14px;
    line-height: 1.5;
    font-family: var(--ff-body, sans-serif);
    resize: vertical;
    transition: border-color 0.2s;
}

.depoimento-textarea:focus {
    outline: none;
    border-color: var(--accent, #00bcd4);
}

.depoimento-textarea::placeholder {
    color: var(--text-muted, #999);
}

.depoimento-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.depoimento-char-count {
    font-size: 11px;
    color: var(--text-muted, #999);
    font-family: var(--ff-mono, monospace);
}

.depoimento-submit-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 100px;
    background: var(--accent, #00bcd4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.1s;
    font-family: var(--ff-body, sans-serif);
}

.depoimento-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.02);
}

.depoimento-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Login prompt ───────────────────────────────────────────── */
.depoimento-login-prompt {
    background: var(--surface-1, #f5f5f5);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.depoimento-login-prompt i {
    font-size: 28px;
    opacity: 0.4;
}

.depoimento-login-prompt p {
    font-size: 14px;
    color: var(--text-secondary, #999);
}

.depoimento-login-prompt a {
    color: var(--accent, #00bcd4);
    text-decoration: none;
    font-weight: 600;
}

.depoimento-login-prompt a:hover {
    text-decoration: underline;
}

/* ─── Load more ──────────────────────────────────────────────── */
.depoimentos-load-more {
    text-align: center;
    padding: 16px 0;
}

.depoimento-load-more-btn {
    padding: 10px 24px;
    border: 1px solid var(--border, rgba(var(--rgb-t),0.1));
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary, #999);
    font-size: 13px;
    font-family: var(--ff-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.depoimento-load-more-btn:hover {
    border-color: var(--accent, #00bcd4);
    color: var(--accent, #00bcd4);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .depoimento-card,
    .depoimento-form-card {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .depoimento-avatar-img {
        width: 100%;
        height: 180px;
        border-radius: 20px 20px 0 0;
    }

    .depoimento-form-card .depoimento-avatar-img {
        height: 60px;
        width: 60px;
        border-radius: 50%;
        margin: 16px auto 0;
    }

    .depoimento-form-card {
        display: flex;
        flex-direction: column;
        padding: 0 16px 16px;
    }

    .depoimento-body {
        padding: 16px;
    }
}
