/* ==========================================
   🪐 V7.14 PLANET ENCYCLOPEDIA (learn/*.html)
   Shared design system. Each page sets --accent
   (and optionally --accent-soft) via a tiny inline
   <style> override before this file is linked.
   ========================================== */

:root {
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --bg-deep: #030303;
    --glass-bg: rgba(15, 17, 24, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 15% 0%, var(--accent-soft) 0%, transparent 45%);
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.65;
    min-height: 100vh;
}

h1, h2, h3, .nav-bar a, .cta-btn { font-family: 'Nunito', 'Segoe UI', sans-serif; }

/* --- NAV --- */
.nav-bar { padding: 20px 5%; max-width: 900px; margin: 0 auto; border-bottom: 1px solid var(--glass-border); }
.nav-bar a { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 800; transition: opacity 0.2s; }
.nav-bar a:hover { opacity: 0.75; }

.content-container { max-width: 800px; margin: 0 auto; padding: 50px 20px 20px; }

/* --- HERO --- */
.hero { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-portrait {
    width: 130px; height: 130px; border-radius: 50%; flex-shrink: 0;
    background-size: cover; background-position: center;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-soft), 0 0 0 8px var(--accent-soft);
}
.hero h1 { font-size: 2.75rem; color: var(--accent); margin-bottom: 6px; font-weight: 900; }
.subtitle { color: #94a3b8; font-size: 1.15rem; font-weight: 700; }
.tagline { color: #cbd5e1; font-size: 1rem; margin-top: 10px; max-width: 480px; }

/* --- FACT GRID --- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 40px; }
.fact-box {
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-left: 3px solid var(--accent);
    padding: 16px 18px; border-radius: 12px;
}
.fact-box h3 { color: var(--accent); font-size: 0.72rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.fact-box p { font-size: 1.05rem; font-weight: 700; color: #f1f5f9; }

/* --- ARTICLE --- */
.article-text { font-size: 1.08rem; color: #cbd5e1; margin-bottom: 36px; }
.article-text p { margin-bottom: 18px; }

.funfact-list { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.funfact-list li {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 14px 18px; padding-left: 44px; position: relative;
    color: #e2e8f0; font-size: 0.98rem;
}
.funfact-list li::before {
    content: "✨"; position: absolute; left: 14px; top: 14px; font-size: 1rem;
}

/* --- CTA --- */
.cta-section {
    text-align: center;
    background: linear-gradient(155deg, var(--accent-soft), rgba(10,10,14,0.6));
    padding: 40px 24px; border-radius: 20px; border: 1px solid var(--accent);
    margin-bottom: 60px;
}
.cta-section h2 { color: #fff; margin-bottom: 8px; font-size: 1.4rem; }
.cta-section p { color: #cbd5e1; margin-bottom: 20px; font-size: 0.95rem; }
.cta-btn {
    display: inline-block; background: var(--accent); color: #0B0E14;
    text-decoration: none; padding: 15px 36px; border-radius: 100px;
    font-size: 1.1rem; font-weight: 900; transition: 0.2s ease;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px var(--accent-soft); }

@media (max-width: 600px) {
    .hero { flex-direction: column; text-align: center; }
    .tagline { max-width: none; }
    .hero h1 { font-size: 2.2rem; }
}
