/* Estilos para componentes de interacción social */

/* Implementa Bootstrap Icons (agregar en _Host.cshtml o index.html) */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* Estilos para las acciones de video */
.action-bar {
    background-color: #fcf1de;
    border-color: #e2e2e2 !important;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    background-color: #fdb208;
    color: #ffffff;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 100px;
}

    .btn-action:hover {
        background-color: #dd9a03;
    }

    .btn-action i {
        font-size: 1.2rem;
    }

.btn-liked {
    color: #e1153c;
}

    .btn-liked i {
        animation: likeAnimation 0.5s ease;
    }

.btn-disliked {
    color: #28252b;
}

.video-stats {
    background-color: #fcf1de;
    border-bottom: 1px solid #e2e2e2;
}

/* Panel de comentarios */
.comments-panel {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e2e2e2;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

    .comments-panel.show {
        display: block;
        max-height: 500px;
        overflow-y: auto;
    }

.comments-header {
    background-color: #f8f9fa;
}

.comments-list {
    max-height: 350px;
    overflow-y: auto;
}

/* Estilos para comentarios */
.comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-bubble {
    background-color: #f0f2f5;
    border-radius: 8px !important;
}

.comment-content {
    flex: 1;
}

.comment-actions {
    padding: 0 12px;
}

    .comment-actions button {
        color: #65676b;
        text-decoration: none;
    }

        .comment-actions button:hover {
            text-decoration: underline;
        }

/* Formulario de nuevo comentario */
.new-comment {
    background-color: #f8f9fa;
}

    .new-comment .form-control {
        border-radius: 8px;
        background-color: #f0f2f5;
        border: none;
        padding: 8px 16px;
    }

        .new-comment .form-control:focus {
            background-color: #fff;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
        }

    .new-comment .btn {
        border-radius: 10%;
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
    }

/* Animaciones */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .btn-action {
        padding: 6px 10px;
        min-width: auto;
    }

        .btn-action span {
            display: none;
        }

        .btn-action i {
            font-size: 1.4rem;
            margin: 0;
        }

    .comments-panel.show {
        max-height: 80vh;
    }
}

/* Estilos para oscurecer el fondo cuando el panel de comentarios está abierto */
.comments-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

    .comments-backdrop.show {
        display: block;
    }

/* Estilos integrados con el diseño actual */
.comments-panel h5 {
    color: #e1153c;
}

.new-comment .btn-primary {
    background-color: #198754;
    border-color: #00753f;
}

    .new-comment .btn-primary:hover {
        background-color: #ac0e3f;
        border-color: #ac0e3f;
    }

.comment-bubble h6 {
    color: #28252b;
}