/* RetroLobby Styles */

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #1a1a2e;
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --accent: #10b981;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Login Section */
.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.game-preview {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 3rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Login Box */
.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    margin-bottom: 0.5rem;
}

.login-box > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-google {
    background: #fff;
    color: #333;
    width: 100%;
}

.btn-google:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Lobby Page */
.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

/* Room List */
.rooms-section {
    margin-top: 2rem;
}

.rooms-section h2 {
    margin-bottom: 1rem;
}

.room-list {
    display: grid;
    gap: 1rem;
}

.room-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.room-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Status Pages */
.status-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.status-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.status-page h1 {
    margin-bottom: 0.75rem;
}

.status-page p {
    color: var(--text-muted);
    max-width: 400px;
}

/* Game Canvas */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#game-canvas {
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: #000;
}

.game-hud {
    display: flex;
    gap: 2rem;
    font-size: 1.25rem;
}
