/* 博客增强功能样式 */

/* 阅读进度条样式 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #00B5AD;
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* 博客阅读增强样式 */

/* 阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, #00b5ad, #21ba45);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* 浏览量更新的动画效果 */
@keyframes viewsUpdate {
    0% {
        color: #00b5ad;
        transform: scale(1);
    }
    50% {
        color: #21ba45;
        transform: scale(1.3);
    }
    100% {
        color: inherit;
        transform: scale(1);
    }
}

/* 移动端菜单显示类 */
.m-mobile-show-menu {
    display: block !important;
}

/* 在小屏幕设备上应用适配样式 */
@media (max-width: 768px) {
    .ui.fixed.menu {
        display: none !important;
    }
    
    .m-mobile-show {
        display: block !important;
    }
    
    .m-mobile-hide {
        display: none !important;
    }
    
    .m-top-right {
        position: absolute;
        top: 1em;
        right: 1em;
    }
}

/* 管理面板样式调整 */
.admin-stats-container {
    margin-top: 3rem !important;
}

.admin-stats-cards {
    margin-top: 2rem !important;
    padding-top: 1rem !important;
}

/* 导航与内容间距调整 */
.ui.attached.pointing.menu + .m-container {
    margin-top: 2rem;
} 

/* 通知系统样式 */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7em !important;
    padding: 0.3em !important;
    line-height: 1.2 !important;
    min-height: 1.2em !important;
    min-width: 1.2em !important;
}

.m-item > i.bell.icon {
    position: relative;
}

/* 通知项目样式 */
.notification-item {
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notification-unread {
    background-color: #f0f8ff;
    border-left: 4px solid #00B5AD;
}

.notification-read {
    opacity: 0.75;
}

.notification-read:hover {
    opacity: 1;
}

/* 移动端菜单样式 */
@media screen and (max-width: 768px) {
    /* 移动端菜单切换按钮点击效果 */
    .ui.menu.toggle.black.icon.button:active,
    .ui.menu.toggle.black.icon.button:focus {
        background-color: #1b1c1d !important;
    }
    
    /* 移动端菜单项动画效果 */
    .m-item.item {
        transition: all 0.3s ease-in-out;
    }
    
    /* 确保菜单容器在移动端下有足够高度来展示菜单项 */
    .ui.inverted.secondary.stackable.menu {
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    
    /* 显示移动端菜单项时取消隐藏 */
    .m-mobile-show-menu .m-item.item.m-mobile-hide {
        display: block !important;
    }
} 

/* 评论区样式增强 */
#comment-container {
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease;
}

.ui.comments .comment {
    transition: all 0.3s ease;
    padding: 12px !important;
}

.ui.comments .comment:hover {
    background-color: rgba(0,0,0,0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* 表情选择器增强 */
.emoji-picker-wrapper {
    position: relative;
    width: 100%;
    max-height: 300px;
}

.emoji-tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: #2196f3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 改进评论输入框 */
#comment-textarea {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    resize: none !important;
    min-height: 120px !important;
    padding: 15px !important;
}

#comment-textarea:focus {
    border-color: #2196f3 !important;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2) !important;
}

/* 表情按钮美化 */
.emoji-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
}

/* 自定义滚动条 */
#emoji-picker::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#emoji-picker::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

#emoji-picker::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

#emoji-picker::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

/* 表情弹出动画 */
@keyframes emojiPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.emoji-container {
    animation: emojiPop 0.3s ease forwards;
}

/* 评论按钮美化 */
#comment-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#comment-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

#comment-btn:hover::before {
    width: 300%;
    height: 300%;
} 

/* 哔哩哔哩图标样式 */
i.bilibili.icon:before {
    content: "\f144"; /* 使用video play图标的Unicode */
    font-family: 'Icons';
}

/* 设置哔哩哔哩图标特定的颜色 - 去掉蓝色 */
i.bilibili.icon {
    /* 删除颜色设置，使用默认黑色 */
}

/* 在反色背景上使用白色 */
.ui.inverted i.bilibili.icon, 
.ui.inverted.segment i.bilibili.icon, 
footer i.bilibili.icon,
.contact-icon.bilibili.icon {
    color: #fff !important;
}

/* 为哔哩哔哩图标添加动画效果 */
i.bilibili.icon:hover {
    animation: bilibili-bounce 0.5s ease;
}

@keyframes bilibili-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
} 