/* Prayer Wall Plugin Styles */

/* Contenedor principal */
#prayer-wall-container,
#prayer-wall-list-container,
#prayer-wall-complete-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header del muro de peticiones */
.prayer-wall-header {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.prayer-wall-header h2 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 600;
}

.prayer-wall-header p {
    color: #718096;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Pestañas de navegación */
.prayer-wall-tabs .nav-link {
    color: #4a5568;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    padding: 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.prayer-wall-tabs .nav-link:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.prayer-wall-tabs .nav-link.active {
    background: none;
    border-bottom: 3px solid #667eea;
    color: #667eea;
}

/* Tarjetas de peticiones */
.prayer-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.prayer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.prayer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prayer-card-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.prayer-card-date {
    color: #718096;
    font-size: 0.9rem;
}

.prayer-card-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.prayer-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.prayer-count {
    color: #718096;
    font-size: 0.9rem;
}

.prayer-count i {
    color: #48bb78;
    margin-right: 5px;
}

/* Botones */
.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #48bb78, #38a169);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    background: linear-gradient(45deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-pray {
    background: linear-gradient(45deg, #ed8936, #dd6b20);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-pray:hover {
    background: linear-gradient(45deg, #dd6b20, #c05621);
    transform: translateY(-1px);
    color: white;
}

.btn-pray:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Formularios */
.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Tarjetas */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-body {
    padding: 30px;
}

/* Alertas */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    border-left: 4px solid #f56565;
}

.alert-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2b6cb0;
    border-left: 4px solid #4299e1;
}

/* Spinner de carga */
.spinner-border {
    color: #667eea;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prayer-card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    #prayer-wall-container,
    #prayer-wall-list-container,
    #prayer-wall-complete-container {
        padding: 20px;
        margin: 10px 0;
    }
    
    .prayer-wall-header h2 {
        font-size: 1.8rem;
    }
    
    .prayer-card {
        padding: 20px;
    }
    
    .prayer-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .btn-pray {
        width: 100%;
    }
    
    .prayer-wall-tabs .nav-link {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Estados especiales */
.prayer-card.prayed {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-left-color: #48bb78;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

/* Modal de selección de tipo de rezo */
#prayerTypeModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#prayerTypeModal .modal-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#prayerTypeModal .modal-title {
    font-weight: 600;
}

#prayerTypeModal .btn-close {
    filter: invert(1);
}

.prayer-type-option {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.prayer-type-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.prayer-type-option.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.prayer-types-display {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.prayer-types-display small {
    font-size: 0.85rem;
    color: #667eea !important;
}

/* Efectos de hover mejorados */
.prayer-card:hover .btn-pray {
    transform: scale(1.05);
}

.form-control:hover {
    border-color: #cbd5e0;
}

/* Mejoras de accesibilidad */
.btn:focus,
.form-control:focus {
    outline: none;
}

.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

