/* Estilos para el Módulo de Foros Educativos IA - V155 */

.foro-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 150px;
    /* Espacio para la barra de respuesta inferior - aumentado para más espacio */
}

.foro-header-topic {
    background: var(--gradiente-main);
    color: white;
    padding: 3rem;
    border-radius: 30px;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.comentario-hilo {
    position: relative;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.comentario-hilo.respuesta {
    margin-left: 3rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.bubble-comentario {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.bubble-comentario:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.bubble-comentario.owner {
    border-right: 4px solid var(--color-primario);
    background: rgba(38, 166, 154, 0.05);
}

.meta-comentario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.autor-comentario {
    font-weight: 800;
    color: var(--color-primario);
}

.nota-ia-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feedback-ia-pop {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--color-primario);
    padding: 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-top: 1rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Barra Inferior de Participación - Corregida V227 */
.foro-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--color-primario, #26a69a);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99999;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6);
    animation: slideInUp 0.4s ease-out;
    min-height: 80px;
}

/* Responsive: En pantallas móviles */
@media (max-width: 768px) {
    .foro-bottom-bar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
}

.foro-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
    min-width: 0;
    /* Para que el flex funcione correctamente */
}

.foro-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.foro-input:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.foro-input:focus {
    border-color: var(--color-primario, #26a69a);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
    transform: translateY(-1px);
}

/* Semáforo de Participación */
.semaforo-forum {
    display: flex;
    gap: 8px;
}

.sem-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.3s ease;
}

.sem-dot.complete {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s ease-in-out infinite;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.anim-forum {
    animation: slideInUp 0.4s ease-out forwards;
}

/* Mejoras V227: Estados de botones en foros */
.foro-bottom-bar .boton-brillante {
    min-width: 150px;
    white-space: nowrap;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.foro-bottom-bar .boton-brillante:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(38, 166, 154, 0.4);
}

.foro-bottom-bar .boton-brillante:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(38, 166, 154, 0.3);
}

.foro-bottom-bar .boton-brillante:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Estilo para botón de responder en comentarios */
.bubble-comentario button {
    transition: all 0.2s ease;
}

.bubble-comentario button:hover {
    transform: translateX(5px);
    color: var(--color-secundario, #ff6b6b) !important;
}

.bubble-comentario button:active {
    transform: translateX(3px) scale(0.95);
}