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

/* ── HERO ── */
.hero {
  width: 100%;
  background: linear-gradient(145deg, #2D3270 0%, #3a4090 40%, #4a5aaa 70%, #5BB8F5 100%);
  padding: 60px 24px 56px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(91,184,245,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(80,194,195,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-title {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 700; letter-spacing: 1px;
  color: #fff; margin-bottom: 16px;
  line-height: 1.15;
  position: relative;
}
.hero-tagline {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 300; color: rgba(255,255,255,0.75);
  line-height: 1.7; max-width: 520px;
  margin-bottom: 8px;
  position: relative;
}
.hero-verse {
  font-size: 13px; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.45); margin-top: 16px;
  letter-spacing: 0.3px;
  position: relative;
}

/* ── PUZZLE GRID ── */
.puzzles-section {
  width: 100%; max-width: 1100px;
  padding: 0 20px;
  margin-top: -28px;
  position: relative;
  z-index: 1;
}
.puzzles-heading {
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--text-dim); text-align: center;
  margin: 40px 0 24px; text-transform: uppercase;
}
.puzzles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

/* ── PUZZLE CARD ── */
.puzzle-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 8px rgba(45,50,112,0.06);
  border: 1px solid rgba(45,50,112,0.05);
}
.puzzle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(45,50,112,0.12);
}

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

.card-body { padding: 18px 20px 22px; }
.card-title {
  font-size: 18px; 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: 6px 14px; 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); }

/* ═══════════════════════════════════════
   CARD GRAPHICS — unique per puzzle
   ═══════════════════════════════════════ */

/* -- CALCROSS -- */
.gfx-calcross { background: #2D3270; }
.gfx-calcross .gfx-grid { display: grid; grid-template-columns: repeat(5, 34px); gap: 3px; }
.gfx-calcross .gfx-cell {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.gfx-calcross .gfx-cell--fixed { background: rgba(255,255,255,0.15); color: #fff; }
.gfx-calcross .gfx-cell--answer { background: #5BB8F5; color: #fff; }
.gfx-calcross .gfx-cell--blank { border: 1.5px dashed rgba(255,255,255,0.25); }
.gfx-calcross .gfx-cell--op { color: rgba(255,255,255,0.3); background: none; }

/* -- WORDMAZE -- */
.gfx-wordmaze { background: linear-gradient(145deg, #0f6e56, #085041); }
.gfx-wordmaze .gfx-grid { display: grid; grid-template-columns: repeat(5, 32px); gap: 3px; }
.gfx-wordmaze .gfx-cell {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3);
}
.gfx-wordmaze .gfx-cell--lit { background: #5DCAA5; color: #04342C; }

/* -- LOGICGRID -- */
.gfx-logicgrid { background: linear-gradient(145deg, #534AB7, #3C3489); }
.gfx-logicgrid .gfx-grid { display: grid; grid-template-columns: 50px repeat(3, 32px); gap: 2px; align-items: center; }
.gfx-logicgrid .gfx-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.7); text-align: right; padding-right: 6px; }
.gfx-logicgrid .gfx-cell {
  width: 32px; height: 30px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.2);
}
.gfx-logicgrid .gfx-cell--hdr { background: none; color: rgba(255,255,255,0.5); font-size: 9px; font-weight: 600; }
.gfx-logicgrid .gfx-cell--yes { background: #A999C8; color: #fff; }
.gfx-logicgrid .gfx-cell--no { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.2); }

/* -- NUMTRAIL -- */
.gfx-numbrix { background: linear-gradient(145deg, #BA7517, #854F0B); }
.gfx-numbrix .gfx-grid { display: grid; grid-template-columns: repeat(4, 34px); gap: 3px; }
.gfx-numbrix .gfx-cell {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,0.06); color: transparent;
}
.gfx-numbrix .gfx-cell--anchor { background: #EF9F27; color: #412402; }
.gfx-numbrix .gfx-cell--path { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }

/* -- LINKUP -- */
.gfx-linkup { background: linear-gradient(145deg, #185FA5, #0C447C); }
.gfx-linkup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px; width: 100%; max-width: 220px; }
.gfx-lw { padding: 6px 2px; border-radius: 4px; text-align: center; font-size: 8px; font-weight: 600; letter-spacing: 0.5px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
.gfx-lw--y { background: #5BB8F5; color: #fff; }

/* -- WORDBLOCKS -- */
.gfx-wordblocks { background: linear-gradient(145deg, #7979AD, #62859B); }
.gfx-wb-grid { display: grid; grid-template-columns: repeat(5, 30px); gap: 2px; }
.gfx-wb {
  width: 30px; height: 30px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}
.gfx-wb--a { background: #7DC9AB; color: #04342C; }
.gfx-wb--b { background: #EF9F27; color: #412402; }
.gfx-wb--c { background: #AFA9EC; color: #26215C; }

/* -- FLOWLINK -- */
.gfx-flowlink { background: linear-gradient(145deg, #993556, #72243E); }
.gfx-fl-grid { display: grid; grid-template-columns: repeat(4, 36px); gap: 3px; }
.gfx-fl {
  width: 36px; height: 36px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(255,255,255,0.06);
}
.gfx-fl--a { background: #ED93B1; border-radius: 50%; color: #4B1528; }
.gfx-fl--b { background: #85B7EB; border-radius: 50%; color: #042C53; }
.gfx-fl--c { background: #97C459; border-radius: 50%; color: #173404; }
.gfx-fl--e { color: transparent; }

/* -- BLOCKFIT -- */
.gfx-blockfit { background: linear-gradient(145deg, #D85A30, #993C1D); }
.gfx-bf-grid { display: grid; grid-template-columns: repeat(4, 34px); gap: 0; }
.gfx-bf {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
}
.gfx-bf--a { background: #EF9F27; }
.gfx-bf--b { background: #5DCAA5; }
.gfx-bf--c { background: #85B7EB; }
.gfx-bf--d { background: #ED93B1; }
.gfx-bf--e { background: #F09595; }
.gfx-bf--f { background: #AFA9EC; }

/* -- PLOTWORD -- */
.gfx-plotword { background: #2D3270; position: relative; }
.gfx-plotword .gfx-pw-label { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 2px; font-weight: 500; }
.gfx-plotword .gfx-pw-dots { position: relative; width: 75%; height: 60%; margin: auto; border-left: 1.5px solid rgba(255,255,255,0.15); border-bottom: 1.5px solid rgba(255,255,255,0.15); }
.gfx-pw-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #5BB8F5; transform: translate(-50%, 50%); }

/* -- KEYVERSE -- */
.gfx-keyverse { background: linear-gradient(145deg, #1D9E75, #0F6E56); }
.gfx-kv-cols { display: flex; gap: 5px; justify-content: center; }
.gfx-kv-col { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.gfx-kv-col span {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.12);
}
.gfx-kv-blank { background: transparent !important; border: 1.5px dashed rgba(255,255,255,0.4) !important; color: #5DCAA5 !important; }

/* -- TETRIS -- */
.gfx-tetris { background: #12122a; }

/* -- RIDDLE -- */
.gfx-riddle { background: linear-gradient(145deg, #2D3270, #1e2254); }
.gfx-riddle-wrap { text-align: center; padding: 16px; }
.gfx-riddle-line { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.6); line-height: 1.8; font-style: italic; }
.gfx-riddle-q { font-size: 36px; font-weight: 700; color: #5BB8F5; margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
  .puzzles-grid { grid-template-columns: 1fr; max-width: 360px; }
  .hero { padding: 40px 16px 44px; }
  .puzzles-section { margin-top: -20px; }
}
