/* ============================================
   SISTEMA DE REPORTES Y MODERACIÓN - CSS
   Soporta 3 temas: default, nocturno, futurista
   ============================================ */

/* ==================== MODAL OVERLAY ==================== */
.modal-overlay-reporte {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInReporte 0.2s ease;
}

@keyframes fadeInReporte {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== MODAL CONTENIDO ==================== */
.modal-contenido-reporte {
    background: var(--tema-tarjeta-fondo, #ffffff);
    border: 1px solid var(--tema-borde, #dee2e6);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpReporte 0.3s ease;
}

@keyframes slideUpReporte {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== HEADER ==================== */
.modal-header-reporte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tema-borde, #dee2e6);
}

.modal-header-reporte h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header-reporte h5 i {
    color: var(--tema-peligro, #dc3545);
    font-size: 1rem;
}

.modal-header-bloqueo h5 i {
    color: #fd7e14;
}

.btn-cerrar-modal-reporte {
    background: none;
    border: none;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-cerrar-modal-reporte:hover {
    background: var(--tema-hover, rgba(0,0,0,0.05));
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
}

/* ==================== BODY ==================== */
.modal-body-reporte {
    padding: 1.25rem;
}

.reporte-instrucciones {
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Motivos como radio buttons */
.reporte-motivos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reporte-motivo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--tema-borde, #dee2e6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    font-size: 0.9rem;
}

.reporte-motivo-item:hover {
    border-color: var(--tema-primario, var(--tema-primario, #0d6efd));
    background: var(--tema-hover, rgba(13, 110, 253, 0.04));
}

.reporte-motivo-item.activo {
    border-color: var(--tema-primario, var(--tema-primario, #0d6efd));
    background: var(--tema-primario-claro, rgba(13, 110, 253, 0.08));
}

.reporte-motivo-item input[type="radio"] {
    accent-color: var(--tema-primario, var(--tema-primario, #0d6efd));
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reporte-motivo-item label {
    cursor: pointer;
    margin: 0;
    flex: 1;
}

/* Descripción */
.reporte-descripcion-wrapper {
    margin-top: 0.5rem;
}

.reporte-label {
    display: block;
    font-weight: 500;
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.reporte-opcional {
    font-weight: 400;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
    font-size: 0.8rem;
}

.reporte-textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--tema-borde, #dee2e6);
    border-radius: 10px;
    background: var(--tema-input-fondo, #ffffff);
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    font-size: 0.9rem;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.reporte-textarea:focus {
    outline: none;
    border-color: var(--tema-primario, var(--tema-primario, #0d6efd));
    box-shadow: 0 0 0 3px var(--tema-primario-claro, rgba(13, 110, 253, 0.15));
}

.reporte-contador {
    text-align: right;
    font-size: 0.75rem;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
    margin-top: 0.25rem;
}

/* Estados info */
.reporte-estado-info {
    text-align: center;
    padding: 1.5rem 1rem;
}

.reporte-estado-info i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.reporte-estado-info p {
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.reporte-exito i { color: #198754; }
.reporte-error i { color: var(--tema-peligro, #dc3545); }

.reporte-estado-info:not(.reporte-exito):not(.reporte-error) i {
    color: var(--tema-primario, var(--tema-primario, #0d6efd));
}

/* Botón "Ver mi reporte" */
.btn-ver-mi-reporte {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--tema-primario, var(--tema-primario, #0d6efd));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-ver-mi-reporte:hover {
    background: var(--tema-primario-hover, #0b5ed7);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ==================== FOOTER ==================== */
.modal-footer-reporte {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--tema-borde, #dee2e6);
}

.btn-cancelar-reporte {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--tema-borde, #dee2e6);
    border-radius: 10px;
    background: transparent;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancelar-reporte:hover {
    background: var(--tema-hover, rgba(0,0,0,0.05));
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
}

.btn-enviar-reporte {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: var(--tema-peligro, #dc3545);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-enviar-reporte:hover:not(:disabled) {
    background: #bb2d3b;
    transform: translateY(-1px);
}

.btn-enviar-reporte:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-bloquear-confirmar {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: #fd7e14;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-bloquear-confirmar:hover {
    background: #e8590c;
    transform: translateY(-1px);
}

/* ==================== BLOQUEO AVISO ==================== */
.bloqueo-aviso {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--tema-warning-bg, rgba(var(--tema-advertencia-rgb, 255, 193, 7), 0.1));
    border: 1px solid var(--tema-warning-border, rgba(var(--tema-advertencia-rgb, 255, 193, 7), 0.3));
    border-radius: 12px;
}

.bloqueo-aviso > i {
    font-size: 1.5rem;
    color: #fd7e14;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.bloqueo-aviso p {
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.bloqueo-consecuencias {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bloqueo-consecuencias li {
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
    font-size: 0.85rem;
    padding: 0.2rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.bloqueo-consecuencias li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
}

/* ==================== BOTÓN EN DROPDOWN DE TARJETA ==================== */
.menu-item-tarjeta[data-action="reportar"] i,
.te-menu-item[data-action="reportar"] i {
    color: var(--tema-peligro, #dc3545);
}

.menu-item-tarjeta[data-action="bloquear"] i,
.te-menu-item[data-action="bloquear"] i {
    color: #fd7e14;
}

/* ==================== SECCIÓN BLOQUEADOS EN MI CUENTA ==================== */
.lista-bloqueados {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bloqueado-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--tema-tarjeta-fondo, #fff);
    border: 1px solid var(--tema-borde, #dee2e6);
    border-radius: 12px;
    transition: all 0.2s;
}

.bloqueado-item:hover {
    border-color: var(--tema-primario, var(--tema-primario, #0d6efd));
}

.bloqueado-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bloqueado-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tema-hover, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bloqueado-avatar i {
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
}

.bloqueado-nombre {
    font-weight: 500;
    color: var(--tema-texto, var(--tema-texto-primario, #212529));
    font-size: 0.9rem;
}

.bloqueado-fecha {
    font-size: 0.8rem;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
}

.btn-desbloquear {
    padding: 0.4rem 1rem;
    border: 1px solid var(--tema-borde, #dee2e6);
    border-radius: 8px;
    background: transparent;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-desbloquear:hover {
    border-color: #198754;
    color: #198754;
    background: rgba(25, 135, 84, 0.05);
}

.bloqueados-vacio {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--tema-texto-secundario, var(--tema-texto-silenciado, #6c757d));
}

.bloqueados-vacio i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 576px) {
    .modal-contenido-reporte {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
    
    .modal-overlay-reporte {
        align-items: flex-end;
        padding: 0;
    }
    
    .reporte-motivo-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}
