/**
 * Blog System Styles
 * 
 * Styles for blog listing, single posts, and comments
 *
 * @package AI_Navigator
 * @since 2.3.0
 */

/* ==========================================================================
   Blog Grid
   ========================================================================== */

.blog-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1200px) {
    .blog-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .blog-grid-4,
    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid-4,
    .blog-grid-3,
    .blog-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Blog Card
   ========================================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #1a1a2e);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.blog-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.blog-card-image svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    stroke: white;
}

.blog-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(102, 126, 234, 0.2);
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary, #9ca3af);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-meta svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Article Detail
   ========================================================================== */

.article-detail {
    background: var(--card-bg, #1a1a2e);
    border-radius: 12px;
    overflow: hidden;
}

.article-cover {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.article-cover svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    stroke: white;
}

.article-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #2d2d44);
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.2);
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #9ca3af);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-stats svg {
    width: 16px;
    height: 16px;
}

/* Article Content */
.article-content {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary, #d1d5db);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary, #fff);
    scroll-margin-top: 80px;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary, #fff);
    scroll-margin-top: 80px;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content pre,
.article-content code {
    background: var(--code-bg, #0d0d1a);
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

.article-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content code {
    padding: 0.125rem 0.375rem;
}

.article-content pre code {
    padding: 0;
    background: none;
}

.article-content blockquote {
    border-left: 4px solid #ef4444;
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary, #9ca3af);
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color, #2d2d44);
    text-align: left;
}

.article-content th {
    background: var(--code-bg, #0d0d1a);
    font-weight: 600;
}

.article-callout {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    margin: 1rem 0;
}

.article-callout-icon svg {
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.article-callout-content {
    flex: 1;
}

/* Article Tags */
.article-tags {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Article Actions */
.article-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #2d2d44);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-actions .btn svg {
    width: 18px;
    height: 18px;
}

.article-actions .btn.liked svg,
.article-actions .btn.saved svg {
    fill: currentColor;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.comments-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg, #1a1a2e);
    border-radius: 12px;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #fff);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color, #2d2d44);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.comment-badge {
    padding: 0.125rem 0.5rem;
    background: rgba(102, 126, 234, 0.2);
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

.comment-content {
    padding-left: calc(48px + 0.75rem);
    color: var(--text-secondary, #d1d5db);
    line-height: 1.6;
}

.comment-content p {
    margin: 0;
}

.comment-awaiting {
    font-style: italic;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.5rem;
}

.comment-footer {
    padding-left: calc(48px + 0.75rem);
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.comment-reply a,
.comment-edit a {
    color: var(--text-muted, #6b7280);
    text-decoration: none;
}

.comment-reply a:hover,
.comment-edit a:hover {
    color: #ef4444;
}

/* Nested Comments */
.comment-item .children {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 calc(48px + 0.75rem);
    border-left: 2px solid var(--border-color, #2d2d44);
}

.comment-item .children .comment-item {
    padding-left: 1rem;
}

/* Comment Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #9ca3af);
}

.comment-form-field label .required {
    color: #f87171;
}

.comment-form-field input,
.comment-form-field textarea {
    padding: 0.75rem;
    background: var(--input-bg, #0d0d1a);
    border: 1px solid var(--border-color, #2d2d44);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
    outline: none;
    border-color: #ef4444;
}

.comment-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .form-submit {
    margin-top: 0.5rem;
}

.logged-in-as,
.must-log-in {
    font-size: 0.875rem;
    color: var(--text-secondary, #9ca3af);
    margin-bottom: 1rem;
}

.logged-in-as a,
.must-log-in a {
    color: #ef4444;
    text-decoration: none;
}

.logged-in-as a:hover,
.must-log-in a:hover {
    text-decoration: underline;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted, #6b7280);
}

/* Comment navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #2d2d44);
}

/* ==========================================================================
   Related Articles Sidebar
   ========================================================================== */

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.related-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.related-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.related-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

/* ==========================================================================
   TOC Navigation
   ========================================================================== */

.toc-nav {
    display: flex;
    flex-direction: column;
}

.toc-nav a,
.toc-link {
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #9ca3af);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.toc-nav a:hover,
.toc-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
}

.toc-nav a.active,
.toc-link.active {
    color: #ef4444;
    background: rgba(102, 126, 234, 0.1);
}

.toc-nav .toc-sub {
    padding-left: 1.5rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   Tags List
   ========================================================================== */

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #9ca3af);
    border-radius: 16px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tag-chip:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #ef4444;
}

/* ==========================================================================
   No Posts Found
   ========================================================================== */

.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted, #6b7280);
}

.no-posts-found svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-posts-found p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.no-posts-found span {
    font-size: 0.875rem;
}

/* ==========================================================================
   Light Mode Overrides
   ========================================================================== */

[data-theme="light"] .blog-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-card-title {
    color: #1f2937;
}

[data-theme="light"] .article-detail {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .article-title {
    color: #1f2937;
}

[data-theme="light"] .article-content {
    color: #4b5563;
}

[data-theme="light"] .article-content h2,
[data-theme="light"] .article-content h3 {
    color: #1f2937;
}

[data-theme="light"] .comments-area {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .comment-author {
    color: #1f2937;
}

[data-theme="light"] .comment-form-field input,
[data-theme="light"] .comment-form-field textarea {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .related-title {
    color: #1f2937;
}

/* ========================================
   v3.3.6 - Redesigned Blog Article Page
   ======================================== */

/* Single Column Container - No Sidebar */
.blog-single-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Article */
.blog-article {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.blog-article-cover {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.blog-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.blog-article-category {
    display: inline-flex;
    padding: 4px 12px;
    background: var(--color-primary, #E53935);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 12px;
}

.blog-article-category:hover {
    opacity: 0.9;
    color: white;
}

.blog-article-date,
.blog-article-reading {
    color: var(--text-tertiary);
}

.blog-article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.blog-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 16px;
    text-decoration: none;
    overflow: hidden;
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
}

.blog-author-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.blog-author-name:hover {
    color: var(--color-primary);
}

.blog-author-bio {
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-article-stats {
    display: flex;
    gap: 16px;
}

.blog-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-stat svg {
    width: 16px;
    height: 16px;
}

/* Article Content */
.blog-article-content {
    padding: 24px;
}

.blog-article-content.prose {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-article-content.prose h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.blog-article-content.prose h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.blog-article-content.prose p {
    margin: 0 0 16px;
}

.blog-article-content.prose a {
    color: var(--color-primary);
}

.blog-article-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.blog-article-content.prose pre {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 14px;
}

.blog-article-content.prose code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.blog-article-content.prose blockquote {
    border-left: 4px solid var(--color-primary);
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-article-content.prose ul,
.blog-article-content.prose ol {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-article-content.prose li {
    margin-bottom: 8px;
}

/* Tags */
.blog-article-tags {
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    display: inline-flex;
    padding: 6px 12px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Actions */
.blog-article-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

.blog-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-hover);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.blog-action-btn.active {
    background: var(--color-primary);
    color: white;
}

.blog-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Comments Section */
.blog-comments {
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.blog-comments-header {
    margin-bottom: 20px;
}

.blog-comments-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.blog-comments-header h2 span {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Comment Form */
.blog-comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.blog-comment-form .blog-comment-avatar {
    flex-shrink: 0;
}

.blog-comment-form form {
    flex: 1;
}

.blog-comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.blog-comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.blog-comment-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.blog-comment-login {
    text-align: center;
    padding: 24px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.blog-comment-login a {
    color: var(--color-primary);
}

/* Comment Item */
.blog-comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.blog-comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
}

.blog-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-comment-main {
    flex: 1;
    min-width: 0;
}

.blog-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.blog-comment-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
}

.blog-comment-name:hover {
    color: var(--color-primary);
}

.blog-comment-reply-to {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 4px;
}

.blog-comment-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.blog-comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.blog-comment-body p {
    margin: 0;
}

.blog-comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
}

.blog-comment-reply:hover {
    color: var(--color-primary);
}

.blog-comment-reply svg {
    width: 14px;
    height: 14px;
}

.blog-comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.blog-comments-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.blog-comments-empty p {
    margin: 0;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.blog-sidebar-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* TOC */
.blog-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-toc li {
    margin-bottom: 8px;
}

.blog-toc a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.blog-toc a:hover,
.blog-toc a.active {
    background: var(--bg-hover);
    color: var(--color-primary);
}

/* Author Card */
.blog-author-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-author-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 20px;
    text-decoration: none;
    overflow: hidden;
}

.blog-author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-card-info {
    flex: 1;
}

.blog-author-card-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 4px;
}

.blog-author-card-name:hover {
    color: var(--color-primary);
}

.blog-author-card-posts {
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-author-card-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Related Posts */
.blog-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-related-item {
    display: block;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s;
}

.blog-related-item:hover {
    background: var(--bg-hover);
}

.blog-related-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-item span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .blog-article-header {
        padding: 16px;
    }
    
    .blog-article-title {
        font-size: 22px;
    }
    
    .blog-article-content {
        padding: 16px;
    }
    
    .blog-article-tags {
        padding: 0 16px 16px;
    }
    
    .blog-article-actions {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .blog-action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .blog-comments {
        padding: 16px;
    }
    
    .blog-comment-form {
        flex-direction: column;
    }
    
    .blog-comment-form .blog-comment-avatar {
        display: none;
    }
}

/* Share Dropdown */
.blog-share-wrapper {
    position: relative;
}

.share-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.share-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.share-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.share-option svg {
    width: 18px;
    height: 18px;
}

/* Single column layout */
.blog-single-container {
    max-width: 800px;
    margin: 0 auto;
}
