/* ELAHelp247 — shared shell styles
   Sister site to MathHelp247. Warm red/coral theme. US English throughout. */

:root{
  --coral:#e8553f;   /* primary brand / links / buttons */
  --amber:#f6a623;   /* accent / highlights / tags */
  --plum:#7a3b5e;    /* tertiary / secondary headings */
  --text:#111827;
  --muted:#6b7280;
  --bg:#fff7f5;
  --card:#ffffff;
  --border:#e5e7eb;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:var(--coral);text-decoration:none;}
a:hover{text-decoration:underline;}

.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  background:var(--card);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:50;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  font-weight:700;
  font-size:22px;
  color:var(--coral);
  white-space:nowrap;
}
.brand span{color:var(--plum);}
.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links > li{position:relative;}
.nav-links a{
  display:block;
  padding:8px 12px;
  color:var(--text);
  border-radius:8px;
  font-size:15px;
  font-weight:500;
}
.nav-links a:hover{
  background:var(--bg);
  color:var(--coral);
  text-decoration:none;
}
.nav-links a.external{color:var(--coral);font-weight:600;}

/* Dropdown */
.dropdown > a::after{content:" \25BE";font-size:11px;color:var(--muted);}
.dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:230px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(17,24,39,.12);
  padding:6px;
  z-index:60;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{display:block;}
.dropdown-menu a{padding:9px 12px;font-size:14px;}

.nav-toggle{display:none;background:none;border:0;font-size:26px;color:var(--text);cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
  padding:54px 0 30px;
  text-align:center;
}
.hero h1{
  font-size:34px;
  font-weight:700;
  margin:0 0 12px;
  color:var(--text);
}
.hero h1 .accent{color:var(--coral);}
.hero p{
  font-size:18px;
  color:var(--muted);
  max-width:680px;
  margin:0 auto;
}

/* ---------- Section headings ---------- */
.section{padding:34px 0;}
.section h2{
  font-size:26px;
  font-weight:700;
  color:var(--plum);
  margin:0 0 6px;
}
.section .subhead{color:var(--muted);margin:0 0 22px;}

