﻿/* ==========================================================================
   rooms.css - 대화방 목록 헤더, 카톡 스타일 룸 카드 & 대형 아바타
   ========================================================================== */

/* 1. 메인 대화방 목록 헤더 & 컨테이너 */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #181a1f;
    border-bottom: 1px solid #272a31;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f3f4f6;
    letter-spacing: -0.5px;
}

.header-sub-badge {
    font-size: 0.72rem;
    background: #272a31;
    color: #f43f5e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 2px;
}

.rooms-container {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 카톡 스타일 룸 카드 (대형 104px 아바타 지원) */
.room-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1d24;
    border: 1px solid #282d38;
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.room-card:active {
    background: #252a35;
    transform: scale(0.98);
}

.room-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.room-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    transform: scale(1.18);
    display: block;
}

.room-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.room-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-name-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f3f4f6;
}

.room-badge {
    font-size: 0.72rem;
    background: #282e3c;
    color: #93c5fd;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.room-time {
    font-size: 0.75rem;
    color: #71717a;
}

.room-role {
    font-size: 0.8rem;
    color: #a1a1aa;
    line-height: 1.35;
}

.room-last-msg {
    font-size: 0.85rem;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
