/*
Theme Name: Heeps
Theme URI: https://theheeps.com
Author: The Heeps
Description: Custom theme for The Heeps — free, privacy-first dating. Dark app surfaces, warm friendly content pages. BuddyPress + GamiPress ready.
Version: 0.2.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Private — The Heeps. All rights reserved.
Text Domain: heeps
*/

/* ——— Heeps design tokens v0.2.0: the split ———
   App surfaces (discover, cards, hero): dark dusk, warm accents.
   Content pages (onboarding, articles): warm cream, friendly light. */
:root {
  --heeps-dusk: #1a1033;
  --heeps-dusk-deep: #120b24;
  --heeps-dusk-card: #221741;
  --heeps-dusk-elevated: #2b1e52;
  --heeps-ember: #ff6b4a;
  --heeps-flame: #f43f5e;
  --heeps-gold: #f5b942;
  --heeps-beacon: #8b5cf6;
  --heeps-cream: #fff8f0;
  --heeps-trust: #3ecf8e;
  --heeps-ink: #241a38;
  --heeps-ink-on-dark: #fff8f0;
  --heeps-muted: #8a7fa3;
  --heeps-muted-on-dark: #b9aed4;
  --heeps-line: rgba(255, 180, 120, .14);
  --heeps-radius-card: 22px;
  --heeps-font-display: "Nunito", system-ui, sans-serif;
  --heeps-font-body: "Inter", system-ui, sans-serif;
  --heeps-shadow-warm: 0 14px 40px rgba(255, 107, 74, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--heeps-font-body);
  background: var(--heeps-cream);
  color: var(--heeps-ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--heeps-font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--heeps-flame); }
a:hover { color: var(--heeps-ember); }

.heeps-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header — dark, shared chrome */
.heeps-header {
  background: var(--heeps-dusk);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.heeps-header .heeps-wrap { display: flex; align-items: center; justify-content: space-between; }
.heeps-logo { font-family: var(--heeps-font-display); font-weight: 800; font-size: 1.5rem; color: #fff; text-decoration: none; }
.heeps-logo span { color: var(--heeps-ember); }
.heeps-nav a { color: #fff; text-decoration: none; margin-left: 22px; font-weight: 600; opacity: .9; }
.heeps-nav a:hover { opacity: 1; color: var(--heeps-gold); }

/* Buttons */
.heeps-btn {
  display: inline-block;
  font-family: var(--heeps-font-display);
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 1.05rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.heeps-btn-primary {
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff;
  box-shadow: 0 8px 24px rgba(244, 63, 94, .35);
}
.heeps-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 30px rgba(244, 63, 94, .45); }
.heeps-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .4); }
.heeps-btn-ghost:hover { border-color: #fff; color: #fff; }

/* Hero — dark app surface */
.heeps-hero {
  background:
    radial-gradient(1000px 520px at 70% -10%, rgba(255, 107, 74, .20), transparent 60%),
    radial-gradient(800px 500px at 15% 20%, rgba(139, 92, 246, .14), transparent 60%),
    linear-gradient(var(--heeps-dusk), var(--heeps-dusk-deep));
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
}
.heeps-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; color: var(--heeps-cream); }
.heeps-hero h1 .free { color: var(--heeps-gold); }
.heeps-hero p.lead { font-size: 1.2rem; color: var(--heeps-muted-on-dark); max-width: 640px; margin: 0 auto 2em; }
.heeps-hero .heeps-btn + .heeps-btn { margin-left: 12px; }

/* Feature cards — warm light */
.heeps-features { padding: 70px 0; }
.heeps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.heeps-card {
  background: #fff;
  border-radius: var(--heeps-radius-card);
  padding: 30px 26px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .10);
}
.heeps-card .icon { font-size: 2rem; margin-bottom: .4em; }
.heeps-card h3 { font-size: 1.25rem; margin-bottom: .3em; color: var(--heeps-ink); }
.heeps-card p { color: var(--heeps-muted); margin: 0; }

