/**
 * ALELUYEMOS - Estilos de Reportes
 * Webapp Social Cristiana
 */

/* ============================================
   BOTÓN DE REPORTAR
   ============================================ */
.btn-report {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: color 0.2s ease;
    padding: var(--spacing-xs);
}

.btn-report:hover {
    color: #ff6b6b;
}

.btn-report span {
    font-size: var(--font-size-base);
}

/* ============================================
   MODAL DE REPORTE
   ============================================ */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-modal.active {
    opacity: 1;
    visibility: visible;
}

.report-modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.report-modal.active .report-modal-content {
    transform: translateY(0);
}

.report-modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    z-index: 1;
}

.report-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

.report-modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    line-height: 1;
    transition: color 0.2s ease;
}

.report-modal-close:hover {
    color: var(--text-primary);
}

.report-modal-body {
    padding: var(--spacing-lg);
}

.report-description {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   OPCIONES DE MOTIVO
   ============================================ */
.report-reasons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.report-reason-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-reason-option:hover {
    background-color: var(--bg-primary);
    border-color: var(--like-color);
}

.report-reason-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--like-color);
}

.report-reason-option input[type="radio"]:checked + span {
    color: var(--like-color);
    font-weight: 600;
}

.report-reason-option span {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    flex: 1;
    user-select: none;
}

/* ============================================
   CAMPO DE DESCRIPCIÓN
   ============================================ */
.report-description-field {
    margin-bottom: var(--spacing-lg);
}

.report-description-field label {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.report-description-field textarea {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.report-description-field textarea:focus {
    border-color: var(--like-color);
    background-color: var(--bg-primary);
}

/* ============================================
   ACCIONES DEL MODAL
   ============================================ */
.report-modal-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.report-modal-actions .btn {
    min-width: 120px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .report-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .report-modal-header,
    .report-modal-body {
        padding: var(--spacing-md);
    }
    
    .report-modal-actions {
        flex-direction: column;
    }
    
    .report-modal-actions .btn {
        width: 100%;
    }
}
