/* ============================================================
   EDUCERE — Home Page Styles
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--teal) 0%, #0A3A45 60%, var(--ink) 100%);
  color: var(--white); padding-bottom: 0;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--teal-muted) 0%, transparent 70%);
  bottom: -100px; left: -80px;
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding-top: 80px; padding-bottom: 64px;
}
@media(max-width:860px){
  .hero__inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__visual { display: none; }
}

.hero__content .badge { margin-bottom: 20px; }
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900;
  line-height: 1.06; margin-bottom: 20px; color: var(--white);
}
.hero__em {
  font-style: italic; color: var(--gold);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.8);
  max-width: 520px; margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,.65); font-weight: 500;
}

/* Game Preview */
.hero__visual { display: flex; justify-content: center; }
.hero__game-preview {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-xl);
  padding: 20px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.game-preview__badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(232,160,48,.2); border: 1px solid rgba(232,160,48,.3);
  color: var(--gold-light); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.game-preview__grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px;
  background: rgba(255,255,255,.05); border-radius: var(--radius-md);
  padding: 8px; margin-bottom: 14px;
}
.gp-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,.7); border-radius: 3px; background: rgba(255,255,255,.04);
}
.gp-cell.hi { background: rgba(232,160,48,.25); color: var(--gold-light); }
.game-preview__words { display: flex; flex-direction: column; gap: 6px; }
.game-preview__word {
  font-family: var(--font-mono); font-size: 0.8rem; padding: 5px 10px;
  border-radius: 4px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.6);
  font-weight: 600; letter-spacing: 0.05em;
}
.game-preview__word.found {
  background: rgba(16,185,129,.15); color: #6EE7B7;
  text-decoration: line-through;
}

/* Stats Strip */
.hero__stats {
  background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.08);
}
.stats-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  padding: 20px 40px; text-align: center;
}
.stat-item strong {
  display: block; font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 900; color: var(--gold);
}
.stat-item span { font-size: 0.85rem; color: rgba(255,255,255,.6); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.12); }
@media(max-width:600px){ .stat-divider { display: none; } .stat-item { padding: 16px 20px; } }

/* ── Topics Grid ────────────────────────────────────────────── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width:860px){ .topics-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px){ .topics-grid { grid-template-columns: 1fr 1fr; } }

.topic-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--white);
  border-radius: var(--radius-lg); border: 2px solid transparent;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all var(--transition); text-decoration: none; color: var(--ink);
}
.topic-card:hover {
  border-color: var(--teal); transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.topic-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.topic-card__body { flex: 1; min-width: 0; }
.topic-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.topic-card__count { font-size: 0.8rem; color: var(--gray-500); }
.topic-card__arrow { color: var(--gray-500); font-size: 1.1rem; transition: transform var(--transition); }
.topic-card:hover .topic-card__arrow { transform: translateX(4px); color: var(--teal); }

/* Topic Colors */
.topic-card--math    .topic-card__icon { background: #E0F2FE; }
.topic-card--science .topic-card__icon { background: #DCFCE7; }
.topic-card--history .topic-card__icon { background: #FEF3C7; }
.topic-card--language.topic-card__icon { background: #F3E8FF; }
.topic-card--geo     .topic-card__icon { background: #FCE7F3; }
.topic-card--econ    .topic-card__icon { background: #FFF7ED; }

/* ── Featured Game Cards ─────────────────────────────────── */
.game-card { cursor: pointer; }
.game-card__thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.game-card__difficulty {
  position: absolute; top: 12px; right: 12px;
}
.game-card__body { padding: 20px; }
.game-card__type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-muted); margin-bottom: 6px; }
.game-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.game-card__desc  { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.5; }
.game-card__meta  { display: flex; gap: 12px; font-size: 0.8rem; color: var(--gray-500); }
.game-card__footer { display: flex; align-items: center; justify-content: space-between; }

/* ── Game Types ──────────────────────────────────────────── */
.game-types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media(max-width:860px){ .game-types-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px){ .game-types-grid { grid-template-columns: 1fr; } }

.game-type-card {
  padding: 28px 24px; background: var(--white);
  border-radius: var(--radius-lg); border: 2px solid var(--gray-200);
  transition: all var(--transition); text-decoration: none; display: block; color: var(--ink);
}
.game-type-card:hover {
  border-color: var(--teal); transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.game-type-card__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(13,79,92,.25);
}
.game-type-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.game-type-card p  { font-size: 0.875rem; line-height: 1.5; margin-bottom: 14px; }
.game-type-card__link { font-size: 0.85rem; font-weight: 700; color: var(--teal); }

/* ── How It Works ────────────────────────────────────────── */
.how-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
@media(max-width:860px){ .how-steps { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px){ .how-steps { grid-template-columns: 1fr; } }

.how-step {
  text-align: center; padding: 32px 20px;
  background: rgba(255,255,255,.06); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}
.how-step:hover { background: rgba(255,255,255,.1); }
.how-step__num {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px;
  text-transform: uppercase;
}
.how-step__icon { font-size: 2.2rem; margin-bottom: 14px; }
.how-step h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.how-step p  { font-size: 0.875rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ── Study Guide CTA Band ────────────────────────────────── */
.guides-cta-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media(max-width:740px){ .guides-cta-band { grid-template-columns: 1fr; } }

.guides-cta-band__text .badge { margin-bottom: 16px; }
.guides-cta-band__text h2 { margin-bottom: 14px; }
.guides-cta-band__text p  { max-width: 480px; margin-bottom: 24px; }

.guide-preview-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--teal); padding: 24px;
  box-shadow: var(--shadow-md);
}
.guide-preview-card__top { display: flex; gap: 8px; margin-bottom: 12px; }
.guide-preview-card h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--teal); }
.guide-preview-card__list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.guide-preview-card__list li { font-size: 0.875rem; color: var(--ink-soft); }
.guide-preview-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--gray-200);
  font-size: 0.8rem; color: var(--gray-500);
}