/* Rank ladder — dark app surface */
.heeps-ranks { background: linear-gradient(var(--heeps-dusk), var(--heeps-dusk-deep)); color: #fff; padding: 70px 0; text-align: center; }
.heeps-ranks h2 { color: var(--heeps-cream); }
.heeps-rank-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.heeps-rank {
  font-family: var(--heeps-font-display);
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  color: #1a1033;
  background: var(--rank-color, var(--heeps-gold));
}
.heeps-rank.phoenix { background: linear-gradient(135deg, var(--heeps-gold), var(--heeps-flame)); color: #fff; }
.heeps-rank-vip {
  background: linear-gradient(135deg, #f5b942, #ffe9b0);
  color: #5b3a00; border-color: #f5b942;
  box-shadow: 0 0 0 2px rgba(245, 185, 66, .35), 0 6px 18px rgba(245, 185, 66, .35);
}

/* Profile / discover cards — dark app surface */
.heeps-profile-card {
  background: var(--heeps-dusk-card);
  border: 1px solid var(--heeps-line);
  border-radius: var(--heeps-radius-card);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .35);
  position: relative;
}
.heeps-profile-card img.avatar-art { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.heeps-profile-card .scrim {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
  background: linear-gradient(transparent, rgba(18, 11, 36, .94));
}
.heeps-rank-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--heeps-font-display); font-weight: 800; font-size: .8rem;
  background: var(--rank-color, var(--heeps-gold)); color: #1a1033;
  padding: 6px 14px; border-radius: 999px;
}
.heeps-verified { color: var(--heeps-trust); font-weight: 700; font-size: .85rem; }

/* Onboarding / panels — warm light content surface */
.heeps-panel {
  background: #fff;
  border-radius: var(--heeps-radius-card);
  padding: 34px 30px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .10);
}
.heeps-panel h2, .heeps-panel h3 { color: var(--heeps-ink); }
.heeps-panel p { color: var(--heeps-muted); }
.heeps-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.heeps-style-card {
  background: var(--heeps-cream);
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
  padding-bottom: 12px;
}
.heeps-style-card:hover { transform: translateY(-3px); }
.heeps-style-card.selected {
  border-color: var(--heeps-ember);
  box-shadow: var(--heeps-shadow-warm);
}
.heeps-style-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.heeps-style-card .label { font-family: var(--heeps-font-display); font-weight: 800; color: var(--heeps-ink); padding: 10px 6px 0; }

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  background: #fff;
  border: 2px solid rgba(26, 16, 51, .12);
  border-radius: 14px;
  color: var(--heeps-ink);
  padding: 12px 16px;
  font-family: var(--heeps-font-body);
  font-size: 1rem;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--heeps-ember);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, .20);
}
::placeholder { color: var(--heeps-muted); opacity: .7; }

/* Logged-in user menu — avatar icon, upper right (greentv.com pattern) */
.heeps-user-menu { position: relative; margin-left: 18px; }
.heeps-user-avatar { background: none; border: none; cursor: pointer; padding: 0; line-height: 0; }
.heeps-user-avatar img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--heeps-ember); display: block;
  transition: transform .15s ease, border-color .15s ease;
}
.heeps-user-avatar:hover img { transform: scale(1.06); border-color: var(--heeps-gold); }
.heeps-user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 12px);
  background: var(--heeps-dusk-card); border: 1px solid var(--heeps-line);
  border-radius: 16px; min-width: 210px; padding: 8px; z-index: 200;
  box-shadow: 0 18px 44px rgba(10, 6, 24, .5);
}
.heeps-user-menu:hover .heeps-user-dropdown,
.heeps-user-menu:focus-within .heeps-user-dropdown { display: block; }
.heeps-user-dropdown a {
  display: block; color: var(--heeps-cream); text-decoration: none;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; margin: 0; font-size: .95rem;
}
.heeps-user-dropdown a:hover { background: rgba(255, 107, 74, .16); color: #fff; }

/* How it works */
.heeps-hero-slim { padding: 70px 0 80px; }
.heeps-eyebrow {
  font-family: var(--heeps-font-display); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; color: var(--heeps-gold); margin-bottom: 1em;
}
.heeps-how { padding: 70px 0; background: var(--heeps-cream); }
.heeps-how-step {
  display: flex; gap: 26px; align-items: flex-start;
  background: #fff; border-radius: var(--heeps-radius-card);
  padding: 34px 32px; margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .08);
}
.heeps-how-num {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff; font-family: var(--heeps-font-display); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.heeps-how-step h2 { color: var(--heeps-ink); font-size: 1.5rem; }
.heeps-how-step p { color: #4a3f63; }
.heeps-how-cta {
  text-align: center; background: linear-gradient(var(--heeps-dusk), var(--heeps-dusk-deep));
  border-radius: var(--heeps-radius-card); padding: 54px 30px; margin-top: 34px; color: #fff;
}
.heeps-how-cta h2 { color: var(--heeps-cream); }
.heeps-how-cta p { color: var(--heeps-muted-on-dark); }

@media (max-width: 640px) {
  .heeps-how-step { flex-direction: column; gap: 14px; padding: 26px 22px; }
}

/* Unlock explainers + teaser grids (Events / Groups) */
.heeps-unlock-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 14px;
}
.heeps-unlock-step {
  background: #fff; border-radius: var(--heeps-radius-card);
  padding: 24px; box-shadow: 0 12px 32px rgba(26, 16, 51, .08);
  display: flex; gap: 14px; align-items: flex-start;
}
.heeps-unlock-step span {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame));
  color: #fff; font-family: var(--heeps-font-display); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.heeps-unlock-step p { color: #4a3f63; margin: 0; font-size: .95rem; }
