/* ===== GunnerUp Chat Lobby — modern responsive grid ===== */
.gu-lobby {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    color: #111827;
}

/* Header */
.gu-lobby__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.gu-lobby__header-text { flex: 1; min-width: 200px; }
.gu-lobby__title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.gu-lobby__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
.gu-lobby__create-btn {
    background: #111827;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.gu-lobby__create-btn:hover { background: #1f2937; }
.gu-lobby__create-btn:active { transform: scale(0.98); }

/* Filters bar — sort tabs + search input */
.gu-lobby__filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.gu-lobby__sorts {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
    flex-wrap: wrap;
}
.gu-lobby__sort {
    background: transparent !important;
    border: 0 !important;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280 !important;
    cursor: pointer;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}
.gu-lobby__sort:hover { color: #111827 !important; }
.gu-lobby__sort.is-active {
    background: #fff !important;
    color: #111827 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.gu-lobby__search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
    min-width: 200px;
}
.gu-lobby__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.gu-lobby__search {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 12px 9px 36px;
    font-family: inherit;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gu-lobby__search::placeholder { color: #9ca3af; }
.gu-lobby__search:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.06);
}
@media (max-width: 540px) {
    .gu-lobby__filters { flex-direction: column; align-items: stretch; }
    .gu-lobby__search-wrap { max-width: none; }
}

/* Grid — responsive: 3 col desktop, 2 col tablet, 1 col mobile */
.gu-lobby__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .gu-lobby__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .gu-lobby__grid { grid-template-columns: 1fr; }
}

/* Empty state */
.gu-lobby__empty {
    grid-column: 1 / -1;
    background: #fafafa;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
.gu-lobby__empty p { margin: 0; }

/* Room card */
.gu-lobby__cell {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 18px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    position: relative;
}
.gu-lobby__cell:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.gu-lobby__cell-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.gu-lobby__cell-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.gu-lobby__cell-cat { color: #6b7280; }

.gu-lobby__cell-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gu-lobby__cell-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gu-lobby__cell-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: auto;
}
.gu-lobby__cell-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.gu-lobby__cell-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #6b7280;
    font-weight: 600;
    font-size: 11px;
}
/* FULL rooms — desaturate + red badge in top-right */
.gu-lobby__cell--full {
    opacity: 0.68;
    filter: saturate(0.8);
    cursor: not-allowed;
}
.gu-lobby__cell--full:hover { transform: none; box-shadow: none; }
.gu-lobby__cell-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(220,38,38,0.35);
    z-index: 2;
}
.gu-lobby__cell-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: gu-pulse 1.8s infinite;
}
@keyframes gu-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modal */
.gu-lobby__modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.gu-lobby__modal[hidden] { display: none; }
.gu-lobby__modal-card {
    background: #fff !important;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    color: #111827 !important;
}
.gu-lobby__modal-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111827 !important;
}
.gu-lobby__modal-card label { display: block; margin-bottom: 14px; color: #111827 !important; }
.gu-lobby__modal-card label > span {
    display: block;
    font-size: 12px;
    color: #6b7280 !important;
    margin-bottom: 6px;
    font-weight: 500;
}
.gu-lobby__modal-card input,
.gu-lobby__modal-card textarea,
.gu-lobby__modal-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    color: #111827 !important;
    background: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gu-lobby__modal-card input::placeholder,
.gu-lobby__modal-card textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}
.gu-lobby__modal-card input:focus,
.gu-lobby__modal-card textarea:focus,
.gu-lobby__modal-card select:focus {
    outline: 0;
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}
.gu-lobby__modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.gu-btn {
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.4;
    text-shadow: none;
}
.gu-btn--primary {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
}
.gu-btn--primary:hover { background: #1f2937 !important; }
.gu-btn--ghost {
    background: #fff !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
.gu-btn--ghost:hover {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
}
