/* lobby.css - Theme Agnostic - Fixed Size Cards */

body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.terminal {
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.header h1 {
    margin: 0;
    font-size: 2.2em;
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    margin-left: 1rem;
    margin-right: 1rem;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 1em;
    border: 2px solid;
    background: transparent;
}

.btn {
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
    background: transparent;
}

.btn-primary {
    font-weight: bold;
}

/* Room List - Fixed Size Cards */
.room-list {
    flex: 1;
    overflow-y: auto;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);   /* Fixed width */
    justify-content: center;                          /* Centers the cards */
    gap: 20px;

}

/* Fixed Size Room Cards */
.room-item {
    display: flex;
    flex-direction: column;
    width: 240px;                    /* Fixed width */
    height: 230px;                   /* Fixed height */
    padding: 22px;
    border: 2px solid;
    border-color: var(--border);
    background: var(--darker);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.room-item:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    border-color: var(--primary);
    background: var(--dark);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.room-name {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    flex: 1;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-status {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.tag {
    padding: 4px 11px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Tag Colors */
.protected {
    border-color: #ff4444;
    color: #ff4444;
}

.open {
    border-color: #44ff88;
    color: #44ff88;
}

.irc {
    border-color: #4488ff;
    color: #4488ff;
}

/* Room Info */
.room-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.93em;
    opacity: 0.9;
    margin-top: auto;               /* Pushes info to bottom */
}

.room-info div {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Subtle accent line at bottom */
.room-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, currentColor, transparent);
    opacity: 0.25;
    transition: opacity 0.3s;
}

.room-item:hover::after {
    opacity: 0.65;
}

/* Status Bar */
.status-bar {
    margin-top: 15px;
    padding: 10px;
    border-top: 2px solid;
    text-align: center;
    font-size: 0.9em;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Password Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    border: 3px solid;
    background: transparent;
    padding: 30px;
    width: 380px;
    text-align: center;
    max-width: 90%;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1.1em;
    border: 2px solid;
    background: transparent;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Logo */
@font-face {
  font-family: "Love Letter";
  font-style: normal;
  font-weight: normal;
  src: url("/lovelt-webfont.woff") format("woff");
}

.logo {
    font-family: "Love Letter";
    position: absolute;
    left: 10px;
    font-weight: unset !important;
    font-size: 1.6em !important;
    text-transform: unset !important;
}
