/* =============================================
   LifeCheatSheet — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:        #0d0d0d;
  --surface:   #141414;
  --card:      #1a1a1a;
  --border:    #272727;
  --accent:    #c8f135;
  --accent2:   #f1d135;
  --text:      #efefef;
  --muted:     #777;
  --danger:    #ff5c5c;
  --radius:    10px;
  --radius-lg: 18px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 1rem;
}
.nav-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--text); letter-spacing: -0.4px;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-logo .badge {
  background: var(--accent); color: #0d0d0d;
  border-radius: 5px; padding: 1px 7px;
  font-size: 0.78rem; font-weight: 800;
}
.nav-links { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 0.82rem;
  padding: 0.3rem 0.65rem; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--border); text-decoration: none; }

/* ── LAYOUT ── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 5rem; flex: 1; width: 100%; }

/* ── HERO ── */
.hero { text-align: center; padding: 4.5rem 1rem 3rem; }
.eyebrow {
  display: inline-block;
  background: rgba(200,241,53,0.1);
  color: var(--accent); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 999px;
  border: 1px solid rgba(200,241,53,0.2);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero > p { font-size: 1.08rem; color: var(--muted); max-width: 540px; margin: 0 auto 2rem; font-weight: 300; }

/* ── SECTION ── */
.section-label { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-family: var(--font-head); font-weight: 700; }
.section-title { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.3rem; }

/* ── TOOL CARDS ── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1.75rem; }
.tool-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.7rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: 0.65rem;
  position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.tool-card:hover { border-color: rgba(200,241,53,0.4); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(200,241,53,0.07); }
.tool-card:hover::after { opacity: 1; }
.card-icon { font-size: 1.9rem; line-height: 1; }
.card-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(200,241,53,0.1); color: var(--accent); border-radius: 4px; padding: 0.12rem 0.5rem; }
.card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--text); }
.card-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; font-weight: 600; color: var(--accent); margin-top: 0.4rem; transition: gap var(--transition); }
.card-link:hover { gap: 0.7rem; text-decoration: none; }

/* ── TOOL PAGE HEADER ── */
.tool-header { margin-bottom: 2rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.83rem; margin-bottom: 1.5rem; transition: color var(--transition); }
.back-link:hover { color: var(--text); text-decoration: none; }
.tool-header h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem; }
.tool-header p { color: var(--muted); font-size: 0.97rem; max-width: 540px; }

/* ── TOOL LAYOUT ── */
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 680px) { .tool-layout { grid-template-columns: 1fr; } }

/* ── PANELS ── */
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.65rem;
}
.panel-title {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}

/* ── FORMS ── */
.form-group { margin-bottom: 1.15rem; }
label { display: block; font-size: 0.83rem; font-weight: 500; color: var(--muted); margin-bottom: 0.4rem; }
input[type="number"], input[type="text"], select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.72rem 1rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,241,53,0.1); }
select option { background: #1a1a1a; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  padding: 0.78rem 1.4rem; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--accent); color: #0d0d0d;
  width: 100%; font-size: 0.97rem; padding: 0.95rem; margin-top: 0.5rem;
}
.btn-primary:hover { background: #d4f54d; box-shadow: 0 6px 22px rgba(200,241,53,0.25); transform: translateY(-1px); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #333; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(200,241,53,0.35); }
.btn-outline:hover { background: rgba(200,241,53,0.06); }

/* ── RESULT PANEL ── */
.result-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.65rem;
  min-height: 220px; display: flex; flex-direction: column; gap: 1rem;
}
.result-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1;
  color: var(--muted); font-size: 0.88rem; gap: 0.7rem; text-align: center; padding: 2rem;
}
.result-empty .ei { font-size: 2.2rem; opacity: 0.3; }

/* ── VERDICT ── */
.verdict {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
}
.verdict-buy   { background: rgba(200,241,53,0.12); color: var(--accent); }
.verdict-maybe { background: rgba(241,209,53,0.12); color: var(--accent2); }
.verdict-skip  { background: rgba(255,92,92,0.12);  color: var(--danger); }

/* ── STATS ── */
.stat-row { display: flex; flex-direction: column; gap: 0.65rem; }
.stat-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.72rem 1rem; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.stat-label { font-size: 0.83rem; color: var(--muted); }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }

/* ── WORKOUT ── */
.workout-phase { font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin: 1rem 0 0.45rem; }
.exercise-list { display: flex; flex-direction: column; gap: 0.5rem; }
.exercise-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.78rem 1rem; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border); gap: 1rem;
}
.exercise-name { font-size: 0.9rem; font-weight: 500; }
.exercise-sets { font-size: 0.78rem; color: var(--accent); font-weight: 700; white-space: nowrap; background: rgba(200,241,53,0.1); padding: 0.18rem 0.6rem; border-radius: 5px; }

/* ── EXCUSE ── */
.excuse-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 2rem;
  font-size: 0.97rem; line-height: 1.75; font-style: italic;
  position: relative;
}
.excuse-box::before {
  content: '"'; position: absolute; top: -0.8rem; left: 0.9rem;
  font-size: 3.5rem; color: var(--accent); font-family: var(--font-head); line-height: 1; opacity: 0.35;
}

/* ── MOVIES ── */
.movie-list { display: flex; flex-direction: column; gap: 0.65rem; }
.movie-item {
  padding: 1rem 1.1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.movie-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.movie-meta  { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin: 0.15rem 0 0.3rem; }
.movie-desc  { font-size: 0.83rem; color: var(--muted); }

/* ── HUSTLES ── */
.hustle-list { display: flex; flex-direction: column; gap: 0.65rem; }
.hustle-item { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.hustle-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.hustle-tags  { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.hustle-tag   { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; background: var(--border); color: var(--muted); border-radius: 4px; padding: 0.13rem 0.5rem; }
.hustle-desc  { font-size: 0.83rem; color: var(--muted); }

/* ── ADS & AFFILIATE ── */
.ad-slot {
   display: none;
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 1.4rem; text-align: center; color: var(--muted);
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  margin: 2rem 0; background: rgba(255,255,255,0.012); font-weight: 700;
}
.affiliate-bar {
    display: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap;
}
.affiliate-bar p { font-size: 0.83rem; color: var(--muted); }
.affiliate-bar a {
  font-size: 0.78rem; font-weight: 700; color: var(--accent2);
  border: 1px solid rgba(241,209,53,0.3); padding: 0.3rem 0.8rem;
  border-radius: 6px; white-space: nowrap;
}

/* ── RELATED TOOLS ── */
.related-section { margin-top: 3.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.related-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition); color: var(--text);
}
.related-card:hover { border-color: rgba(200,241,53,0.4); transform: translateY(-2px); text-decoration: none; }
.related-card .rc-icon { font-size: 1.3rem; }
.related-card .rc-name { font-size: 0.85rem; font-weight: 500; }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.footer-brand p { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 300; margin-top: 0.3rem; max-width: 260px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.footer-links a { font-size: 0.83rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fu  { animation: fadeUp 0.45s ease both; }
.fu2 { animation: fadeUp 0.45s 0.1s ease both; }
.fu3 { animation: fadeUp 0.45s 0.2s ease both; }
.fu4 { animation: fadeUp 0.45s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
