/* assets/css/style.css - DARK AUTOMOTIVE THEME */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
    --bg-color: #121212;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #ffeb3b; /* Sportowa żółć */
    --accent-hover: #ffd600;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --danger: #ff5252;
    --success: #69f0ae;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* TŁO APLIKACJI (Tylko dla ekranów bez mapy) */
body.bg-image {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ELEMENTY INTERFEJSU (Glassmorphism) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
}

/* TYPOGRAFIA */
h1, h2, h3 { margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 1px; }
h1 { color: var(--accent); font-weight: 800; }
h2 { font-size: 1.2rem; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display: inline-block; margin-bottom: 20px; }

/* FORMULARZE */
input, select, textarea {
    width: 100%; padding: 12px; margin: 8px 0;
    background: rgba(0,0,0,0.3); border: 1px solid #444;
    color: white; border-radius: 8px; box-sizing: border-box;
    font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent); }

button, .btn-action, .btn-join {
    width: 100%; padding: 14px; margin-top: 10px;
    background: var(--accent); color: #000; font-weight: 800;
    border: none; border-radius: 8px; cursor: pointer;
    text-transform: uppercase; transition: 0.2s;
    display: inline-block; text-align: center; text-decoration: none;
    font-size: 14px;
}
button:hover, .btn-action:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 235, 59, 0.3); }

/* SPECIFICZNE PRZYCISKI */
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }

/* MODALE I EKRANY (Pełny ekran w grze) */
.modal-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 2000;
    transform: translateY(100%); transition: transform 0.3s ease-in-out;
    display: flex; flex-direction: column;
    padding-bottom: 80px; /* Miejsce na menu dolne */
}
.modal-screen.open { transform: translateY(0); }

.modal-header { padding: 20px; background: #1a1a1a; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.modal-content { padding: 20px; overflow-y: auto; flex: 1; }

/* DOLNA NAWIGACJA */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #1a1a1a; border-top: 1px solid #333;
    display: flex; justify-content: space-around;
    padding: 10px 0; z-index: 3000;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    color: #666; text-align: center; font-size: 10px; cursor: pointer; flex: 1;
}
.nav-item.active { color: var(--accent); }
.nav-icon { display: block; font-size: 20px; margin-bottom: 4px; }

/* ELEMENTY GRY */
.gps-pill {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    background: #fff; color: var(--accent);
    padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold;
    z-index: 1000; border: 1px solid var(--accent);
}
#map { width: 100%; height: 100%; z-index: 1; }

/* LISTY (Ranking, Kluby) */
.list-item {
    background: #1e1e1e; padding: 15px; margin-bottom: 10px; border-radius: 10px;
    display: flex; justify-content: space-between; align-items: center;
    border-left: 4px solid #333;
}
.list-item.highlight { border-left-color: var(--accent); }

/* STATYSTYKI */
.stat-box {
    text-align: center; padding: 20px; margin-bottom: 20px;
    background: linear-gradient(45deg, #111, #222);
    border-radius: 12px; border: 1px solid #333;
}
.stat-number { display: block; font-size: 3rem; color: var(--accent); font-weight: 900; }

#capture-bar-container {
    display: none; position: absolute; top: 100px; left: 50%; transform: translateX(-50%);
    width: 80%; background: rgba(0,0,0,0.8); padding: 10px; border-radius: 10px; z-index: 2000;
    border: 1px solid var(--accent); text-align: center;
}
#capture-progress {
    width: 100%; height: 10px; background: #333; border-radius: 5px; margin-top: 5px; overflow: hidden;
}
#capture-fill {
    height: 100%; width: 0%; background: var(--accent); transition: width 1s linear;
}
#capture-text { color: white; font-weight: bold; font-size: 14px; }