/* ---------------------------------------------------- */
/* --- ARCHIVO: public/css/lobby/lobby.css            --- */
/* --- REGLAS SCOPEADAS A #lobbyView PARA EL MODO SPA --- */
/* ---------------------------------------------------- */

/* --- Scope Principal: solo afecta la vista del lobby dentro de #lobbyView --- */
#lobbyView {
    /* Ocupa toda la ventana (fixed) para simular el layout del body, pero solo afecta al ID. */
    position: fixed;
    inset: 0; /* Equivalente a top: 0; right: 0; bottom: 0; left: 0; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    
    /* Centrado y fondo (tomado del body original) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
    /* Asegura que el lobby esté encima del chat cuando sea visible */
    z-index: 1000;
}

/* --- Contenedor Principal del Lobby (sin tocar body global) --- */
#lobbyView .lobby-container {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background-color: white;
    border-radius: 16px;
    /* Sombra más pronunciada para dar profundidad */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease-in-out;
}

/* Efecto hover para el contenedor */
#lobbyView .lobby-container:hover {
    transform: translateY(-5px);
}

/* --- Títulos y Párrafos --- */
#lobbyView .lobby-container h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

#lobbyView .lobby-container p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* --- Formulario del Lobby --- */
#lobbyView .lobby-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Estilos para los campos de entrada y el selector */
#lobbyView .lobby-form input,
#lobbyView .lobby-form select {
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid #bdc3c7;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Efecto de foco para los inputs */
#lobbyView .lobby-form input:focus,
#lobbyView .lobby-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Estilos para el botón de envío */
#lobbyView .lobby-form button {
    background: #3498db; /* Un azul más vibrante */
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#lobbyView .lobby-form button:hover {
    background: #2980b9; /* Un azul más oscuro al pasar el ratón */
}

#lobbyView .lobby-form button:active {
    transform: scale(0.98); /* Efecto de "presionado" */
}
