/* ============================================================
   Taalcursus - stijl hoofdpagina  (hub.css)  v0.2.0
   Created by DieOuwe · www.dieouwe.nl
   Zelfde vormgeving en variabelen als de cursussen (papiamento/css/style.css),
   zodat alles één familie lijkt. Aanpassen? Pas eerst de variabelen in :root aan.
   ============================================================ */
:root {
  --ink: #2a2447; --muted: #7a7494; --line: rgba(42, 36, 71, .10); --bg: #fffaf3; --card: #fff;
  --brand: #6c4cf5; --pink: #ff4f8b; --sun: #ffc933;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --shadow-1: 0 1px 2px rgba(42, 36, 71, .06), 0 6px 18px rgba(42, 36, 71, .07);
  --shadow-2: 0 2px 4px rgba(42, 36, 71, .06), 0 14px 34px rgba(42, 36, 71, .12);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tint: #f1ecff; --edge: #6c4cf5;
}
[data-color="pink"]   { --tint: #ffe4ee; --edge: #ff4f8b; }
[data-color="green"]  { --tint: #e0f6d9; --edge: #3fae4f; }
[data-color="yellow"] { --tint: #fff2c0; --edge: #f0b400; }
[data-color="purple"] { --tint: #ece4ff; --edge: #7a5cff; }
[data-color="red"]    { --tint: #ffe2de; --edge: #ef5a4f; }
[data-color="blue"]   { --tint: #dcefff; --edge: #2f93ee; }
[data-color="orange"] { --tint: #ffe8cf; --edge: #ff8a1f; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); min-height: 100vh; overflow-x: hidden; background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -5%, #ffd9e6 0, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #dcecff 0, transparent 60%),
    radial-gradient(700px 500px at 50% 110%, #e6f9dc 0, transparent 60%);
  background-attachment: fixed;
  display: flex; flex-direction: column;
}
button { font-family: inherit; color: inherit; touch-action: manipulation; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 4px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.noscript { text-align: center; padding: 20px; }
.container { max-width: 1000px; width: 100%; margin: 0 auto; padding: 0 20px; flex: 1; }

/* bovenbalk */
.topbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: 1000px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; text-decoration: none; color: inherit; border-radius: 12px; }
.brand-logo { font-size: 1.7rem; line-height: 1; transition: transform .2s; }
a.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.1); }
.brand-name { font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.brand-name b { color: var(--brand); font-weight: 800; }
.stars-bar { display: flex; align-items: center; gap: 8px; background: #fff6d6; border: 2px solid var(--sun); border-radius: 999px; padding: 5px 14px; min-height: 44px; }
.stars-bar .count { font-size: 1.2rem; font-weight: 800; color: #b26a00; font-variant-numeric: tabular-nums; }
.stars-bar .label { font-size: .85rem; color: #a07a2b; font-weight: 600; }
.top-btn {
  min-width: 44px; min-height: 44px; border-radius: 999px; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-1);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.2rem; transition: transform .15s, border-color .15s;
}
.top-btn:hover { transform: translateY(-1px); border-color: var(--brand); }
.install-btn { padding: 0 14px; font-weight: 700; font-size: .95rem; color: var(--brand); border-color: rgba(108, 76, 245, .35); }
.install-btn .lbl { display: none; }

/* hoofdpagina */
.hero { text-align: center; padding: 34px 0 22px; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.5px; color: var(--ink); line-height: 1.15; }
.hero p { margin: 10px auto 0; max-width: 520px; color: var(--muted); font-size: 1.05rem; font-weight: 500; }

.taal-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 8px 0 40px; }
.taal-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "vlag tekst" "voet voet";
  align-items: center; column-gap: 18px; row-gap: 14px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 16px; box-shadow: var(--shadow-1);
  transition: transform .18s, box-shadow .18s; overflow: hidden;
}
.taal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--edge); }
.taal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.taal-card:active { transform: scale(.985); }
.vlag {
  grid-area: vlag; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 2.9rem;
  background: var(--tint); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--edge);
}
.taal-tekst { grid-area: tekst; display: flex; flex-direction: column; min-width: 0; }
.taal-tekst h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.taal-tekst .eigen { font-size: 1.05rem; font-weight: 700; color: var(--edge); }
.taal-tekst .sub { font-size: .9rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.taal-voet { grid-area: voet; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stat { background: var(--tint); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 800; }
.badge-go { background: var(--edge); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: .95rem; font-weight: 800; }
.badge-soon { background: rgba(42, 36, 71, .08); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 800; }
.taal-card.soon { background: rgba(255, 255, 255, .7); }
.taal-card.soon .vlag { filter: grayscale(.55); opacity: .85; }
.taal-card.soon::before { opacity: .45; }

/* "binnenkort"-pagina's */
.soon-page { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 0 50px; }
.soon-card { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 0 24px 28px; box-shadow: var(--shadow-2); overflow: hidden; }
.soon-card .stage { margin: 0 -24px 20px; padding: 30px 0 24px; background: var(--tint); }
.soon-card .stage .vlag { display: inline-grid; width: 120px; height: 120px; font-size: 4.2rem; }
.soon-card h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 800; }
.soon-card .eigen { color: var(--edge); font-weight: 800; font-size: 1.15rem; margin-top: 2px; }
.soon-card p { color: var(--muted); font-weight: 500; line-height: 1.55; margin: 14px auto 0; max-width: 420px; }
.soon-card ul { list-style: none; text-align: left; display: inline-block; margin: 16px 0 0; }
.soon-card li { padding: 4px 0; font-weight: 700; }
.soon-card li::before { content: "✓"; color: var(--edge); font-weight: 800; margin-right: 10px; }
.knop-terug {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; min-height: 52px; padding: 0 30px; border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, #6c4cf5, #8a6bff); box-shadow: 0 8px 20px rgba(108, 76, 245, .35);
}

/* uitleg-overlay (app installeren) */
.overlay { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(42, 36, 71, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet { width: min(480px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 24px 22px 20px; box-shadow: var(--shadow-2); }
.sheet h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.sheet p, .sheet li { line-height: 1.5; font-size: 1rem; }
.sheet ol, .sheet ul { margin: 8px 0 8px 22px; }
.sheet .warn { background: #fff4d6; border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; font-size: .95rem; }
.sheet-close { display: block; margin: 16px auto 0; min-height: 48px; padding: 0 32px; border-radius: 999px; font-size: 1.05rem; font-weight: 800; color: #fff; background: var(--brand); }

footer { text-align: center; padding: 8px 20px 36px; color: var(--muted); }
footer .foot-main { font-weight: 800; color: var(--brand); }
footer .credit { margin-top: 6px; font-size: .78rem; }
footer a { color: inherit; }

@media (min-width: 640px) {
  .install-btn .lbl { display: inline; }
  .taal-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 900px) {
  .taal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .topbar-inner { padding: 6px 10px; gap: 8px; }
  .stars-bar { padding: 4px 12px; gap: 6px; }
  .hero { padding: 22px 0 14px; }
  .vlag { width: 72px; height: 72px; font-size: 2.5rem; }
  .taal-tekst h2 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   Merk "De wereld rond in 80 vragen" (v0.2.0): hemel, speelse letters, stippellijnen.
   Staat achteraan, zodat het de standaardwaarden hierboven overschrijft. Zon, wolken en ballonnen: sfeer.css / sfeer.js.
   ============================================================ */
:root {
  --ink: #3a2b1f; --muted: #6d4c41; --brand: #ff4081; --pink: #ff4081; --dash: #ff80ab;
  --font: "Comic Sans MS", "Baloo 2", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --sun-top: 74px;
}
body { background-color: #b3e5fc; background-image: linear-gradient(180deg, #87ceeb 0%, #b3e5fc 45%, #fff8b0 100%); background-attachment: fixed; position: relative; }
.container, footer { position: relative; z-index: 2; }
.topbar { background: rgba(255, 255, 255, .85); border-bottom: 3px dashed var(--dash); }
.brand-name b { color: var(--brand); }
.install-btn { color: var(--brand); border-color: rgba(255, 64, 129, .45); }
.top-btn:hover { border-color: var(--brand); }
.stars-bar { background: #fff8d6; border-color: #ffb300; }

.hero h1 { color: #ff4081; text-shadow: 3px 3px 0 #fff176, 6px 6px 0 rgba(255, 64, 129, .25); }
.hero p { color: var(--muted); font-weight: 700; }

.taal-card { background: rgba(255, 255, 255, .93); border: 4px dashed var(--dash); border-radius: 34px; box-shadow: 0 14px 34px rgba(0, 0, 0, .15); }
.taal-card::before { display: none; }
.taal-card:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 20px 44px rgba(0, 0, 0, .2); }
.taal-card.soon { background: rgba(255, 255, 255, .75); }
.taal-tekst h2 { color: var(--ink); }
.badge-go { background: linear-gradient(90deg, #ff4081, #ffb300); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.badge-soon { background: rgba(58, 43, 31, .08); }
.stat { background: #fff8d6; }

.soon-card { border: 4px dashed var(--dash); border-radius: 34px; }
.knop-terug { background: linear-gradient(90deg, #ff4081, #ffb300); box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.sheet-close { background: var(--brand); }
.sheet { border: 4px dashed var(--dash); }

footer { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 3px dashed var(--dash); margin-top: 10px; padding-top: 14px; color: var(--muted); font-weight: 700; }
footer .foot-main { color: var(--brand); }
footer a { color: var(--brand); }

/* meisje op de hoofdpagina (zelfde figuurtje als bij goed/fout in de cursussen) */
.hero-meisje { display: block; margin: 0 auto 8px; width: 250px; height: auto; filter: drop-shadow(0 8px 10px rgba(58, 43, 31, .22)); animation: meisjeZacht 5s ease-in-out infinite; }
@keyframes meisjeZacht { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@media (max-width: 480px) { .hero-meisje { width: 190px; } }
@media (prefers-reduced-motion: reduce) { .hero-meisje { animation: none; } }

/* v0.8.0 voet vast onderaan en compact (zoals de onderhoudspagina), zodat de weg, huisjes en bomen erboven zichtbaar blijven */
footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 8px 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; font-size: .8rem; }
footer p, footer .credit { margin: 0; font-size: .8rem; }
body { padding-bottom: 150px; }
