/* FILE: src/main/resources/static/css/room.css */
.room-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.room-selector-header h2 {
    color: #4a5568;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.room-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.25s;
}

.room-card:hover::before {
    opacity: 1;
}

.room-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.room-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
}

.room-card-count {
    background: #667eea;
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.room-card-count.empty {
    background: #a0aec0;
}

.room-card-desc {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 14px;
    min-height: 1.2em;
}

.room-card-users {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.room-card-user-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f7fafc;
    border-radius: 16px;
    padding: 3px 10px 3px 4px;
    font-size: 0.78rem;
    color: #4a5568;
}

.room-card-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.room-card-more {
    color: #a0aec0;
    font-size: 0.78rem;
    font-style: italic;
}

.room-card-empty {
    color: #cbd5e0;
    font-size: 0.85rem;
    text-align: center;
    padding: 8px 0;
}

.room-selector-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.room-selector-footer .btn {
    width: auto;
    padding: 10px 30px;
}

/* 移动端适配 */
@media (max-aspect-ratio: 1/1) {
    .room-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
