/* /public/css/lobby.css */

:root {
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #0ea5e9;
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.lobby-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text-primary);
}

.lobby-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lobby-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Glass Card for Action Area */
.action-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
}

.btn-create {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
    color: white;
}

/* Game List */
.game-list {
    display: grid;
    gap: 1rem;
}

.game-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.game-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.host-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.host-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.game-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-join {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-join:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .lobby-container { padding: 1rem; }
    .lobby-title { font-size: 2rem; }
    .game-item { flex-direction: column; gap: 1rem; text-align: center; }
    .btn-join { width: 100%; }
}