/* Core Page Typography & Book Theme */
body {
    font-family: 'Segoe UI', Georgia, serif;
    background-color: #060b0e;
    color: #cbd5e1;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    color: #38bdf8;
    text-align: center;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 35px;
    font-style: italic;
    font-size: 1.05rem;
}

/* Navigation & Continent Filters */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.nav-btn {
    background-color: #0f172a;
    color: #94a3b8;
    border: 1px solid #1e293b;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn.active {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Master Grid Framework */
.pokedex-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.pokemon-card {
    background-color: #0b111e;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pkmn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 12px;
}

.pkmn-name {
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.type-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.type-badge {
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #111e30;
    color: #38bdf8;
    border: 1px solid #1d4ed8;
    letter-spacing: 0.5px;
}

/* Flag & Upper Description Layout */
.atlas-layout {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    background-color: #0f172a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #1e293b;
}

.atlas-desc {
    flex: 1;
    min-width: 300px;
}

/* Deep Dossier Data Panels */
.deep-data {
    background-color: #070c14;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid #1e293b;
}

h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Clean Book-Style Column Alignment Engine */
.stat-line {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 14px;
    border-bottom: 1px solid #162238;
    padding-bottom: 10px;
    line-height: 1.5;
}

/* Distinct sky-blue book headings with rigid alignment layout */
.stat-name { 
    color: #38bdf8; 
    font-weight: 600; 
    width: 200px;         /* Fixed horizontal width separates topics perfectly */
    flex-shrink: 0;       /* Dictates that label text can never cramp or collapse */
    font-size: 0.95rem;
}

/* Crisp white text area wraps perfectly for lengthy descriptions */
.stat-val { 
    font-weight: 400; 
    color: #f1f5f9; 
    flex: 1;              /* Allows columns to scale dynamically to container space */
    padding-left: 15px;
    font-size: 0.95rem;
}

.special-note {
    background-color: #0c1a2c;
    border-left: 4px solid #38bdf8;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.hidden { 
    display: none !important; 
}

/* Responsive Overrides for Mobile Layouts */
@media (max-width: 600px) {
    .stat-line {
        flex-direction: column;
        gap: 4px;
    }
    .stat-name {
        width: 100%;
    }
    .stat-val {
        padding-left: 0;
    }
}