/* ---------- Card grid ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
}
.card{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:9px;
  padding:20px;
  transition:transform .15s ease, box-shadow .15s ease;
  color:var(--text);
}
a.card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(232,85,63,.14);
  text-decoration:none;
}
.card h3{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--text);}
.card p{margin:0 0 14px;font-size:14px;color:var(--muted);flex:1;}
.tag{
  align-self:flex-start;
  font-size:12px;
  font-weight:600;
  color:var(--plum);
  background:rgba(122,59,94,.08);
  padding:4px 10px;
  border-radius:999px;
}
.card.soon{opacity:.85;}
.card .badge-soon{
  align-self:flex-start;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#fff;
  background:var(--amber);
  padding:3px 9px;
  border-radius:999px;
  margin-bottom:10px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  background:var(--coral);
  color:#fff;
  font-weight:600;
  padding:11px 20px;
  border-radius:9px;
  border:0;
  cursor:pointer;
  font-size:15px;
  font-family:inherit;
}
.btn:hover{background:#d4452f;text-decoration:none;color:#fff;}
.btn-outline{
  background:transparent;
  color:var(--coral);
  border:2px solid var(--coral);
}
.btn-outline:hover{background:var(--coral);color:#fff;}

/* ---------- Feature band (For teachers / Games) ---------- */
.band{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:30px;
  display:flex;
  gap:24px;
  align-items:center;
  flex-wrap:wrap;
}
.band .band-text{flex:1;min-width:260px;}
.band h2{margin-top:0;}
.band.amber{background:linear-gradient(135deg,#fff7f5,#fff1e6);}

/* ---------- Tool page ---------- */
.tool-main{padding:38px 0 60px;}
.tool-head{margin-bottom:24px;}
.tool-head .tag{margin-bottom:10px;}
.tool-head h1{font-size:30px;margin:6px 0 8px;color:var(--text);}
.tool-head p{color:var(--muted);margin:0;max-width:720px;}

.tool-panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px;
  margin-bottom:22px;
}
label{font-weight:600;display:block;margin-bottom:8px;}
textarea,input[type=text]{
  width:100%;
  font-family:inherit;
  font-size:16px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:9px;
  color:var(--text);
  background:#fff;
}
textarea:focus,input[type=text]:focus{
  outline:none;
  border-color:var(--coral);
  box-shadow:0 0 0 3px rgba(232,85,63,.15);
}
.controls{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap;}

.result{
  background:#fff;
  border:1px solid var(--border);
  border-left:4px solid var(--coral);
  border-radius:9px;
  padding:18px;
  margin-top:16px;
}
.result h3{margin:0 0 10px;color:var(--plum);}
.stat-row{display:flex;flex-wrap:wrap;gap:18px;margin:8px 0;}
.stat{background:var(--bg);border-radius:9px;padding:12px 16px;min-width:110px;text-align:center;}
.stat .num{font-size:24px;font-weight:700;color:var(--coral);display:block;}
.stat .lbl{font-size:13px;color:var(--muted);}
.working{font-size:14px;color:var(--text);background:var(--bg);padding:14px;border-radius:9px;margin-top:12px;}
.working code{background:#fff;border:1px solid var(--border);padding:1px 6px;border-radius:5px;}
.muted{color:var(--muted);}

/* Coming soon block */
.soon-block{text-align:center;padding:50px 20px;}
.soon-block .emoji{font-size:46px;}
.soon-block h1{color:var(--text);margin:14px 0 8px;}
.soon-block p{color:var(--muted);max-width:560px;margin:0 auto 22px;}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--card);
  border-top:1px solid var(--border);
  margin-top:50px;
  padding:40px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 2fr;
  gap:30px;
}
.footer-brand .brand{font-size:20px;}
.footer-brand p{color:var(--muted);font-size:14px;margin:10px 0 0;max-width:280px;}
.footer-col h4{margin:0 0 12px;font-size:15px;color:var(--text);}
.footer-col ul{list-style:none;margin:0;padding:0;}
.footer-col li{margin-bottom:8px;}
.footer-col a{color:var(--muted);font-size:14px;}
.footer-col a:hover{color:var(--coral);}
.crosspromo{
  background:linear-gradient(135deg,var(--coral),var(--plum));
  border-radius:12px;
  padding:22px;
  color:#fff;
}
.crosspromo h4{color:#fff;font-size:16px;margin:0 0 8px;}
.crosspromo p{font-size:14px;margin:0 0 14px;color:rgba(255,255,255,.92);}
.crosspromo a.btn-cross{
  display:inline-block;
  background:#fff;
  color:var(--coral);
  font-weight:700;
  padding:9px 16px;
  border-radius:9px;
}
.crosspromo a.btn-cross:hover{background:var(--amber);color:#fff;text-decoration:none;}
.footer-bottom{
  border-top:1px solid var(--border);
  margin-top:30px;
  padding-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* ---------- Responsive ---------- */
@media (max-width:760px){
  .nav-toggle{display:block;}
  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--card);
    border-bottom:1px solid var(--border);
    flex-direction:column;
    align-items:stretch;
    padding:10px 16px 18px;
    gap:2px;
  }
  .nav-links.open{display:flex;}
  .dropdown-menu{
    position:static;
    box-shadow:none;
    border:0;
    padding-left:12px;
    display:block;
  }
  .footer-grid{grid-template-columns:1fr;}
}

/* ===== Added for full tool/game set ===== */

/* Contextual Kiwiland promo band on tool/game pages */
.promo{
  background:linear-gradient(135deg,#fff1e6,#ffe6df);
  border:1px solid var(--border);
  border-left:4px solid var(--amber);
  border-radius:0 12px 12px 0;
  padding:18px 22px;
  margin:26px 0;
}
.promo h3{margin:0 0 6px;color:var(--plum);font-size:18px;}
.promo p{margin:0 0 12px;color:var(--text);font-size:14px;}

/* Word result chips (synonyms, rhymes) */
.wordlist{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.chip{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 14px;
  font-size:14px;
  color:var(--text);
}
.chip.ant{background:rgba(122,59,94,.08);border-color:rgba(122,59,94,.25);color:var(--plum);}
.group-label{font-weight:600;color:var(--plum);margin:16px 0 4px;}

/* Parts of speech highlighter */
.pos-output{font-size:18px;line-height:2.2;}
.pos{padding:2px 6px;border-radius:6px;margin:0 1px;white-space:nowrap;}
.pos-noun{background:#dbeafe;color:#1e3a8a;}
.pos-verb{background:#dcfce7;color:#166534;}
.pos-adj{background:#fef9c3;color:#854d0e;}
.pos-adv{background:#ffe4e6;color:#9f1239;}
.pos-pron{background:#f3e8ff;color:#6b21a8;}
.pos-prep{background:#e0f2fe;color:#075985;}
.pos-det{background:#f1f5f9;color:#334155;}
.pos-conj{background:#fae8ff;color:#86198f;}
.pos-other{background:#f3f4f6;color:#374151;}
.legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.legend span{font-size:12px;padding:3px 9px;border-radius:6px;}

/* Morphology explorer */
.morph{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;margin-top:8px;}
.morph .part{flex:1;min-width:120px;background:var(--bg);border:1px solid var(--border);border-radius:9px;padding:12px;text-align:center;}
.morph .part .kind{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);}
.morph .part .frag{font-size:22px;font-weight:700;color:var(--coral);margin:4px 0;}
.morph .part .mean{font-size:13px;color:var(--text);}

/* Games shared */
.game-stage{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:24px;}
.scorebar{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:16px;}
.scorebar .stat{flex:0 0 auto;}
.quiz-opts{display:grid;gap:10px;margin-top:8px;}
.quiz-opt{
  text-align:left;width:100%;background:#fff;border:1px solid var(--border);
  border-radius:9px;padding:13px 16px;font-size:15px;font-family:inherit;cursor:pointer;color:var(--text);
}
.quiz-opt:hover{border-color:var(--coral);}
.quiz-opt.correct{background:#dcfce7;border-color:#16a34a;color:#166534;}
.quiz-opt.wrong{background:#fee2e2;border-color:#dc2626;color:#991b1b;}
.feedback{margin-top:14px;font-weight:600;}
.feedback.ok{color:#166534;}
.feedback.no{color:#991b1b;}

/* Tiles for scramble / sentence builder */
.tiles{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;min-height:48px;}
.tile{
  background:var(--coral);color:#fff;border:0;border-radius:8px;padding:10px 14px;
  font-size:16px;font-family:inherit;cursor:pointer;font-weight:600;
}
.tile.bank{background:#fff;color:var(--text);border:1px solid var(--border);}
.tile:hover{opacity:.9;}
.answer-zone{background:var(--bg);border:1px dashed var(--border);border-radius:9px;padding:12px;min-height:54px;}

/* Guides / articles */
.article{max-width:760px;}
.article h2{color:var(--plum);font-size:22px;margin:26px 0 8px;}
.article h3{color:var(--text);font-size:18px;margin:20px 0 6px;}
.article p{color:var(--text);margin:0 0 14px;}
.article ul{margin:0 0 14px;padding-left:22px;color:var(--text);}
.article li{margin-bottom:6px;}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:8px;}
.breadcrumb a{color:var(--muted);}