.heeps-unlock-note { color: #6b5f86; font-size: .9rem; margin-bottom: 30px; }
.heeps-points-bar { margin-bottom: 30px; }
.heeps-points-track {
  height: 12px; border-radius: 999px; background: #e9e2f4; overflow: hidden; margin-bottom: 8px;
}
.heeps-points-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--heeps-ember), var(--heeps-gold));
  transition: width .4s ease;
}
.heeps-points-bar p { color: #4a3f63; font-size: .95rem; }
.heeps-teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px;
}
.heeps-teaser-card {
  background: #fff; border-radius: var(--heeps-radius-card); overflow: hidden;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.heeps-teaser-card:not(.locked):hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(26, 16, 51, .16); }
.heeps-teaser-thumb { position: relative; }
.heeps-teaser-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
.heeps-teaser-card.locked .heeps-teaser-thumb img { filter: blur(9px) brightness(.5); }
.heeps-teaser-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center; padding: 16px;
}
.heeps-teaser-lock p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.heeps-teaser-body { padding: 20px 22px 24px; }
.heeps-teaser-body h3 { color: var(--heeps-ink); font-size: 1.2rem; margin-bottom: .3em; }
.heeps-teaser-meta { color: #6b5f86; font-size: .9rem; margin-bottom: .6em; }
.heeps-example-tag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  background: var(--heeps-dusk); color: var(--heeps-gold);
  padding: 4px 10px; border-radius: 999px; margin: 0;
}
.heeps-btn-small { padding: 10px 22px; font-size: .9rem; }

@media (max-width: 720px) {
  .heeps-unlock-steps { grid-template-columns: 1fr; }
}

/* Footer — dark shared chrome */
.heeps-footer { background: var(--heeps-dusk); color: rgba(255, 255, 255, .65); padding: 40px 0; font-size: .9rem; }
.heeps-footer a { color: rgba(255, 255, 255, .85); }
.heeps-footer a:hover { color: var(--heeps-gold); }

/* Discover deck actions */
.heeps-deck-actions { display: flex; gap: 18px; justify-content: center; margin-top: 22px; }
.heeps-deck-actions button {
  width: 68px; height: 68px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.6rem; box-shadow: 0 8px 22px rgba(26, 16, 51, .25);
  transition: transform .15s ease;
}
.heeps-deck-actions button:hover { transform: scale(1.08); }
.heeps-nope { background: #fff; color: var(--heeps-ink); }
.heeps-super { background: var(--heeps-gold); color: #1a1033; }
.heeps-like { background: linear-gradient(135deg, var(--heeps-ember), var(--heeps-flame)); color: #fff; }

/* Content pages — warm light */
.heeps-page { padding: 60px 0; }
.heeps-page .entry { max-width: 760px; margin: 0 auto; }
.heeps-page .entry h2, .heeps-page .entry h3 { color: var(--heeps-ink); }
.heeps-page .entry p, .heeps-page .entry li { color: #4a3f63; }

/* Discover embed */
.heeps-discover { padding: 3rem 0; }
.heeps-discover .heeps-wrap { max-width: 1100px; }

@media (max-width: 640px) {
  .heeps-nav { display: none; }
  .heeps-hero { padding: 60px 0 70px; }
  .heeps-panel { padding: 24px 20px; }
}
