/* Stili specifici per la pagina del Forum */

.forum-page-wrapper {
    padding: 40px 0;
    flex-grow: 1;
}

.forum-header {
    text-align: center;
    margin-bottom: 40px;
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--bg-light);
}

.forum-header h1 {
    font-size: 2.8em;
    margin: 0 0 10px 0;
    color: var(--text-light);
}

.forum-header p {
    font-size: 1.1em;
    color: var(--text-grey);
    margin-bottom: 25px;
}

.new-topic-btn {
    background-color: var(--accent-blue);
    color: #000;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.new-topic-btn:hover {
    background-color: var(--accent-blue-hover);
}

.forum-category {
    background-color: var(--bg-dark);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--bg-light);
    overflow: hidden;
}

.category-title {
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-dark);
}

.category-title h2 {
    margin: 0;
    font-size: 1.4em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-thread {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    border-bottom: 1px solid var(--bg-light);
    transition: background-color 0.2s ease;
}

.forum-thread:last-child {
    border-bottom: none;
}

.forum-thread:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.thread-icon {
    font-size: 1.5em;
    color: var(--text-grey);
    width: 30px;
    text-align: center;
}

.thread-details {
    flex-grow: 1;
}

.thread-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.thread-title:hover {
    color: var(--accent-blue);
}

.thread-info, .thread-info .username {
    font-size: 0.85em;
    color: var(--text-grey);
}
.thread-info .username:hover {
    text-decoration: underline;
}

.thread-stats {
    flex-shrink: 0;
    width: 150px;
    font-size: 0.9em;
    color: var(--text-grey);
    display: flex;
    flex-direction: column;
    text-align: right;
}

.thread-last-post {
    flex-shrink: 0;
    width: 120px;
    font-size: 0.9em;
    text-align: right;
}
.thread-last-post .username {
    font-weight: 600;
    color: var(--text-light);
    display: block;
}
.thread-last-post .username:hover {
     color: var(--accent-blue);
}
.thread-last-post span {
    color: var(--text-grey);
}

/* Responsive */
@media (max-width: 768px) {
    .forum-thread {
        flex-wrap: wrap;
    }
    .thread-details {
        width: 100%;
        order: 1;
        margin-left: 45px; /* Spazio per l'icona */
        margin-top: -30px; /* Allineamento verticale */
    }
    .thread-icon {
        order: 0;
    }
    .thread-stats, .thread-last-post {
        width: 50%;
        order: 2;
        text-align: left;
        margin-top: 10px;
        font-size: 0.8em;
    }
    .thread-last-post {
        text-align: right;
    }
}