/**
 * Estilos para el plugin Motivos de Oración
 * 
 * @author Manuel Millo Sanchez
 * @email info@tropicollage.com
 * @year 2025
 * @license GPL v2 or later
 */

/* Estilos para el plugin Motivos de Oración */

.motivos-oracion-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.motivos-header,
.mis-motivos-header,
.formulario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.motivos-header h2,
.mis-motivos-header h2,
.formulario-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.2em;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: white;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Notificaciones */
.motivos-oracion-notice {
    background-color: #e8f4f8;
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.motivos-oracion-notice a {
    color: #3498db;
    font-weight: 600;
}

/* Filtros */
.motivos-filtros {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.filtro-grupo label {
    font-weight: 600;
    margin-right: 10px;
}

.filtro-grupo select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Cards de motivos */
.motivo-card,
.mi-motivo-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.motivo-card:hover,
.mi-motivo-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.motivo-card.respondido,
.mi-motivo-card.respondido {
    border-left: 5px solid #27ae60;
    background-color: #f8fff9;
}

.motivo-card.pendiente,
.mi-motivo-card.pendiente {
    border-left: 5px solid #f39c12;
}

.motivo-header {
    margin-bottom: 15px;
}

.motivo-titulo {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
    line-height: 1.4;
}

.motivo-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.motivo-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.visibilidad.publico {
    color: #27ae60;
    font-weight: 600;
}

.visibilidad.privado {
    color: #e74c3c;
    font-weight: 600;
}

.motivo-descripcion {
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 15px;
}

/* Testimonio */
.testimonio-section {
    background-color: #f0f8e8;
    border: 1px solid #d4edda;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.testimonio-section h4 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 1.1em;
}

.testimonio {
    color: #155724;
    line-height: 1.6;
    margin-bottom: 10px;
}

.fecha-respuesta {
    color: #6c757d;
    font-size: 12px;
}

/* Footer del motivo */
.motivo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.motivo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.estado-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.estado-badge.respondido {
    background-color: #d4edda;
    color: #155724;
}

.estado-badge.pendiente {
    background-color: #fff3cd;
    color: #856404;
}

/* Formularios */
.formulario-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-help {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Opciones de visibilidad */
.visibilidad-options {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    background-color: #f8f9fa;
}

.visibilidad-options h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.radio-option {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-label {
    display: block;
    margin-bottom: 5px;
}

.radio-option small {
    color: #6c757d;
    font-size: 13px;
}

/* Ayuda del formulario */
.formulario-ayuda {
    background-color: #e8f4f8;
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 20px;
}

.formulario-ayuda h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.formulario-ayuda ul {
    margin: 0;
    padding-left: 20px;
}

.formulario-ayuda li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Estadísticas de usuario */
.estadisticas-usuario {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.estadistica {
    text-align: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    min-width: 120px;
}

.estadistica .numero {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
}

.estadistica .label {
    color: #6c757d;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 20px;
}

/* Mensajes */
.mensaje {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 600;
}

.mensaje.exito {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mensaje.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Sin motivos */
.no-motivos {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.no-motivos p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .motivos-header,
    .mis-motivos-header,
    .formulario-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .motivos-filtros {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .motivo-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .motivo-actions {
        width: 100%;
        justify-content: center;
    }
    
    .estadisticas-usuario {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .motivos-oracion-container {
        padding: 10px;
    }
    
    .formulario-container {
        padding: 20px;
    }
    
    .motivo-card,
    .mi-motivo-card {
        padding: 15px;
    }
    
    .motivo-meta {
        flex-direction: column;
        gap: 8px;
    }
}
