/**
 * 表情选择器样式
 * 横向滚动版本 - 100%模仿微信朋友圈
 */

/* ========== 横向表情选择器容器 ========== */
.emoji-picker-horizontal {
    width: 100%;
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    margin-top: 8px;
    display: none;
}

.emoji-picker-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f7f7f7;
}

.emoji-picker-scroll::-webkit-scrollbar {
    height: 6px;
}

.emoji-picker-scroll::-webkit-scrollbar-track {
    background: #f7f7f7;
}

.emoji-picker-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.emoji-picker-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========== 表情项（横向） ========== */
.emoji-item {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    background: #fff;
}

.emoji-item:hover {
    background: #e5e5e5;
    transform: scale(1.15);
}

.emoji-item:active {
    transform: scale(1.05);
}

/* ========== 内联表情（显示在文本中） ========== */
.emoji-inline {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
    display: inline-block;
}

/* ========== 表情按钮 ========== */
.emoji-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: color 0.3s;
}

.emoji-btn:hover {
    color: #576b95;
}

/* ========== 评论输入框表情按钮 ========== */
.moments-comment-input-wrapper {
    position: relative;
}

.moments-comment-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.moments-comment-tool-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.moments-comment-tool-btn:hover {
    background: #f5f5f5;
    color: #576b95;
}

/* ========== 评论图片预览 ========== */
.comment-image-preview {
    margin-top: 8px;
    display: none;
}

.comment-image-preview.show {
    display: block;
}

.comment-image-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.comment-image-preview .remove-btn {
    color: #f56c6c;
    cursor: pointer;
    font-size: 12px;
}

.comment-image-preview .remove-btn:hover {
    text-decoration: underline;
}

/* 评论图片上传进度 */
.comment-upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
}

.comment-upload-progress.show {
    display: flex;
}

.comment-progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.comment-progress-fill {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .emoji-item {
        width: 28px;
        height: 28px;
    }
    
    .emoji-picker-scroll {
        gap: 6px;
    }
}

/* ========== 发布页面表情按钮 ========== */
.publish-emoji-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: background 0.3s;
}

.publish-emoji-btn:hover {
    background: #e5e5e5;
}

.publish-emoji-btn i {
    font-size: 18px;
}

