/* Word Cookies Answers — colorful vibrant design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary:   #ea580c;
  --primary-d: #c2410c;
  --primary-l: #ffedd5;
  --orange:    #ea580c;
  --orange-l:  #fff7ed;
  --green:     #16a34a;
  --green-l:   #dcfce7;
  --purple:    #7c3aed;
  --purple-l:  #ede9fe;
  --blue:      #2563eb;
  --blue-l:    #dbeafe;
  --ink:       #111827;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 14px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 28px rgba(0,0,0,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.65; font-size: 16px; min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-d); }
p { margin-bottom: .85rem; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  background: #c2410c;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(194,65,12,.4);
}
.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 20px;
  color: #fff; letter-spacing: -.01em;
  line-height: 1; display: flex; align-items: center; gap: 10px;
}
.logo-tiles { display: flex; gap: 3px; }
.logo-tile {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 13px; color: #fff; line-height: 1; flex-shrink: 0;
}
.logo-tile.t1 { background: #f97316; }
.logo-tile.t2 { background: #ea580c; }
.logo-tile.t3 { background: #c2410c; }
.logo em { color: #fdba74; font-style: normal; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,.8); padding: 7px 14px; border-radius: 20px;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.18); }
.site-nav a.active { color: #fff; background: rgba(255,255,255,.2); }

/* ===== Breadcrumb ===== */
.breadcrumb-bar {
  background: var(--white); border-bottom: 1px solid var(--border); padding: .55rem 0;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .25rem; list-style: none; font-size: .82rem;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-current { color: var(--muted); }
.bc-sep { color: var(--border); margin: 0 .1rem; }

/* ===== Hero ===== */
.page-hero {
  background: linear-gradient(135deg, #431407 0%, #7c2d12 40%, #c2410c 100%);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 26px 26px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -100px; right: -60px; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: .82rem; font-weight: 600;
  padding: .3rem .95rem; border-radius: 20px;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #fff; line-height: 1.2; letter-spacing: -.02em;
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto .75rem;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.85);
  position: relative; z-index: 1; max-width: 560px; margin: 0 auto;
}
.hero-wave { display: block; width: 100%; height: 48px; margin-top: -2px; color: var(--bg); }
.main-content { padding: 2rem 0 3rem; }

/* ===== Daily highlight ===== */
.daily-highlight {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  border-radius: var(--radius-lg); padding: 1.8rem 2rem;
  margin-bottom: 2rem; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(234,88,12,.35);
}
.daily-highlight::after {
  content: ''; position: absolute; right: 1.5rem; top: .8rem;
  font-size: 4rem; opacity: .18; line-height: 1; pointer-events: none;
}
.daily-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.95); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .22rem .75rem; border-radius: 20px; margin-bottom: .7rem;
}
.daily-highlight h3 {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem;
  color: #fff; margin: 0 0 1rem;
}
.daily-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--orange);
  padding: .55rem 1.4rem; border-radius: 22px;
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.daily-btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.22);
  text-decoration: none; color: var(--orange);
}

/* ===== Section titles ===== */
.section-title {
  font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700;
  color: var(--ink); margin-bottom: 1.15rem;
  display: flex; align-items: center; gap: .7rem;
}
.section-title .title-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--primary-l);
}
.section-count {
  font-size: .78rem; font-weight: 600;
  color: var(--primary); background: var(--primary-l);
  padding: 2px 10px; border-radius: 20px; margin-left: .4rem;
}

/* ===== Cards / grids ===== */
.worlds-grid-section, .packs-section, .levels-section,
.blocks-grid-section, .packs-grid-section { margin-top: 2rem; }

.worlds-grid, .packs-grid, .levels-grid, .countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem; margin-bottom: 2rem;
}
.world-card, .pack-card, .level-card, .country-card {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem .5rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: .88rem;
  box-shadow: var(--shadow-sm); transition: all .18s;
  text-decoration: none; text-align: center;
}
.world-card:hover, .pack-card:hover, .level-card:hover, .country-card:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow);
  text-decoration: none;
}

/* Word Cookies specific pack cards */
.pack-card.colored {
  flex-direction: column; gap: .4rem;
  padding: 1.1rem .8rem; min-height: 80px;
  color: #fff; border: none;
}
.pack-card.colored:hover { color: #fff; }
.pack-card .emoji { font-size: 1.6rem; line-height: 1; }
.pack-card .name { font-size: .85rem; font-weight: 700; }
.pack-card .meta { font-size: .75rem; opacity: .85; }

/* Groups grid (Word Cookies) */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .7rem; margin-bottom: 2rem;
}
.group-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem .8rem;
  text-align: center; transition: all .18s; text-decoration: none;
}
.group-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow);
  transform: translateY(-2px); text-decoration: none;
}
.group-card .group-emoji { font-size: 1.4rem; margin-bottom: .3rem; }
.group-card .group-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.group-card .group-meta { font-size: .75rem; color: var(--muted); }

/* Levels list (Word Cookies) */
.levels-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.level-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem 1.1rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .18s; text-decoration: none;
}
.level-item:hover {
  border-color: var(--primary); transform: translateY(-1px);
  box-shadow: var(--shadow-sm); text-decoration: none;
}
.level-item .level-label { font-weight: 600; color: var(--ink); }
.level-item .level-count { font-size: .82rem; color: var(--muted); }

