/* ─── Room Layout ─── */
.room-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.room-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
}

.room-main { flex: 1; min-width: 0; }

/* ─── Room Header ─── */
.room-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.room-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: var(--accent-soft);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.room-header__title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.room-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

/* ─── Participants ─── */
.participants {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1.5rem;
}

.participants__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.participants__count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.participants__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.participants__item:last-child { border-bottom: none; padding-bottom: 0; }

.participants__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-text);
    flex-shrink: 0;
}

.participants__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
}

/* ─── Conversations ─── */
.conversation {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.conversation__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.conversation__message {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.conversation__message:last-child { border-bottom: none; padding-bottom: 0; }

.conversation__meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversation__time {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.conversation__body {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
}

/* ─── Message Actions ─── */
.message-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.conversation__message:hover .message-actions { opacity: 1; }

.message-actions a {
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.message-actions a:first-child:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.message-actions a:last-child:hover {
    background: var(--surface-2);
    color: var(--text-bright);
}

/* ─── Message Form ─── */
.message-form {
    margin-top: 1rem;
}

.message-form__input-wrap {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.message-form__input-wrap input[type="text"] {
    flex: 1;
    height: 40px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.message-form__input-wrap input[type="text"]::placeholder { color: var(--text-muted); }

.message-form__input-wrap input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface);
}

.message-form__input-wrap button {
    height: 40px;
    padding: 0 1.2rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-on-accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.message-form__input-wrap button:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .room-layout { flex-direction: column; }
    .room-sidebar { width: 100%; position: static; }
}
