/* =================================
   FORUM CLEAN LAYOUT STYLES
   ================================= */

/* Global Forum Styling */
.forum-thread-view {
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0.8rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.breadcrumb-item a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: #ffffff;
}

/* Clean Thread Header */
.thread-header-modern {
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.thread-title-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.thread-meta-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.thread-meta-modern .meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.thread-meta-modern .meta-separator {
    color: #555;
}

.thread-badges-modern {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.thread-badges-modern .badge {
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Thread Actions */
.thread-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-primary-gaming {
    background: #4a4a4a;
    border: 1px solid #555;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-primary-gaming:hover {
    background: #555;
    border-color: #666;
}

.btn-secondary-gaming {
    background: #333;
    border: 1px solid #444;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-secondary-gaming:hover {
    background: #444;
    border-color: #555;
    color: #fff;
}

/* Posts Section */
.posts-section-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Clean Post Item */
.post-item-modern {
    background: #222;
    border: 1px solid #333;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1px;
    transition: none;
}

.post-item-modern:hover {
    background: #242424;
}

/* Remove special styling for original post */
.post-item-modern.original-post {
    background: #222;
    border-left: 1px solid #333;
}

/* Post Layout */
.post-layout-modern {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 120px;
}

@media (max-width: 768px) {
    .post-layout-modern {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Author Section */
.post-author-modern {
    background: #1a1a1a;
    padding: 1rem 0.8rem;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .post-author-modern {
        border-right: none;
        border-bottom: 1px solid #333;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem;
    }
}

.author-avatar-modern {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid #444;
}

@media (max-width: 768px) {
    .author-avatar-modern {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }
}

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

.author-name-modern {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.author-badges-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .author-badges-modern {
        justify-content: flex-start;
    }
}

.author-stats-modern {
    font-size: 0.7rem;
    color: #777;
}

/* Post Content */
.post-content-modern {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.post-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.post-number-modern {
    background: #333;
    color: #ccc;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-date-modern {
    color: #777;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-body-modern {
    flex: 1;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-body-modern p {
    margin-bottom: 0.8rem;
}

.post-body-modern h1, 
.post-body-modern h2, 
.post-body-modern h3, 
.post-body-modern h4, 
.post-body-modern h5 {
    color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.post-body-modern ul, 
.post-body-modern ol {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.post-body-modern blockquote,
.bbcode-quote {
    background: #1a1a1a;
    border-left: 3px solid #555;
    padding: 0.8rem;
    margin: 0.8rem 0;
    border-radius: 0;
}

.quote-header {
    font-weight: 600;
    color: #ccc;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.quote-content {
    color: #aaa;
    font-style: italic;
}

/* Post Footer */
.post-footer-modern {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 0.8rem;
    border-top: 1px solid #2a2a2a;
}

.post-actions-modern {
    display: flex;
    gap: 0.3rem;
}

.post-actions-modern .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 2px;
    border: 1px solid #333;
    background: transparent;
    color: #888;
    transition: all 0.2s ease;
}

.post-actions-modern .btn:hover {
    background: #333;
    color: #ccc;
    border-color: #444;
}

/* Clean Pagination */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 0;
}

@media (max-width: 768px) {
    .pagination-modern {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

.pagination-modern .page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 768px) {
    .pagination-modern .page-info {
        order: 2;
    }
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.pagination-modern .page-link {
    background: #333;
    border: 1px solid #444;
    color: #ccc;
    padding: 0.4rem 0.6rem;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.pagination-modern .page-link:hover:not(.disabled):not(.active) {
    background: #444;
    color: #fff;
    border-color: #555;
}

.pagination-modern .page-link.active {
    background: #555;
    border-color: #666;
    color: #fff;
    font-weight: 500;
}

.pagination-modern .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2a2a;
}

/* Users Viewing */
.users-viewing-modern {
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 0.8rem;
    margin-top: 1rem;
}

.users-viewing-modern h6 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.users-viewing-modern p {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Sidebar Styling */
.sidebar-section {
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.sidebar-title {
    background: #1a1a1a;
    padding: 0.8rem;
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
    border-bottom: 1px solid #333;
}

.sidebar-content {
    padding: 0.8rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #888;
    font-size: 0.8rem;
}

.stat-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Reply Form */
.reply-form-modern {
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    margin-top: 1rem;
}

.reply-form-modern h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .thread-header-modern {
        padding: 1rem;
    }
    
    .post-content-modern {
        padding: 0.8rem;
    }
    
    .thread-title-modern {
        font-size: 1.3rem;
    }
    
    .thread-meta-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .thread-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary-gaming,
    .btn-secondary-gaming {
        width: 100%;
        text-align: center;
    }
}
