/* ===== FitLife – shared styles ===== */
:root {
  --bg: #0b0f14;
  --bg-2: #121923;
  --card: #18212d;
  --text: #eaf0f6;
  --muted: #93a1b3;
  --accent: #b6ff3b;     
  --accent-2: #00d1b2;
  --danger: #ff5c7a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
html { 
  scroll-behavior: smooth; 
}
body {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { 
  color: inherit; 
  text-decoration: none; 
}
img { 
  max-width: 100%; 
  display: block; 
}
.container { 
  width: min(1120px, 92%); 
  margin-inline: auto; 
}
section { 
  padding: 72px 0; 
}
h1, h2, h3 { 
  line-height: 1.2; 
}
h2.title { 
  font-size: clamp(1.7rem, 4vw, 2.4rem); 
  margin-bottom: 8px; 
}
p.sub { 
  color: var(--muted); 
  margin-bottom: 36px; 
  max-width: 620px; 
}
.accent { 
  color: var(--accent); 
}

/* ===== Navbar ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2a38;
}
.nav { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px; 
}
.logo { 
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .5px;
}
.logo span { 
  color: var(--accent);
}
.nav ul { 
  display: flex;
  gap: 28px;
  list-style: none; 
}
.nav ul a { 
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
  padding: 6px 0;
}
.nav ul a:hover, .nav ul a.active { 
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.burger { 
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: 2px solid var(--accent);
  cursor: pointer;
  background: var(--accent);
  color: #0b0f14;
  transition: transform .2s, box-shadow .2s;
  font-size: 1rem;
}
.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 22px rgba(182,255,59,.3); 
}
.btn.outline { 
  background: transparent; 
  color: var(--accent); 
}

/* ===== Hero ===== */
.hero {
  min-height: 86vh; display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,212,255,1) 100%),
    url("https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1600&q=70") center/cover;
}
.hero h1 { 
  font-size: clamp(2.4rem, 7vw, 4.4rem); 
  max-width: 720px; 
}
.hero p { 
  color: var(--muted); 
  font-size: 1.15rem; 
  margin: 18px 0 30px; 
  max-width: 520px; 
}
.hero .actions { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
}
.page-hero { 
  padding: 70px 0 30px; 
  background: var(--bg-2); 
  text-align: center; 
}
.page-hero p { 
  color: var(--muted); 
  max-width: 560px; 
  margin: 10px auto 0; 
}

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
  border: 1px solid transparent;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }
.alt { background: var(--bg-2); }

/* ===== Workout cards ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  padding: 8px 20px; border-radius: 40px; background: var(--card);
  color: var(--muted); border: 1px solid #263445; cursor: pointer; font-weight: 600;
}
.chip.active, .chip:hover { background: var(--accent); color: #0b0f14; border-color: var(--accent); }
.workout .tag {
  display: inline-block; font-size: .75rem; padding: 3px 12px; border-radius: 20px;
  background: rgba(0,209,178,.15); color: var(--accent-2); margin-bottom: 10px; font-weight: 700;
}
.workout .meta { display: flex; justify-content: space-between; margin: 14px 0; color: var(--muted); font-size: .88rem; }
.workout button { width: 100%; }
.hidden { display: none !important; }

/* ===== Tracker ===== */
.two-col { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
label { display: block; margin: 12px 0 5px; font-size: .9rem; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #2a3a4d;
  background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.result { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--bg); text-align: center; }
.result strong { font-size: 2rem; color: var(--accent); display: block; }
.progress { height: 14px; border-radius: 20px; background: var(--bg); overflow: hidden; margin: 14px 0; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s; }
.water-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.water-btns .btn { padding: 9px 18px; font-size: .9rem; }
ul.log { list-style: none; margin-top: 14px; max-height: 220px; overflow-y: auto; }
ul.log li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--bg); border-radius: 10px; margin-bottom: 8px; font-size: .92rem;
}
ul.log button { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.msg { margin-top: 12px; font-weight: 600; }
.msg.ok { color: var(--accent); }
.msg.err { color: var(--danger); }

/* Weekly plan table */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #243244; }
th { background: #1e2a3a; color: var(--accent); }
.table-wrap { overflow-x: auto; }

/* ===== Footer ===== */
footer { background: #070a0e; padding: 36px 0; text-align: center; color: var(--muted); font-size: .92rem; }
footer .logo { margin-bottom: 8px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .burger { display: block; }
  .nav ul {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav ul.open { max-height: 300px; }
  .nav ul li { padding: 14px 6%; border-bottom: 1px solid #1f2a38; }
  section { padding: 52px 0; }
  .hero { min-height: 74vh; }
}