/* insider.fitness - shared styles (skool-style light theme) */

:root {
  --bg: #f8f7f5;
  --bg-raise: #ffffff;
  --bg-raise-2: #f1f0ed;
  --line: #e6e4e0;
  --text: #202124;
  --text-dim: #5f6368;
  --text-faint: #9a9fa6;
  --accent: #f8d481;        /* skool-style yellow (buttons) */
  --accent-ink: #2b2b2b;    /* text on yellow */
  --link: #2f6fed;          /* blue links */
  --volt: #b98900;          /* legacy accent token: readable amber on light bg */
  --danger: #d93838;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
  --maxw: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--link); }
a.link:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.logo {
  font-family: var(--sans); font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
}
.logo .tld { color: var(--text-faint); font-weight: 700; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 13px 24px; border-radius: 8px;
  transition: filter .12s ease, transform .08s ease;
}
.btn:active { transform: scale(.98); }
.btn-volt { background: var(--accent); color: var(--accent-ink); }
.btn-volt:hover { filter: brightness(.96); }
.btn-ghost {
  background: var(--bg-raise); color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- cards & badges ---------- */
.card {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .02em;
  color: #7a5b00; border: 1px solid #eedaa2;
  background: #fdf4dd;
  padding: 4px 12px; border-radius: 100px;
}
.badge-dim { color: var(--text-dim); border-color: var(--line); background: var(--bg-raise-2); }

/* ---------- chips (discover filters) ---------- */
.chip {
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); color: var(--text-dim); background: var(--bg-raise);
  transition: background .12s ease;
}
.chip:hover { background: var(--bg-raise-2); }
.chip.active { background: #6b7076; border-color: #6b7076; color: #fff; }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 0 20px;
}
.search input {
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 17px; color: var(--text);
  padding: 17px 0; width: 100%;
}
.search input::placeholder { color: var(--text-faint); }
.search .icon { color: var(--text-faint); font-size: 18px; }

/* ---------- type helpers ---------- */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
.mono { font-family: var(--mono); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.volt { color: var(--volt); }
.small { font-size: 13px; }

/* ---------- schedule (athlete page + dashboard) ---------- */
.week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
}
@media (max-width: 860px) { .week-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .week-grid { grid-template-columns: 1fr; } }

.day {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; min-height: 150px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
}
.day.today { border-color: var(--accent); border-width: 2px; }
.day-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint);
}
.day.today .day-head { color: var(--volt); }

.sess {
  background: var(--bg-raise-2); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; line-height: 1.4;
}
.sess .slot {
  font-family: var(--mono); font-size: 10px; color: var(--text-faint);
  letter-spacing: .08em; margin-bottom: 2px;
}
.sess .t { font-weight: 600; }
.sess .d { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.rest { color: var(--text-faint); font-size: 13px; font-style: italic; padding: 8px 10px; }

/* locked state */
.locked-zone { position: relative; }
.locked-zone .week-grid { filter: blur(7px); pointer-events: none; user-select: none; }
.lock-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(248,247,245,.25), rgba(248,247,245,.7));
  border-radius: var(--radius);
}
.lock-card {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 32px; text-align: center; max-width: 380px;
  box-shadow: var(--shadow-lg);
}

/* ---------- footer (skool-style minimal) ---------- */
footer {
  margin-top: 96px; padding: 28px 0 44px;
  font-size: 14px; color: var(--text-faint);
  display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap;
}
footer a:hover { color: var(--text-dim); }
