/* gymgyme - pink monochrome, quiet-luxury. NO borders, NO new fonts (Arial only).
   premium comes from: one pink world with real depth, pink-tinted soft shadows
   (never gray), a confident type scale, an 8px rhythm, and smooth motion.
   separation = white cards + shadow + light, never a line. the funny voice stays. */

:root {
  --bg: #FFBDD4;          /* the pink world */
  --card: #ffffff;        /* elevated surfaces */
  --tint: #FFE3EE;        /* soft pink: inputs, chips, focus */
  --tint-2: #FFCEDF;      /* a shade deeper */
  --ink: #33000E;         /* near-black plum text */
  --ink-soft: #7A2647;    /* muted plum */
  --cherry: #8E0038;      /* the single strong accent */
  --cherry-deep: #6E0030;
  --on-cherry: #FFDCE9;   /* text on cherry */
  --r: 20px;              /* card radius */
  --r-sm: 12px;           /* control radius */
  /* pink-tinted shadows = the premium tell (gray shadows read cheap) */
  --sh-1: 0 1px 2px rgba(142,0,56,.06), 0 3px 10px rgba(142,0,56,.07);
  --sh-2: 0 4px 16px rgba(142,0,56,.10), 0 14px 40px rgba(142,0,56,.09);
  --sh-btn: 0 3px 12px rgba(142,0,56,.26);
  --t: 180ms cubic-bezier(.2,.7,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { transition: color var(--t); }
body > * { flex-shrink: 0; }
.push-down { margin-top: auto; padding-top: 36px; }

/* wide screens: content sits to the RIGHT of the left nav and fills the width,
   left-anchored - no centered island, no empty half (Damla). */
@media (min-width: 1041px) {
  body { max-width: none; margin: 0; padding-left: 300px; padding-right: 52px; }
}

/* no decoration = size IS the hierarchy. important things are simply bigger. */
h1 { font-size: 44px; letter-spacing: -0.01em; margin: 6px 0 4px; }
h2 { font-size: 24px; text-transform: lowercase; margin: 22px 0 6px; }

.tag { margin-bottom: 6px; }
.small { font-size: 12px; opacity: 0.75; margin-bottom: 8px; }
.loading { margin-top: 30px; }

/* top bar - one clean header row: brand left, three equal links right, thin rule under it */
.topbar { width: 100vw; margin: -44px 0 20px calc(50% - 50vw); padding: 14px 24px 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; border-bottom: 1px solid rgba(142, 0, 56, 0.18); }
.topbar a, .topbar a:visited { text-decoration: none; }
.topbar a:hover { color: #6E0030; }
.topbar .brand, .topbar .brand:visited { margin: 0; font-size: 20px; font-weight: bold; color: #33000E; }
.topnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topnav a, .topnav a:visited { font-weight: bold; font-size: 14px; color: #8E0038; }
.topnav a.suggest-big { font-size: 14px; }

/* hero - the engine comes first: big type straight on the pink, no box */
.hero { padding: 8px 0 0; margin-bottom: 16px; }
.hero-big { font-size: clamp(34px, 6vw, 56px); font-weight: bold; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 6px; }
.hero-big .nowrap { white-space: nowrap; }
.hero-line { font-size: 15px; line-height: 1.6; max-width: 600px; margin: 0 0 4px; }
.herobtn, .herobtn:visited { display: inline-block; background: var(--cherry); color: var(--on-cherry); font-weight: bold; font-size: 15px; border-radius: var(--r-sm); padding: 12px 22px; margin: 12px 0 4px; text-decoration: none; box-shadow: var(--sh-btn); transition: transform var(--t), background var(--t), box-shadow var(--t); }
.herobtn:hover { background: var(--cherry-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(142,0,56,.34); }
.herobtn:active { transform: translateY(0); box-shadow: var(--sh-btn); }
.hero-sub { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.dir-tag { margin: 0 0 8px; }
.dir-tag .stat { font-weight: bold; opacity: 0.9; }

/* first visit: onboarding is the page - directory chrome steps aside */
body.fresh #nav, body.fresh .dir-tag { display: none; }

/* brand header + greeting */
.brand { font-size: 26px; font-weight: bold; margin-bottom: 10px; }
.greet { margin-bottom: 12px; }
.greet input, .greet select { width: auto; display: inline-block; margin: 0 4px 0 0; padding: 6px 8px; }

/* the big clickable invite */
.suggest-big { font-size: 24px; font-weight: bold; display: inline-block; }

/* left sidebar - navigation lives on the LEFT (first-version layout), big links */
.sidebar { position: fixed; left: 28px; top: 44px; width: 240px; }
.sidebar .brand, .sidebar .brand:visited { display: block; font-size: 26px; font-weight: bold; color: #33000E; margin-bottom: 18px; text-decoration: none; }
.sidenav { display: block; }
.navbig, .navbig:visited { display: block; font-size: 23px; font-weight: bold; line-height: 1.55; color: #8E0038; text-decoration: none; }
.navbig:hover { color: #6E0030; }
/* narrow screens: sidebar flows on top, links go inline */
@media (max-width: 1040px) {
  .sidebar { position: static; width: auto; margin-bottom: 16px; }
  .sidebar .brand { margin-bottom: 8px; }
  .sidenav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .navbig { font-size: 18px; }
}

/* onboarding rows */
/* onboarding penceresi: mesaj gibi ustte acilir, isim girilmeden kapanmaz */
#ob-overlay { position: fixed; inset: 0; background: rgba(51, 0, 14, 0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
#ob-modal { position: relative; overflow: hidden; background: var(--cherry); color: var(--on-cherry); border-radius: 10px; padding: 34px 32px 30px; max-width: 560px; width: 100%; box-shadow: 0 18px 40px rgba(51, 0, 14, 0.35); }
#ob-modal h2 { margin: 6px 0 6px; color: var(--on-cherry); }
#ob-modal .tag, #ob-modal .ob-label, #ob-modal .ob-check { color: var(--on-cherry); }
#ob-modal .awning { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; overflow: hidden; }
#ob-modal .awning i { flex: none; width: 30px; height: 12px; border-radius: 0 0 15px 15px; background: var(--on-cherry); opacity: .95; }
#ob-modal .awning i:nth-child(even) { background: var(--tint-2); }
#ob-modal .ob-bulbs { position: absolute; left: 12px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; pointer-events: none; }
#ob-modal .ob-bulbs i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-cherry); opacity: .35; }
#ob-modal .ob-bulbs i:nth-child(odd) { animation: obblink 1.2s steps(1) infinite; }
#ob-modal .ob-bulbs i:nth-child(even) { animation: obblink 1.2s steps(1) .6s infinite; }
@keyframes obblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .35; } }
.ob-err { color: #FFF; font-weight: bold; font-size: 13px; min-height: 16px; margin: 6px 0 0; }
.ob-row { margin: 10px 0; }
.ob-row input[type="text"], .ob-row input:not([type]) { width: 280px; }
.ob-label { margin-top: 20px; font-weight: bold; }
.ob-check { display: inline-block; margin: 6px 18px 0 0; }
.ob-check input { width: auto; }

/* navbar - plain links, current category is simply bigger */
#nav { margin-bottom: 12px; line-height: 1.9; }
#nav a { margin-right: 14px; font-weight: bold; display: inline-block; white-space: nowrap; }
#nav a.on { font-size: 19px; }

/* tiny inline buttons (my program add/remove) - bare, no boxes */
button.mini {
  border: none; background: none; padding: 0 2px;
  font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold;
  color: #8E0038; cursor: pointer; text-decoration: underline;
}
button.mini:hover { color: #3D001A; }
button.mini.clear { margin-top: 16px; font-size: 12px; }

/* directory */
.cat { margin-top: 18px; }
.cat h2 { margin: 0 0 8px; }
.entry { margin: 0 0 5px; }
.entry a { font-weight: bold; }
.entry a:hover { color: var(--cherry-deep); }
/* the more recommended, the bigger the link (set inline by script.js) */
.entry .desc { opacity: 0.85; }
.entry .by { font-size: 11px; opacity: 0.6; }
.entry .kindmark { font-size: 11px; opacity: 0.6; }

a { color: #8E0038; }
a:visited { color: #6E0030; }

/* form - no boxes, fields are bare strips a shade lighter than the page */
form { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: 10px; }
form.centered-form { margin-left: auto; margin-right: auto; }
form.centered-form button { align-self: center; }
.hidden { display: none; }
#move-fields { display: flex; flex-direction: column; gap: 8px; }
#move-fields.hidden { display: none; }
#move-fields .ob-label, #move-fields .ob-row { margin: 2px 0; }
input, select, button, textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  border: none;
  border-radius: 12px;
  outline: none;
  padding: 8px 10px;
  background: #fff;
  color: #33000E;
  resize: vertical;
}
textarea::placeholder { color: #7A2647; }
textarea:focus { background: #FFE3EE; }
input, select, button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  border: none;
  border-radius: 12px;
  outline: none;
  padding: 8px 10px;
  background: #fff;
  color: #33000E;
}
input::placeholder { color: #7A2647; }
input:focus, select:focus, textarea:focus { background: var(--tint); box-shadow: 0 0 0 3px rgba(142,0,56,.10); }
button { background: var(--cherry); color: var(--on-cherry); font-weight: bold; cursor: pointer; width: fit-content; padding: 10px 20px; box-shadow: var(--sh-btn); transition: transform var(--t), background var(--t), box-shadow var(--t); }
button:hover { background: var(--cherry-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(142,0,56,.32); }
button:active { transform: translateY(0); box-shadow: var(--sh-btn); }
button.mini { box-shadow: none; transform: none; }
button.mini:hover { transform: none; }
#form-msg { font-size: 12px; }

/* contributors - a flowing paragraph, every name its own color, centered */
.center { text-align: center; }
.contribs { line-height: 1.9; }
.contribs span { font-weight: bold; margin-right: 10px; white-space: nowrap; }

.footer { margin-top: 28px; font-size: 11px; opacity: 0.7; text-align: center; line-height: 1.7; }

/* filters - follow the site's font convention: plain body text, active one bigger and bold */
.filterbox { margin: 0 0 26px; }
.filters { margin: 0 0 2px; }
.flabel { font-size: 12px; font-weight: bold; opacity: 0.6; margin-right: 4px; }
button.mini.fopt { font-size: 13px; font-weight: normal; color: #33000E; opacity: 0.8; text-decoration: none; margin-right: 10px; }
button.mini.fopt:hover { opacity: 1; color: #8E0038; }
button.mini.fopt.fon { font-size: 15px; font-weight: bold; color: #8E0038; opacity: 1; }
button.mini.fopt.fon:hover { opacity: 1; color: #8E0038; }

/* how-to: opens under the move on click, hover tooltip works too */
.howto { font-size: 12px; opacity: 0.9; margin: 2px 0 10px 14px; max-width: 560px; }
.howto.hidden { display: none; }

/* generator row */
.genrow { line-height: 2.2; }
.genrow select { margin-right: 10px; }
.genrow .ob-check { margin-right: 12px; }
.genrow button { margin-left: 4px; }

/* program stats - one quiet line: total time + muscle spread + friendly nudge */
.progstats { margin-top: 10px; font-size: 13px; font-weight: bold; }
.progstats.nudge { font-weight: normal; margin-top: 2px; }

/* workout calendar - centered, pink filled days, no boxes on screen */
.cal-head { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-top: 40px; }
.cal-head .cal-title { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 40px); gap: 4px; margin-top: 8px; justify-content: center; }
.cal + .small { text-align: center; margin: 40px 0 40px; opacity: 1; }
.cal-h { font-size: 10px; font-weight: bold; text-align: center; }
.cal-d { width: 40px; height: 34px; background: #FFCEDF; color: #33000E; font-weight: bold; padding: 0; text-align: center; }
.cal-d.empty { background: none; }
.cal-d.done { background: #8E0038; color: #FFDCE9; }
.cal-d.today { outline: 2px solid #8E0038; }
.cal-d.sel { background: #FF9FC2; }
.cal-d.sel.done { background: #8E0038; }
.cal-d .plandot { font-style: normal; display: block; line-height: 0.3; color: #8E0038; }
.cal-d.done .plandot { color: #FFDCE9; }
.dayplan-title { text-align: center; margin: 20px 0 6px; }

/* mobile - same soul, everything breathes and fits */
@media (max-width: 700px) {
  body { padding: 22px 16px 40px; font-size: 14px; }
  h1 { font-size: 30px; margin-top: 4px; }
  h2 { font-size: 20px; }
  .brand { font-size: 22px; }
  .sidebar { margin-bottom: 22px; }
  .topbar { margin-top: -22px; padding: 10px 16px; }
  .hero { padding: 14px 0 2px; }
  .hero-big { font-size: 30px; }
  .sidebar .stat { display: inline-block; margin-right: 12px; }
  .suggest-big { font-size: 20px; }
  #nav { line-height: 2.2; }
  #nav a { font-size: 14px; margin-right: 12px; }
  #nav a.on { font-size: 17px; }
  .entry { line-height: 1.9; }
  button.mini { font-size: 13px; padding: 2px 4px; }
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .cal-d { width: auto; height: 40px; }
  .cal-head { gap: 10px; }
  form { max-width: 100%; }
  .howto { margin-left: 8px; }
  .filters { line-height: 2; }
}

/* print = one clean ink-friendly A4 sheet: the program + the calendar */
@media print {
  @page { size: A4 portrait; margin: 15mm; }
  body { background: #fff; color: #000; display: block; min-height: 0; padding: 0; max-width: 100%; font-size: 11pt; line-height: 1.55; }
  .sidebar, .topbar, .hero, .dir-tag, #nav, .greet, .footer, .contribs, h2.center, .push-down, .small, button { display: none !important; }
  h1 { font-size: 20pt; margin: 0 0 10pt; text-align: left; }
  .entry { margin: 0 0 4pt; }
  .entry a { font-size: 12pt !important; }
  .entry .kindmark, .entry .by, .entry .desc { font-size: 10pt; color: #000; opacity: 1; }
  .howto { display: block !important; font-size: 9.5pt; opacity: 1; margin: 0 0 8pt 14pt; max-width: none; }
  .cal-head { margin-top: 16pt; page-break-before: auto; }
  .cal-head .cal-title { font-size: 14pt; }
  .cal { grid-template-columns: repeat(7, 16mm); gap: 0; margin-top: 4pt; page-break-inside: avoid; }
  .cal-h { border: none; padding: 2pt 0; }
  .cal-d { background: #fff; border: 0.5pt solid #000; color: #000; width: 16mm; height: 11mm; font-size: 10pt; }
  .cal-d.empty { border: none; background: none; }
  .cal-d.done { background: #000; color: #fff; }
  .cal-d.done .plandot { color: #fff; }
  .cal-d .plandot { color: #000; }
  .cal-d.today, .cal-d.sel { outline: none; }
  .dayplan-title { font-size: 13pt; margin-top: 12pt; }
  a { color: #000; text-decoration: none; }
}
