/* ==========================================================================
   Sol Brah — global stylesheet
   Shared by index.html, courses.html, mental-magic.html, retention-mastery.html.
   MailerLite embeds still carry a small page-local <style> block, since
   MailerLite injects a unique #mlb2-XXXXX id per form and overriding its
   !important rules requires matching that id's specificity — that part
   can't be centralized here.
   ========================================================================== */

:root {
  --bg: #0c0b08;
  --card-bg: #141209;
  --card-bg-hover: #1c1810;
  --border: #252018;
  --border-soft: #2e2820;
  --border-hover: #c9943a;
  --accent: #c9943a;
  --accent-hover: #d9a44a;
  --accent-text: #0c0b08;
  --text: #e0d4bc;
  --text-bright: #f0e6cc;
  --text-muted: #7a6e5e;
  --text-mutedhover: #a89070;
  --text-dim: #6b6050;
  --text-faint: #4a4238;
  --success: #7dba84;
  --font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --weight-heading: 800;
  --radius: 3px;
  --radius-sm: 2px;
}

/* --- Reset & page shell -------------------------------------------------- */

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

body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 64px;
  font-family: var(--font);
}

/* Narrow, vertically-stacked profile page (index, course detail pages) */
.page-stack {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wide grid page (courses hub) */
.page-grid {
  width: 100%;
  max-width: 900px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.page-stack .back-link { align-self: flex-start; margin-bottom: 20px; }

.footer {
  margin-top: 40px;
  font-size: 0.68rem;
  color: var(--border-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Bordered card (base) -----------------------------------------------
   Reused by every boxed component: .shop-card, .newsletter-card, .panel,
   .course-card, .video-box. Compose with `class="card <modifier>"`. --- */

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card-bg);
}

/* --- Profile header (index) ---------------------------------------------- */

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}
.name {
  font-size: 1.45rem;
  font-weight: var(--weight-heading);
  color: var(--text-bright);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.tagline {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.socials { display: flex; gap: 20px; margin-bottom: 32px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s;
}
.socials a:hover { color: var(--accent); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Welcome banner (index) — highlighted card, stands apart from the rest --- */

.welcome-card {
  width: 100%;
  margin-bottom: 28px;
  padding: 22px 24px;
  border-color: var(--accent);
  background: linear-gradient(160deg, #1c1509, var(--card-bg) 70%);
  text-align: center;
}
.welcome-title {
  font-size: 1rem;
  font-weight: var(--weight-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.welcome-text {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: var(--text);
}

/* --- Link buttons --------------------------------------------------------- */

.links { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.link-btn:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent);
  color: var(--text-bright);
}
.link-btn svg { width: 17px; height: 17px; flex-shrink: 0; fill: var(--accent); align-self: center; display: block; }

.link-btn-inner { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.link-btn-sub {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.2s;
}
.link-btn:hover .link-btn-sub,
.shop-header:hover .link-btn-sub { color: var(--text-mutedhover); }

/* --- Newsletter card (index) ---------------------------------------------
   .card supplies border/bg/radius; MailerLite's own embed body renders
   transparent so the headline + form share one visual box. --- */

.newsletter-card { width: 100%; padding: 18px 20px; }
.newsletter-heading { text-align: center; margin-bottom: 14px; }
.newsletter-title {
  font-size: 1rem;
  font-weight: var(--weight-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.newsletter-sub { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* --- Sol Dept shop card (index) -------------------------------------------- */

.shop-card { width: 100%; overflow: hidden; transition: border-color 0.2s; }
.shop-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s, color 0.2s;
}
.shop-header:hover { background: var(--card-bg-hover); color: var(--text-bright); }
.shop-title-row { display: flex; align-items: center; gap: 8px; }
.shop-title-row svg { width: 17px; height: 17px; flex-shrink: 0; fill: var(--accent); display: block; }

.best-sellers { padding: 14px 14px 16px; }
.best-sellers-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  text-align: center;
}
.best-sellers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.best-seller-item {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.best-seller-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Latest video (index) -------------------------------------------------- */

.video-section { width: 100%; margin-top: 28px; display: none; }
.video-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.video-section-label svg { width: 13px; height: 13px; fill: var(--text-faint); }

.video-box { display: block; width: 100%; overflow: hidden; text-decoration: none; transition: border-color 0.2s; }
.video-box:hover { border-color: var(--accent); }
.video-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--bg); }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201, 148, 58, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.video-box:hover .video-play-btn { background: var(--accent); transform: scale(1.06); }
.video-play-btn svg { width: 22px; height: 22px; fill: var(--bg); margin-left: 3px; }
.video-info { padding: 12px 16px 14px; }
.video-title { font-size: 0.85rem; font-weight: var(--weight-heading); color: #c8bba6; line-height: 1.35; }

/* --- Courses hub (courses.html) --------------------------------------------- */

.heading {
  font-size: 1.3rem;
  font-weight: var(--weight-heading);
  color: var(--text-bright);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  text-align: center;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card { display: block; overflow: hidden; text-decoration: none; transition: border-color 0.2s; }
.course-card:hover { border-color: var(--accent); }
.course-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; transition: transform 0.35s ease; }
.course-card:hover img { transform: scale(1.04); }
.course-card-title {
  padding: 12px 14px 14px;
  font-size: 0.85rem;
  font-weight: var(--weight-heading);
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
}
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .grid { grid-template-columns: 1fr; } }

/* --- Course detail panel (mental-magic, retention-mastery) ------------------ */

.panel { width: 100%; overflow: hidden; }
.thumb { width: 100%; display: block; }
