/* ==========================================
   THE COMMONS (TWITTER/X STYLE FEED UI)
   ========================================== */
.commons-container { 
    background: var(--bg); 
    padding: 2rem 1.5rem 4rem; 
    min-height: 100vh; 
}

.board-header { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    margin-bottom: 2rem; 
    gap: 1rem;
}

.board-header h2 { 
    font-family: var(--font-head); 
    font-size: clamp(1.5rem, 4vw, 2.2rem); 
    color: var(--cyan); 
    text-transform: uppercase;
}

.new-thread-btn { 
    background: var(--cyan); 
    color: #000; 
    border: none; 
    padding: 0.8rem 1.5rem; 
    font-family: var(--font-head); 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 40px; 
    transition: transform 0.2s;
}

.new-thread-btn:hover { 
    transform: scale(1.05); 
}

.filters { 
    display: flex; 
    gap: 0.5rem; 
    max-width: 800px; 
    margin: 0 auto 2rem; 
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 1rem;
}

.filter-tag { 
    background: transparent; 
    color: var(--text-muted); 
    border: 1px solid var(--border-dim); 
    padding: 0.4rem 0.8rem; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: all 0.2s; 
    white-space: nowrap; 
    border-radius: 20px; 
}

.filter-tag:hover, .filter-tag.active { 
    background: var(--text-main); 
    color: var(--bg); 
    border-color: var(--text-main); 
}

.filter-tag.locked { 
    border-color: var(--accent); 
    color: var(--accent); 
    font-weight: bold;
}

.forum-grid { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    background: var(--surface-alt);
    overflow: hidden;
}

.feed-post {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
    transition: background 0.3s;
    cursor: pointer; 
}

.feed-post:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feed-post:last-child {
    border-bottom: none;
}

.fp-avatar {
    width: 48px;
    height: 48px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fp-body {
    flex: 1;
    min-width: 0; 
}

.fp-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.fp-header strong {
    color: var(--text-main);
}

.fp-tag {
    color: var(--cyan);
    font-size: 0.65rem;
    border: 1px solid var(--cyan);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-weight: bold;
}

.fp-time {
    color: var(--text-muted);
}

.fp-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.fp-text {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 1rem;
    white-space: pre-wrap; 
}

.fp-media {
    width: 100%;
    max-height: 400px;
    object-fit: cover; 
    border-radius: 16px;
    border: 1px solid var(--border-dim);
    margin-bottom: 1rem;
}

.fp-media[src=""] {
    display: none;
}

.fp-actions {
    display: flex;
    gap: 2rem;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.action-btn:hover {
    color: var(--cyan);
}

.thread-comment {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-dim);
}

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

.forum-disclaimer { 
    max-width: 800px; 
    margin: 2rem auto 0; 
    padding: 1.5rem; 
    border: 1px dashed var(--accent); 
    background: rgba(255, 51, 0, 0.05); 
    color: #ccc; 
    font-size: 0.85rem; 
    text-align: center; 
    line-height: 1.6; 
    border-radius: 12px;
}

/* Modal Form Inputs (New Thread) */
.form-group { 
    margin-bottom: 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    text-align: left;
}

.form-group label { 
    font-size: 0.8rem; 
    color: var(--cyan); 
    text-transform: uppercase;
}

.form-group input, .form-group select { 
    background: #000; 
    border: 1px solid var(--border-dim); 
    color: #fff; 
    padding: 0.8rem; 
    font-family: var(--font-body); 
    outline: none; 
    width: 100%; 
    border-radius: 8px;
}

.form-group textarea { 
    background: #000; 
    border: 1px solid var(--border-dim); 
    color: #fff; 
    padding: 0.8rem; 
    font-family: var(--font-body); 
    outline: none; 
    width: 100%; 
    border-radius: 8px; 
    resize: vertical;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    border-color: var(--cyan); 
}