/* View Forum Page Styles */

body {
    background-color: var(--background-color);
}

.view-forum-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.forum-header {
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--card-border);
}

.forum-header .forum-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.forum-header .forum-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

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

.breadcrumb-nav .current-page {
    color: var(--text-primary);
    font-weight: 500;
}


.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-create-thread {
    background: var(--navbar-gradient);
    color: var(--navbar-text);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-create-thread:hover {
    background: var(--navbar-gradient-reverse);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.thread-list-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--card-border);
}

.thread-list-header {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    padding: 15px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thread-item {
    display: grid;
    grid-template-columns: 50px 1fr 150px 150px;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

.thread-item:hover {
    background-color: var(--secondary-bg);
}

/* Pinned and Locked Thread Styles */
.thread-item.pinned-thread {
    background-color: var(--warning-bg-subtle);
    border-left: 4px solid var(--warning-color);
}

.thread-item.locked-thread {
    background-color: var(--danger-bg-subtle);
    border-left: 4px solid var(--danger-color);
}

.thread-item.pinned-thread.locked-thread {
    background-color: var(--warning-bg-subtle);
    border-left: 4px solid var(--warning-color);
}

.thread-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.thread-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    flex: 1;
}

.thread-title:hover {
    color: var(--primary-light);
}

.pinned-icon {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.locked-icon {
    color: var(--danger-color);
    font-size: 0.9rem;
}

.thread-moderation-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.thread-moderation-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.moderation-info {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: var(--secondary-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

.moderation-info i {
    margin-right: 3px;
}

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

.thread-details .thread-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.thread-details .thread-meta .author-name {
    color: var(--primary-color);
    font-weight: 500;
}

.thread-stats {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.thread-stats .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

.thread-last-post {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.thread-last-post .last-post-user {
    color: var(--primary-color);
    font-weight: 500;
}

/* Last post avatar styling */
.thread-last-post img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
}

.thread-last-post small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.no-threads {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.no-threads p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.no-threads p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thread-item {
        grid-template-columns: 40px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .thread-stats,
    .thread-last-post {
        display: none;
    }
    
    .thread-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .thread-moderation-actions {
        align-self: flex-end;
    }
    
    .moderation-info {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
} 