/* FORMATEO PROFESIONAL DE RESPUESTAS BIBLICAS */
/* Version sin emojis para evitar problemas de codificacion */

/* TITULOS FORMATEADOS */
.formatted-title {
    display: block;
    font-size: 1.2em;
    color: var(--tutor-secondary, #1e40af);
    margin: 15px 0 10px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(219, 234, 254, 0.2));
    border-left: 4px solid var(--tutor-primary, #3b82f6);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.formatted-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: titleShimmer 2s infinite;
}

@keyframes titleShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* TEXTO EN NEGRILLA */
.formatted-bold {
    font-weight: 600;
    color: var(--tutor-secondary, #1e40af);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.formatted-bold:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* LISTAS FORMATEADAS */
.formatted-list-item {
    display: flex;
    align-items: flex-start;
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
    border-left: 3px solid var(--tutor-accent, #f59e0b);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.formatted-list-item:hover {
    background: rgba(219, 234, 254, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.list-number {
    font-weight: 700;
    color: var(--tutor-primary, #3b82f6);
    margin-right: 10px;
    min-width: 25px;
    font-size: 1.1em;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-emoji {
    margin-right: 10px;
    font-size: 1.2em;
    flex-shrink: 0;
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.list-content {
    flex: 1;
    line-height: 1.6;
    color: var(--tutor-text-dark, #0f172a);
}

/* PARRAFOS MEJORADOS */
.formatted-paragraph {
    margin: 12px 0;
    line-height: 1.7;
    color: var(--tutor-text-dark, #0f172a);
    text-align: justify;
}

/* INFORMACION IMPORTANTE */
.highlight-important {
    background: linear-gradient(135deg, var(--tutor-warning, #f59e0b), #f6ad55);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    display: inline-block;
    animation: importantPulse 2s infinite;
}

@keyframes importantPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* REFERENCIAS BIBLICAS */
.highlight-scripture {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Georgia', serif;
    font-size: 0.95em;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight-scripture:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* PALABRAS DIVINAS */
.highlight-divine {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: divineGlow 3s ease-in-out infinite;
}

@keyframes divineGlow {
    0%, 100% { box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5); }
}

/* SISTEMA DE CONTINUACION DE RESPUESTAS */
.continuation-container {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.continuation-container.show {
    opacity: 1;
    transform: translateY(0);
}

.continuation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: continuationShimmer 2s infinite;
}

@keyframes continuationShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.incomplete-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.incomplete-message {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.incomplete-icon {
    color: var(--tutor-warning, #f59e0b);
    font-size: 1.2em;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.incomplete-text {
    font-weight: 500;
    color: var(--tutor-text-dark, #0f172a);
    font-size: 0.95em;
}

.confidence-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 10px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tutor-warning, #f59e0b), var(--tutor-success, #10b981));
    border-radius: 3px;
    transition: width 1s ease;
}

.continuation-btn {
    background: linear-gradient(135deg, var(--tutor-warning, #f59e0b), #f6ad55);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.continuation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #f6ad55, var(--tutor-warning, #f59e0b));
}

.continuation-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnGlow 2s infinite;
}

@keyframes btnGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.continuation-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--tutor-text-dark, #0f172a);
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-btn:hover {
    background: var(--tutor-warning, #f59e0b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* RESPONSIVE PARA FORMATEO */
@media (max-width: 768px) {
    .formatted-title {
        font-size: 1.1em;
        padding: 10px 12px;
        margin: 12px 0 8px 0;
    }
    
    .formatted-list-item {
        padding: 10px 12px;
        margin: 10px 0;
    }
    
    .list-number {
        width: 22px;
        height: 22px;
        font-size: 1em;
        margin-right: 8px;
    }
    
    .list-emoji {
        margin-right: 8px;
        font-size: 1.1em;
    }
    
    .continuation-container {
        padding: 12px;
        margin-top: 15px;
    }
    
    .incomplete-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .continuation-btn {
        padding: 10px 20px;
        font-size: 0.85em;
    }
    
    .continuation-options {
        gap: 8px;
    }
    
    .option-btn {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .confidence-bar {
        width: 60px;
        height: 4px;
        margin-left: 0;
        margin-top: 5px;
    }
}
