/**
 * 子比主题帖子标题高亮插件 - 前端样式
 * Zibll Title Highlight Plugin - Frontend Styles
 */

/* 标题高亮基础样式 */
.zibll-title-highlight {
    display: inline;
    transition: all 0.3s ease;
    position: relative;
}

/* 文章详情页标题样式 */
.single .article-title .zibll-title-highlight,
.post .entry-title .zibll-title-highlight {
    font-weight: inherit;
    line-height: inherit;
}

/* 列表页标题样式 */
.posts-item .item-heading .zibll-title-highlight,
.forum-posts .post-title .zibll-title-highlight {
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.zibll-title-highlight:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* 动画效果 - 淡入 */
@keyframes zibllTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zibll-title-highlight.animated {
    animation: zibllTitleFadeIn 0.6s ease-out;
}

/* 社区论坛特殊样式 */
.zibll-title-highlight.forum-title {
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* 热门/置顶帖子特殊标记 */
.zibll-title-highlight.is-sticky {
    position: relative;
    padding-left: 25px;
}

.zibll-title-highlight.is-sticky::before {
    content: "\f08d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zibll-title-highlight {
        font-size: 0.95em;
    }
    
    .zibll-title-highlight.is-sticky {
        padding-left: 20px;
    }
    
    .zibll-title-highlight.is-sticky::before {
        font-size: 0.7em;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .zibll-title-highlight:hover {
        opacity: 0.85;
        filter: brightness(1.2);
    }
}

/* 颜色过渡动画 */
.zibll-title-highlight.color-transition {
    transition: color 0.5s ease, opacity 0.3s ease;
}

/* 列表项中的标题样式优化 */
.posts-item .posts-mini .zibll-title-highlight,
.related-posts .zibll-title-highlight {
    font-size: 0.95em;
    line-height: 1.4;
}

/* 侧边栏小工具标题样式 */
.sidebar .zibll-title-highlight {
    font-size: 0.9em;
    font-weight: 500;
}

/* 搜索页面标题样式 */
.search-results .zibll-title-highlight {
    font-weight: 600;
    text-decoration: none;
}

/* 作者页面标题样式 */
.author-posts .zibll-title-highlight {
    font-weight: 500;
}

/* 标签/分类页面标题样式 */
.taxonomy-list .zibll-title-highlight {
    font-weight: 500;
}

/* 论坛列表样式 */
.forum-post-list .zibll-title-highlight {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
}

/* 话题列表样式 */
.topic-list .zibll-title-highlight {
    font-weight: 500;
}

/* 移动端优化 */
@media screen and (max-width: 480px) {
    .zibll-title-highlight {
        font-size: 0.9em;
    }
    
    .single .article-title .zibll-title-highlight {
        font-size: 1.1em;
        line-height: 1.4;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .zibll-title-highlight {
        font-weight: 700 !important;
    }
}

/* 打印样式 */
@media print {
    .zibll-title-highlight {
        color: inherit !important;
        background: none !important;
    }
}
