/* ═══════════════════════════════════════════════
   Selah Puzzles — Home Page Styles
   ═══════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 20px 40px;
  max-width: 640px;
}
.hero-title {
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 700; letter-spacing: 2px;
  color: var(--navy); margin-bottom: 16px;
  line-height: 1.15;
}
.hero-tagline {
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 300; color: var(--text-mid);
  line-height: 1.7; max-width: 480px;
  margin-bottom: 8px;
}
.hero-verse {
  font-size: 13px; font-weight: 400; font-style: italic;
  color: var(--text-dim); margin-top: 12px;
  letter-spacing: 0.3px;
}

/* ── PUZZLE GRID ── */
.puzzles-heading {
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--text-dim); text-align: center;
  margin: 8px 0 24px; text-transform: uppercase;
}
.puzzles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; width: 100%; max-width: 860px;
  padding: 0 4px 48px;
}

/* ── PUZZLE CARD ── */
.puzzle-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
}
.puzzle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,50,112,0.1);
  border-color: rgba(45,50,112,0.15);
}
.puzzle-card--coming .card-graphic { opacity: 0.5; }
.puzzle-card--coming .card-body { opacity: 0.6; }

.card-graphic {
  height: 180px; display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.card-body {
  padding: 20px 22px 24px;
}
.card-title {
  font-size: 20px; font-weight: 700;
  letter-spacing: 2px; color: var(--navy);
  margin-bottom: 6px;
}
.card-desc {
  font-size: 13px; font-weight: 400;
  line-height: 1.65; color: var(--text-mid);
}
.card-badge {
  display: inline-block; margin-top: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.card-badge--play {
  background: var(--navy); color: var(--white);
}
.card-badge--soon {
  background: var(--bg-surface); color: var(--text-dim);
}

/* ── GRAPHIC: CALCROSS ── */
.gfx-calcross {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%);
}
.gfx-calcross .gfx-cell {
  width: 36px; height: 36px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.gfx-calcross .gfx-cell--filled { background: var(--navy); color: var(--white); }
.gfx-calcross .gfx-cell--blank { background: rgba(45,50,112,0.1); }
.gfx-calcross .gfx-cell--op { color: var(--navy); opacity: 0.4; background: none; }
.gfx-calcross .gfx-grid {
  display: grid; grid-template-columns: repeat(5, 36px); gap: 4px;
}

/* ── GRAPHIC: WORDMAZE ── */
.gfx-wordmaze {
  background: linear-gradient(135deg, #f0faf5 0%, #e4f5ee 100%);
}
.gfx-wordmaze .gfx-grid {
  display: grid; grid-template-columns: repeat(5, 36px); gap: 3px;
}
.gfx-wordmaze .gfx-cell {
  width: 36px; height: 36px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--navy);
  background: rgba(45,50,112,0.06);
}
.gfx-wordmaze .gfx-cell--lit {
  background: var(--teal); color: var(--white);
}

/* ── GRAPHIC: LOGICGRID ── */
.gfx-logicgrid {
  background: linear-gradient(135deg, #f5f0fa 0%, #efe8f6 100%);
}
.gfx-logicgrid .gfx-grid {
  display: grid; grid-template-columns: 60px repeat(4, 36px); gap: 2px;
  align-items: center;
}
.gfx-logicgrid .gfx-label {
  font-size: 10px; font-weight: 600; color: var(--navy);
  text-align: right; padding-right: 6px; letter-spacing: 0.5px;
}
.gfx-logicgrid .gfx-cell {
  width: 36px; height: 36px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: rgba(45,50,112,0.06); color: var(--navy);
}
.gfx-logicgrid .gfx-cell--yes { background: #A999C8; color: var(--white); }
.gfx-logicgrid .gfx-cell--no { background: rgba(45,50,112,0.06); color: rgba(45,50,112,0.25); }

/* ── GRAPHIC: NUMBRIX ── */
.gfx-numbrix {
  background: linear-gradient(135deg, #fff8f0 0%, #f5efe6 100%);
}
.gfx-numbrix .gfx-grid {
  display: grid; grid-template-columns: repeat(4, 40px); gap: 3px;
}
.gfx-numbrix .gfx-cell {
  width: 40px; height: 40px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  background: rgba(45,50,112,0.06); color: var(--navy);
}
.gfx-numbrix .gfx-cell--filled { background: var(--navy); color: var(--white); }
.gfx-numbrix .gfx-cell--path { background: rgba(91,184,245,0.2); }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
  .puzzles-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .hero { padding: 32px 16px 28px; }
}

/* ── GRAPHIC: LINKUP ── */
.gfx-linkup {
  background: linear-gradient(135deg, #fefdf5 0%, #f5f3e8 100%);
}
.gfx-linkup-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 12px; width: 100%; max-width: 240px;
}
.gfx-lw {
  padding: 6px 2px; border-radius: 5px; text-align: center;
  font-size: 8px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(45,50,112,0.07); color: var(--navy);
}
.gfx-lw--y { background: var(--navy); color: var(--white); }

/* ── GRAPHIC: WORDBLOCKS ── */
.gfx-wordblocks {
  background: linear-gradient(135deg, #f0f0fa 0%, #e8e8f4 100%);
}
.gfx-wb-grid {
  display: grid; grid-template-columns: repeat(5, 36px); gap: 3px;
}
.gfx-wb {
  width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--navy);
  background: var(--white); border: 1.5px solid rgba(45,50,112,0.1);
}
.gfx-wb--a { background: #7ccc9a; color: #1a4a2a; border-color: #6ab888; }
.gfx-wb--b { background: #f0a860; color: #5a3800; border-color: #dda050; }
.gfx-wb--c { background: #b49fdc; color: #2d1860; border-color: #a08cc8; }

/* ── GRAPHIC: FLOWLINK ── */
.gfx-flowlink {
  background: linear-gradient(135deg, #f5f0fa 0%, #ede6f5 100%);
}
.gfx-fl-grid {
  display: grid; grid-template-columns: repeat(4, 40px); gap: 4px;
}
.gfx-fl {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: rgba(45,50,112,0.06);
}
.gfx-fl--a { background: #e8b031; border-radius: 50%; }
.gfx-fl--b { background: #e85050; border-radius: 50%; }
.gfx-fl--c { background: #4aba5a; border-radius: 50%; }
.gfx-fl--e { background: rgba(45,50,112,0.06); color: transparent; }

/* ── GRAPHIC: PLOTWORD ── */
.gfx-plotword {
  background: linear-gradient(135deg, #f5f5fa 0%, #eeeef5 100%);
  position: relative;
}
.gfx-plotword .gfx-pw-dots {
  position: relative; width: 80%; height: 70%; margin: auto;
  border-left: 2px solid rgba(45,50,112,0.15);
  border-bottom: 2px solid rgba(45,50,112,0.15);
}
.gfx-pw-dot {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%; background: var(--navy);
  transform: translate(-50%, 50%);
}

/* ── GRAPHIC: KEYVERSE ── */
.gfx-keyverse {
  background: linear-gradient(135deg, #f5f8ff 0%, #edf0f8 100%);
}
.gfx-kv-cols {
  display: flex; gap: 6px; justify-content: center;
}
.gfx-kv-col {
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.gfx-kv-col span {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--navy);
  background: rgba(45,50,112,0.06);
}
.gfx-kv-blank {
  background: var(--white) !important;
  border: 2px solid var(--navy) !important;
}
