:root {
  --bg: #0e0e16;
  --bg2: #16161f;
  --card: #1c1c28;
  --line: #2a2a3a;
  --text: #f4f4fa;
  --muted: #a3a3b8;
  --accent: #ff4d6d;
  --accent2: #7b2cbf;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 18px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 22, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.site-header nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: .95rem; }
.site-header nav a:hover { color: var(--text); }

/* hero */
.hero { text-align: center; padding: 40px 0 10px; }
.pill {
  display: inline-block; font-size: .8rem; letter-spacing: .3px;
  color: #ffd6de; background: rgba(255,77,109,.14);
  border: 1px solid rgba(255,77,109,.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; margin: 6px 0 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* filters */
.filter-group { margin: 16px 0 0; }
.filter-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin: 0 0 8px; text-align: center; font-weight: 600;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--bg2); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* level chips — muted (off) vs coloured (on) */
.level-chip { opacity: .45; }
.level-chip.active { opacity: 1; }
/* free start chip */
#freeFilter { border-color: #38b000; color: #38b000; }
#freeFilter.active { background: #38b000; color: #fff; border-color: #38b000; }
/* difficulty legend colours match result card */
.chip[data-lvl="Beginner"].active     { background: #38b000; border-color: #38b000; }
.chip[data-lvl="Intermediate"].active { background: #ffb02e; border-color: #ffb02e; color: #000; }
.chip[data-lvl="Advanced"].active     { background: #ff4d6d; border-color: #ff4d6d; }

/* wheel */
.wheel-wrap {
  position: relative; width: min(88vw, 480px); aspect-ratio: 1 / 1;
  margin: 26px auto 8px;
}
#wheel {
  width: 100%; height: 100%; display: block; border-radius: 50%;
  box-shadow: 0 18px 60px rgba(0,0,0,.5), 0 0 0 8px #12121a, 0 0 0 10px var(--line);
  cursor: pointer;
}
.pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 5;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 26px solid var(--accent);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
}

.spin-row { text-align: center; margin: 6px 0 10px; }
#spinBtn {
  font-size: 1.1rem; font-weight: 800; color: #fff; cursor: pointer;
  border: none; border-radius: 14px; padding: 14px 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px rgba(255,77,109,.35); transition: transform .1s ease;
}
#spinBtn:hover { transform: translateY(-2px); }
#spinBtn:active { transform: translateY(0); }
#spinBtn:disabled { opacity: .55; cursor: default; transform: none; }
.spin-hint { color: var(--muted); font-size: .85rem; margin-top: 8px; }

/* result */
.result {
  max-width: 720px; margin: 18px auto 40px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.result.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.result-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.result-emoji { font-size: 2.6rem; line-height: 1; }
.result h2 { margin: 4px 0 0; font-size: 1.6rem; }
.cat-tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .6px;
  color: var(--accent); font-weight: 700;
}
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 20px; }
.meta-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; text-align: center;
}
.meta-item span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 6px; }
.meta-item strong { font-size: .95rem; }
.lvl-beginner { color: #38b000; }
.lvl-intermediate { color: #ffb02e; }
.lvl-advanced { color: #ff4d6d; }

.summary { color: #dcdce6; line-height: 1.6; font-size: 1.02rem; }
.result h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.steps { margin: 0; padding-left: 20px; color: #dcdce6; line-height: 1.6; }
.steps li { margin-bottom: 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  background: rgba(123,44,191,.16); border: 1px solid rgba(123,44,191,.4);
  color: #d9c3f5; padding: 6px 12px; border-radius: 999px; font-size: .82rem;
}
.again {
  margin-top: 24px; width: 100%; padding: 13px; font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--bg2); border: 1px solid var(--accent);
  border-radius: 12px; cursor: pointer; transition: background .15s ease;
}
.again:hover { background: var(--accent); }

/* info section */
.info { max-width: 780px; margin: 10px auto 50px; }
.info h2 { font-size: 1.4rem; }
.info p { color: var(--muted); line-height: 1.7; }
.info .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.info .grid div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.info .grid h3 { margin: 0 0 6px; font-size: 1rem; }
.info .grid p { margin: 0; font-size: .9rem; }

/* directory teaser on the homepage (links out to /ideas/) */
.dir-teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin: 18px 0;
}
.dir-teaser-grid a {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; text-decoration: none; color: var(--text); font-size: .9rem;
  transition: border-color .15s ease;
}
.dir-teaser-grid a:hover { border-color: var(--accent); }

footer {
  border-top: 1px solid var(--line); color: var(--muted);
  text-align: center; padding: 26px 18px; font-size: .85rem;
}
footer a { color: var(--muted); }

/* breadcrumbs (ideas hub / category / idea pages) */
.crumbs {
  font-size: .82rem; color: var(--muted); padding: 14px 18px 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumb-sep { margin: 0 4px; opacity: .5; }

/* ideas hub / category / idea article pages */
.idea-page { padding: 24px 18px 50px; }
.idea-page h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 6px 0 14px; }
.idea-page h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.idea-page .lead-p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; max-width: 720px; }

.idea-hero { display: flex; align-items: center; gap: 16px; margin: 10px 0 18px; }
.idea-hero-emoji { font-size: 2.8rem; line-height: 1; }
.idea-hero h1 { margin: 4px 0 0; }
.idea-page .cat-tag {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .6px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.idea-page .cat-tag:hover { text-decoration: underline; }

.idea-page .steps { padding-left: 20px; color: #dcdce6; line-height: 1.65; }
.idea-page .steps li { margin-bottom: 8px; }
.idea-page .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-page .tool {
  background: rgba(123,44,191,.16); border: 1px solid rgba(123,44,191,.4);
  color: #d9c3f5; padding: 6px 12px; border-radius: 999px; font-size: .82rem;
}

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-col {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.pc-col h3 { margin: 0 0 10px; font-size: 1rem; }
.pc-pros h3 { color: #38b000; }
.pc-cons h3 { color: #ff4d6d; }
.pc-col ul { margin: 0; padding-left: 18px; color: #dcdce6; font-size: .9rem; line-height: 1.55; }

.mistakes { padding-left: 20px; color: #dcdce6; line-height: 1.65; }
.mistakes li { margin-bottom: 8px; }

.faq-item { margin-bottom: 16px; }
.faq-item h4 { margin: 0 0 6px; font-size: .98rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.cta-box {
  margin: 30px 0; padding: 20px; text-align: center; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,77,109,.12), rgba(123,44,191,.12));
  border: 1px solid var(--line);
}
.cta-box p { margin: 0 0 12px; color: var(--muted); }
.cta-box .again {
  display: inline-block; width: auto; padding: 12px 28px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff;
  text-decoration: none; border-radius: 12px; font-weight: 700;
}

.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.related-card {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: .88rem;
}
.related-card:hover { border-color: var(--accent); }
.related-card span { font-size: 1.15rem; }

.disclaimer { margin-top: 34px; font-size: .8rem; color: var(--muted); }

/* category + hub pages */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 20px 0;
}
.dir-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  transition: border-color .15s ease;
}
.dir-card:hover { border-color: var(--accent); }
.dir-card h4 { margin: 0 0 6px; font-size: .98rem; }
.dir-card .dir-meta { margin: 0 0 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.dir-card p:not(.dir-meta) { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.dir-card.small { padding: 12px 14px; }
.dir-card.small .dir-meta { color: var(--accent); }

.cat-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cat-section h2 { margin-bottom: 6px; }
.cat-section h2 a { text-decoration: none; color: var(--text); }
.cat-section h2 a:hover { color: var(--accent); }
.cat-count { color: var(--muted); font-weight: 400; font-size: .9rem; }
.cat-grid.preview { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.see-all { color: var(--accent); text-decoration: none; font-size: .92rem; font-weight: 600; }
.see-all:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .site-header nav a { margin-left: 12px; font-size: .85rem; }
  .meta { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}