/* Answer pills */
.answers-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.answer-pill {
  background: var(--primary-l); border: 2px solid var(--primary);
  border-radius: 50px; padding: .35rem .9rem;
  font-weight: 700; font-size: .95rem;
  color: var(--primary-d); letter-spacing: .04em;
  transition: all .15s;
}
.answer-pill:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.answer-pill.bonus {
  background: var(--green-l); border-color: var(--green);
  color: #14532d;
}
.answer-pill.bonus:hover { background: var(--green); color: #fff; }

/* Word Connect word entries */
.puzzle-block { margin-bottom: 1.75rem; }
.puzzle-heading {
  font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700;
  color: var(--primary-d); margin-bottom: .8rem;
  padding: .3rem .9rem; background: var(--primary-l); border-radius: 6px;
  display: inline-block;
}
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 7px;
}
.word-entry {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
}
.word-entry:hover { border-color: var(--primary); transform: translateY(-1px); }
.word-entry .w {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 15px; text-transform: uppercase; color: var(--ink);
}
.word-entry .len {
  font-size: 11px; font-weight: 600;
  color: var(--primary); background: var(--primary-l);
  padding: 2px 6px; border-radius: 10px;
}

/* ===== Colorful feature cards ===== */
.feature-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.feature-card { border-radius: var(--radius-md); padding: 1.3rem 1.25rem; }
.feature-card.fc-blue   { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.feature-card.fc-orange { background: #fff7ed; border: 1.5px solid #fed7aa; }
.feature-card.fc-green  { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.feature-card.fc-purple { background: #faf5ff; border: 1.5px solid #e9d5ff; }
.feature-card .fc-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.feature-card h3 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.feature-card.fc-blue h3   { color: #1e40af; }
.feature-card.fc-orange h3 { color: #9a3412; }
.feature-card.fc-green h3  { color: #14532d; }
.feature-card.fc-purple h3 { color: #4c1d95; }
.feature-card p { font-size: .85rem; line-height: 1.6; margin: 0; color: var(--muted); }

/* ===== Pager ===== */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.5rem 0; }
.pager a {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--shadow-sm); transition: all .18s; text-decoration: none;
}
.pager a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.pager a.next { align-items: flex-end; text-align: right; }
.pager div.empty { background: transparent; box-shadow: none; border: none; }
.pager .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.pager .target { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); }

/* ===== About / FAQ ===== */
.about-section {
  margin-top: 2rem; background: var(--white);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.about-section h2, .about-section h3 {
  font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--ink); margin-bottom: .8rem;
}
.about-section p { font-size: .95rem; color: #374151; line-height: 1.75; margin-bottom: .75rem; }
.about-section p:last-child { margin-bottom: 0; }
.about-section a { color: var(--primary); font-weight: 600; }
.about-section a:hover { text-decoration: underline; }

.faq-section { margin-top: 2rem; padding-top: 1.75rem; border-top: 2px solid var(--border); }
.faq-section h2 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.3rem; margin-bottom: .6rem;
}
.faq-item h3 { font-family: 'Inter', sans-serif; font-size: .93rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.faq-item p { font-size: .88rem; color: #4b5563; line-height: 1.65; margin: 0; }

/* ===== Intro / appdescription ===== */
.appdescription { padding: 1.2rem 1.5rem; }
.appdescription .container { max-width: 960px; margin: 0 auto; }
.appdescription p { font-size: 1rem; line-height: 1.75; margin: 0; }
.appdescription strong { font-weight: 700; }

.intro-section { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0 24px; }
.intro-section .wrap { max-width: 860px; }
.intro-lead { font-size: 1.05rem; line-height: 1.75; color: var(--ink); margin-bottom: .9rem; }
.intro-lead strong { font-weight: 700; }
.intro-section p { font-size: .95rem; line-height: 1.72; color: #4b5563; margin-bottom: .75rem; }
.intro-section p:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a; margin-top: 4rem; padding: 2.5rem 0 0;
  color: rgba(255,255,255,.65);
}
.footer-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 22px 2rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-brand strong { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }
.footer-brand em { color: #fdba74; font-style: normal; }
.footer-brand p { font-size: .85rem; max-width: 280px; line-height: 1.6; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
  background: rgba(0,0,0,.3); padding: 1rem 22px;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.35);
}
.footer-related {
  text-align: center; padding: 10px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px;
}
.footer-related .related-label { font-size: 0.8rem; opacity: 0.7; margin-right: 8px; }
.footer-related a {
  display: inline-block; margin: 4px 8px; font-size: 0.85rem;
  color: inherit; opacity: 0.85; text-decoration: underline;
}
.footer-related a:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .site-nav a:not(.active) { display: none; }
  .page-hero { padding: 2.5rem 1.25rem 3rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: .95rem; }
  .pager { grid-template-columns: 1fr; gap: 8px; }
  .about-section { padding: 1.2rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .words-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .worlds-grid, .packs-grid, .levels-grid, .countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
