/* ============================================
   QuangQuant Blog Styles
   Dark theme matching main site design
   ============================================ */

/* ============================================
   Blog Page Layout
   ============================================ */
.blog-page {
    padding: 100px 0 60px;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-header h1 .accent {
    color: var(--color-accent);
}

.blog-description {
    color: var(--color-text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    justify-content: center;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb span {
    opacity: 0.5;
}

/* Search */
.blog-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-form {
    display: flex;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--color-accent);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--color-text);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--color-accent);
    border: none;
    color: #000;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: var(--color-accent-hover);
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* ============================================
   Featured Section
   ============================================ */
.featured-section {
    margin-bottom: 50px;
}

.featured-section .section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-accent);
    text-align: left;
}

.featured-section .section-title i {
    margin-right: 8px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.featured-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.featured-card .featured-image {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-main .featured-image {
    aspect-ratio: 16/10;
}

.featured-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-accent);
    color: #000;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-main .featured-content h3 {
    font-size: 20px;
}

.featured-content h3 a {
    color: var(--color-text);
}

.featured-content h3 a:hover {
    color: var(--color-accent);
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.featured-meta i {
    margin-right: 5px;
}

/* ============================================
   Categories Filter
   ============================================ */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.filter-btn {
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

.filter-btn .count {
    opacity: 0.7;
    margin-left: 5px;
}

/* ============================================
   Posts Grid
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.post-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    font-size: 32px;
}

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--color-text);
}

.post-title a:hover {
    color: var(--color-accent);
}

.post-excerpt {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.post-meta i {
    margin-right: 5px;
    opacity: 0.7;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.page-link.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

.page-link.dots {
    border: none;
    background: none;
    color: var(--color-text-muted);
}

/* ============================================
   Sidebar
   ============================================ */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-accent);
}

.widget-title i {
    margin-right: 8px;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a:hover,
.category-list li a.active {
    color: var(--color-accent);
}

.category-list .count {
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-bg);
    border-radius: 15px;
    color: var(--color-text-muted);
    font-size: 12px;
    transition: all 0.2s ease;
}

.tag:hover,
.tag.active {
    background: var(--color-accent);
    color: #000;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 12px;
    color: var(--color-text);
}

.recent-post:hover h4 {
    color: var(--color-accent);
}

.recent-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg);
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 16px;
}

.recent-info h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.recent-date {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.no-posts i {
    font-size: 48px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.no-items {
    color: var(--color-text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ============================================
   Post Detail Page
   ============================================ */
.blog-post {
    padding: 100px 0 60px;
}

.blog-post .breadcrumb {
    justify-content: flex-start;
    margin-bottom: 30px;
}

.post-header {
    margin-bottom: 30px;
}

.post-category-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.post-header .post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
}

.post-date {
    color: var(--color-text-muted);
    font-size: 13px;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.post-stats i {
    margin-right: 5px;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.share-label {
    color: var(--color-text-muted);
    font-size: 13px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: var(--color-bg-card); border: 1px solid var(--color-border); color: var(--color-text); }
.share-btn.copy-link:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Share Bottom */
.share-bottom {
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 40px 0;
}

.share-bottom p {
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.share-btn-large:hover {
    color: #fff;
    opacity: 0.9;
}

.share-btn-large.facebook { background: #1877f2; }
.share-btn-large.twitter { background: #1da1f2; }
.share-btn-large.linkedin { background: #0a66c2; }
.share-btn-large.telegram { background: #0088cc; }

/* Post Content */
.post-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content-body h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.post-content-body h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.post-content-body h4 {
    font-size: 18px;
    margin: 25px 0 10px;
}

.post-content-body p {
    margin-bottom: 20px;
}

.post-content-body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.post-content-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 15px 20px;
    margin: 25px 0;
    background: var(--color-bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.post-content-body pre {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
}

.post-content-body code {
    background: var(--color-bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

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

.post-content-body ul,
.post-content-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content-body li {
    margin-bottom: 10px;
}

/* Video Embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: var(--radius);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-tags i {
    color: var(--color-text-muted);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 40px 0;
}

.author-avatar-large img,
.avatar-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-large {
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 32px;
}

.author-info-large h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.author-info-large p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--color-accent);
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.nav-title {
    color: var(--color-text);
    font-weight: 500;
}

.nav-placeholder {
    visibility: hidden;
}

/* Related Posts */
.related-posts {
    margin: 50px 0;
}

.related-posts h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--color-accent);
}

.related-posts h3 i {
    margin-right: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 136, 0.3);
}

.related-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-category {
    font-size: 10px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-content h4 {
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--color-text);
}

.related-content h4 a:hover {
    color: var(--color-accent);
}

.related-date {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.comments-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--color-accent);
}

.comments-section h3 i {
    margin-right: 10px;
}

/* Facebook Comments Dark Theme Override */
.fb-comments {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 20px;
}

/* Table of Contents */
.toc-widget {
    max-height: 400px;
    overflow-y: auto;
}

.table-of-contents {
    display: flex;
    flex-direction: column;
}

.toc-item {
    padding: 8px 0;
    color: var(--color-text-muted);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease;
}

.toc-item:hover {
    color: var(--color-accent);
}

.toc-item.toc-h3 {
    padding-left: 15px;
    font-size: 12px;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-accent);
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        position: static;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        grid-column: auto;
        grid-row: auto;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 80px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .categories-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .post-header .post-title {
        font-size: 26px;
    }
    
    .post-meta-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .social-share.share-top {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* ============================================
   Admin Styles (for WYSIWYG preview)
   ============================================ */
@media all {
    .admin-preview {
        background: var(--color-bg-card);
        padding: 20px;
        border-radius: var(--radius);
    }
}

/* ============================================
   Comments Section
   ============================================ */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.comments-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Comment Form */
.comment-form {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.comment-as {
    font-size: 14px;
    color: var(--color-text-muted);
}

.comment-form textarea {
    width: 100%;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--color-text);
    font-size: 15px;
    resize: vertical;
    min-height: 80px;
}

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

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-hint {
    font-size: 12px;
    color: var(--color-text-muted);
}

.btn-comment {
    background: var(--color-accent);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-comment:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Login to Comment */
.login-to-comment {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
}

.login-to-comment a {
    color: var(--color-accent);
    font-weight: 600;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 20px;
}

.comment-item.reply {
    margin-left: 40px;
    background: var(--color-bg-dark);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.comment-body {
    color: var(--color-text);
    line-height: 1.6;
}

.comment-body p {
    margin: 0 0 10px;
}

.comment-body p:last-child {
    margin-bottom: 0;
}

/* Reply Button */
.btn-reply {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-reply:hover {
    color: var(--color-accent);
}

/* Reply Form */
.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: var(--color-bg-dark);
    border-radius: 8px;
}

.reply-form textarea {
    width: 100%;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--color-text);
    font-size: 14px;
    resize: vertical;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-cancel {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-reply-submit {
    background: var(--color-accent);
    border: none;
    color: #000;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Delete Comment */
.delete-comment-form {
    margin-left: auto;
}

.btn-delete-comment {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.btn-delete-comment:hover {
    color: #dc3545;
}

/* Comment Replies */
.comment-replies {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* No Comments */
.no-comments {
    text-align: center;
    color: var(--color-text-muted);
    padding: 30px;
    background: var(--color-bg-light);
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .comment-item.reply {
        margin-left: 20px;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .btn-comment {
        justify-content: center;
    }
}
