/* ============================================================
   Word Connect Answers — wordconnectanswers.org
   Design: Matching CodyCross template
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --c-bg:        #F5F3FF;
  --c-white:     #FFFFFF;
  --c-light:     #F8F7FF;
  --c-border:    #E5E7EB;
  --c-navy:      #1e1b4b;
  --c-violet:    #4c1d95;
  --c-purple:    #7c3aed;
  --c-muted:     #6B7280;
  --c-ink:       #111827;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 12px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}

*, *::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(--c-bg);
  color: var(--c-ink);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--c-purple); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-violet); }
p { margin-bottom: .85rem; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #5b21b6 100%);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 13px; padding-bottom: 13px;
  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-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
  box-shadow: 0 2px 8px rgba(109,40,217,.5);
  flex-shrink: 0; color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 800;
}
.logo em { color: #c4b5fd; font-style: normal; }
.site-nav { display: flex; gap: 3px; }
.site-nav a {
  color: rgba(255,255,255,.75);
  padding: 7px 13px; border-radius: 20px;
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.15); }
.site-nav a.active { color: #fff; background: rgba(255,255,255,.12); }

/* ===== Breadcrumb ===== */
.breadcrumb-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: .6rem 0;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .25rem; list-style: none;
  font-size: .83rem;
}
.breadcrumb a { color: var(--c-purple); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-current { color: var(--c-muted); }
.bc-sep { color: var(--c-border); margin: 0 .1rem; }

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-violet) 60%, #7c3aed 100%);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -120px; right: -80px;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  bottom: -80px; left: -40px;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.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-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .82rem; font-weight: 600;
  padding: .35rem .9rem; border-radius: 20px;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.hero-wave {
  display: block; width: 100%; height: 48px;
  margin-top: -2px; color: var(--c-bg);
}

.main-content { padding: 2rem 0 3rem; }

/* ===== Daily highlight ===== */
.daily-highlight {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #0369a1 100%);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.daily-highlight::after {
  content: '📅';
  position: absolute; right: 1.5rem; top: 1rem;
  font-size: 4rem; opacity: .15; line-height: 1;
  pointer-events: none;
}
.daily-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: 20px;
  margin-bottom: .75rem;
}
.daily-highlight h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.25rem;
  color: #fff; margin: 0 0 1.1rem;
}
.daily-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--c-violet);
  padding: .55rem 1.4rem; border-radius: 22px;
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.daily-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  text-decoration: none; color: var(--c-violet);
}

/* ===== Sections ===== */
.blocks-grid-section { margin-top: 2rem; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--c-navy); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.3rem;
  background: linear-gradient(to bottom, var(--c-purple), var(--c-violet));
  border-radius: 4px;
  flex-shrink: 0;
}
.section-count {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 600;
  color: var(--c-purple); background: #ede9fe;
  padding: 2px 10px; border-radius: 20px;
  margin-left: .5rem;
}

/* ===== Level-card grid ===== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem; margin-bottom: 2.5rem;
}
.level-card {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem .5rem;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-ink); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
  text-decoration: none; text-align: center;
}
.level-card:hover {
  background: var(--c-purple); color: #fff;
  border-color: var(--c-purple);
  transform: translateY(-2px); box-shadow: var(--shadow);
  text-decoration: none;
}

/* ===== Puzzle block (day page) ===== */
.puzzle-block { margin-bottom: 2rem; }
.puzzle-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--c-violet); margin-bottom: .85rem;
  padding: .3rem .8rem;
  background: #ede9fe; border-radius: 6px;
  display: inline-block;
}
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.word-entry {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  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(--c-purple); transform: translateY(-1px); }
.word-entry .w {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 16px;
  text-transform: uppercase; color: var(--c-ink);
}
.word-entry .len {
  font-size: 11px; font-weight: 600;
  color: var(--c-purple); background: #ede9fe;
  padding: 2px 7px; border-radius: 10px;
}

/* ===== Pager ===== */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.5rem 0; }
.pager a {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm); transition: all .2s ease;
  text-decoration: none;
}
.pager a:hover { border-color: var(--c-purple); 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(--c-purple); }
.pager .target { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: var(--c-ink); }

/* ===== Info cards ===== */
.info-section { margin-top: 2rem; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.info-card {
  background: linear-gradient(135deg, var(--c-navy), var(--c-violet));
  border-radius: var(--radius-md);
  padding: 1.5rem 1.3rem;
  color: rgba(255,255,255,.85);
}
.info-icon { font-size: 2rem; margin-bottom: .6rem; }
.info-card h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: .35rem; }
.info-card p { font-size: .85rem; line-height: 1.6; margin: 0; }

/* ===== About / FAQ ===== */
.about-section {
  margin-top: 2rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.about-section h2, .about-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--c-navy); margin-bottom: .85rem;
}
.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(--c-purple); font-weight: 600; }
.about-section a:hover { text-decoration: underline; }

.faq-section { margin-top: 2rem; padding-top: 1.75rem; border-top: 2px solid var(--c-border); }
.faq-section h2 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--c-navy); margin-bottom: 1.1rem; }
.faq-item {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
  margin-bottom: .75rem;
}
.faq-item h3 { font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600; color: var(--c-navy); margin-bottom: .4rem; }
.faq-item p { font-size: .9rem; color: #4b5563; line-height: 1.65; margin: 0; }
.clue-faq { display: flex; flex-direction: column; gap: .4rem; }
.faq-answer {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--c-purple); letter-spacing: .04em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-navy);
  margin-top: 4rem; padding: 2.5rem 0 0;
  color: rgba(255,255,255,.7);
}
.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: #a78bfa; 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,.6); font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  background: rgba(0,0,0,.25); padding: 1rem 22px;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.4);
}

/* ===== Answers section ===== */
.answers-section { margin-top: 1.5rem; }

/* ===== 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: 10px; }
  .about-section { padding: 1.25rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .words-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
