/* === CONFESSION.CSS — style spécifique à la page des confessions === */

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
}

.page-title i {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveals-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f4f9;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3a5e;
    margin-bottom: 2rem;
    border-left: 4px solid #4338ca;
}

.reveals-badge i {
    color: #4338ca;
    font-size: 1.1rem;
}

.confessions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.confession-card {
    background: #ffffff;
    border: 2px solid #e9eff6;
    border-radius: 1.8rem;
    padding: 1.5rem 1.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.confession-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -12px rgba(67, 56, 202, 0.12);
}

.confession-content {
    flex: 1;
    min-width: 250px;
}

.confession-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.confession-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #5f6c80;
    align-items: center;
    flex-wrap: wrap;
}

.confession-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.confession-status {
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-visible {
    background: #e6f7e6;
    color: #0a5a0a;
}

.status-hidden {
    background: #fff3cd;
    color: #856404;
}

.status-moderated {
    background: #f8d7da;
    color: #721c24;
}

.confession-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.reveal-button {
    background: linear-gradient(135deg, #4338ca, #5f4be3);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 6px 12px -6px rgba(67, 56, 202, 0.4);
}

.reveal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #a0aec0;
    box-shadow: none;
}

.reveal-button:not(:disabled):hover {
    background: linear-gradient(135deg, #3730a3, #4f3bd0);
    transform: translateY(-2px);
}

.reveal-button:active {
    transform: scale(0.97);
}

.revealed-name {
    background: #f0f4fe;
    border-radius: 40px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #c7d9fe;
}

.revealed-name i {
    color: #4338ca;
}


/* Modale */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #334155;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-primary {
    background: #4338ca;
    color: white;
}

.btn-primary:hover {
    background: #3730a3;
}

.btn-secondary {
    background: #e9eef3;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #d0dae6;
}


/* Ajouts pour la navigation et les icônes */

.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-button {
    background: none;
    border: none;
    color: #4338ca;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: background 0.2s;
}

.back-button:hover {
    background: rgba(67, 56, 202, 0.08);
}

.back-button i {
    font-size: 1.1rem;
}

.confession-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-icon {
    background: none;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f1f5f9;
    border-color: #4338ca;
    color: #4338ca;
}

.btn-icon i {
    font-size: 1.2rem;
}

.report-button {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #b91c1c;
}

.report-button:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}


/* Adaptation mobile */

@media (max-width: 600px) {
    .page-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .confession-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

.view-modal-content {
    max-width: 700px;
    width: 90%;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.close-button:hover {
    color: #0f172a;
}

.view-content {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}