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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    color: #333;
    min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
    background: #cc0000;
    color: white;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pokeball {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(to bottom, white 50%, #cc0000 50%);
    border: 3px solid white;
    box-shadow: inset 0 0 0 4px #cc0000;
}

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: white; text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { text-decoration: underline; }
.nav-user { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ── Container ── */
.container {
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ── Alerts ── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert-danger  { background: #ffe0e0; border-left: 4px solid #cc0000; color: #800000; }
.alert-success { background: #e0ffe0; border-left: 4px solid #00aa00; color: #004400; }

/* ── Pokédex page ── */
.pokedex-container h1 { font-size: 2rem; color: #cc0000; margin-bottom: 0.4rem; }
.subtitle { color: #666; margin-bottom: 1.5rem; line-height: 1.5; }

.search-area { margin-bottom: 1.2rem; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border: 2px solid #cc0000;
    border-radius: 6px;
    outline: none;
}
.search-form input:focus { border-color: #990000; }
.search-form button {
    padding: 0.7rem 1.4rem;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}
.search-form button:hover { background: #aa0000; }

.pokemon-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #eee;
    margin-bottom: 1rem;
}
.pokemon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.pokemon-sprite { width: 96px; height: 96px; image-rendering: pixelated; }
.pokemon-header h2 { color: #cc0000; font-size: 1.4rem; }
.type-badges { margin-top: 0.4rem; }
.type-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    color: white;
    font-size: 0.78rem;
    font-weight: bold;
    margin-right: 0.3rem;
}
.pokemon-desc { color: #555; line-height: 1.6; margin-bottom: 0.5rem; }

.not-found {
    background: #fff8e0;
    border: 2px solid #f0c040;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: #665500;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.not-found a { color: #cc0000; }

.popular-searches { color: #888; font-size: 0.9rem; margin-top: 0.5rem; }
.popular-searches a { color: #cc0000; text-decoration: none; }
.popular-searches a:hover { text-decoration: underline; }

/* ── Lab page ── */
.lab-container h1 { font-size: 2rem; color: #cc0000; margin-bottom: 0.4rem; }
.lab-subtitle { color: #666; margin-bottom: 1.5rem; }

.research-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.research-card.secret { border: 2px solid #cc0000; }
.research-card h2 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}
.research-card p { color: #555; line-height: 1.7; margin-bottom: 0.4rem; }

.oak-quote {
    border-left: 4px solid #cc0000;
    margin: 1rem 0;
    padding: 0.6rem 1rem;
    color: #444;
    font-style: italic;
    font-size: 1.05rem;
    background: #fff5f5;
    border-radius: 0 6px 6px 0;
}
.oak-quote-author {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #888;
    font-style: normal;
}

.flag-box {
    background: #1a1a2e;
    color: #00ff88;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    margin-top: 1rem;
    word-break: break-all;
}

/* ── Login page ── */
.login-container { max-width: 420px; margin: 0 auto; }
.login-container h1 { font-size: 1.8rem; color: #cc0000; margin-bottom: 0.4rem; }
.login-subtitle { color: #666; margin-bottom: 1.8rem; line-height: 1.5; }

.login-form { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; color: #444; font-size: 0.9rem; }
.form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}
.form-group input:focus { border-color: #cc0000; }

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
}
.btn-primary:hover { background: #aa0000; }
