/* ═══════════════════════════════════════════════════════════════════════════════
   WRITERS' ROOM
   ═══════════════════════════════════════════════════════════════════════════════ */

.room-page {
    background: #111;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.room-header {
    background: linear-gradient(180deg, #1e1e1e 0%, #141414 100%);
    border-bottom: 3px solid #D4AF37;
    padding: 40px 0;
}

.room-header-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.room-header-left {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.room-header-poster {
    width: 72px;
    height: 108px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    filter: brightness(0.9);
}

.room-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF37;
}

.room-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: #f0ece4;
    line-height: 1.1;
}

.room-creator {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #777;
    font-weight: 300;
}

.room-back {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s;
}

.room-back:hover { color: #D4AF37; }

.room-new-thread-btn {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111;
    background: #D4AF37;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.room-new-thread-btn:hover { background: #E8C547; }

/* ── New thread form ─────────────────────────────────────────────────────────── */
.room-new-thread-form {
    background: #161616;
    border-bottom: 1px solid #1e1e1e;
}

.room-new-thread-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px;
}

.room-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: #f0ece4;
    margin-bottom: 20px;
}

.room-form-field {
    margin-bottom: 16px;
}

.room-form-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.room-form-input,
.room-form-textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 12px 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #f0ece4;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
}

.room-form-input:focus,
.room-form-textarea:focus { border-color: #D4AF37; }

.room-form-input::placeholder,
.room-form-textarea::placeholder { color: #444; }

.room-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.room-form-save {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111;
    background: #D4AF37;
    border: none;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s;
}

.room-form-save:hover { background: #E8C547; }

.room-form-cancel {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: 1px solid #2a2a2a;
    padding: 12px 24px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.room-form-cancel:hover { color: #f0ece4; border-color: #555; }

/* ── Body ────────────────────────────────────────────────────────────────────── */
.room-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px 0;
}

/* ── Thread cards ────────────────────────────────────────────────────────────── */
.room-threads {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-thread-card {
    display: block;
    text-decoration: none;
    background: #1a1a1a;
    padding: 24px 28px;
    border-left: 3px solid #242424;
    transition: background 0.15s, border-color 0.15s;
}

.room-thread-card:hover {
    background: #1e1e1e;
    border-left-color: #D4AF37;
}

.room-thread-pinned {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #D4AF37;
    display: block;
    margin-bottom: 8px;
}

.room-thread-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #f0ece4;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.15s;
}

.room-thread-card:hover .room-thread-title { color: #fff; }

.room-thread-body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 14px;
    font-weight: 300;
}

.room-thread-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.room-thread-author {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #D4AF37;
}

.room-thread-dot {
    color: #333;
    font-size: 10px;
}

.room-thread-date,
.room-thread-replies {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #555;
}

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.room-empty {
    text-align: center;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.room-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: #f0ece4;
}

.room-empty-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}



/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .room-header-inner,
    .room-new-thread-inner,
    .room-body { padding-left: 20px; padding-right: 20px; }
    .room-header-inner { flex-direction: column; align-items: flex-start; }
    .room-title { font-size: 1.8rem; }
    .room-header-poster { width: 56px; height: 84px; }
}