/* healthy living - raw pink directory. no borders anywhere (Damla: "içim daralmasın").
   separation = whitespace + color only. arial, dense, web 1.0 heart. */

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

body {
  background: #FFBDD4;
  color: #33000E;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 60px;
  /* short lists must not pull the bottom block up - pin it down */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > * { flex-shrink: 0; }
.push-down { margin-top: auto; padding-top: 60px; }

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

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

/* brand header + greeting */
.brand { font-size: 26px; font-weight: bold; margin-bottom: 10px; }
.greet { margin-bottom: 24px; }
.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 - lives in the empty left space of the page */
.sidebar { position: fixed; left: 24px; top: 48px; width: 230px; }
.sidebar .brand { margin-bottom: 6px; }
.sidebar-tag { margin-bottom: 16px; }
.sidebar a { display: block; font-weight: bold; margin-bottom: 4px; }
.sidebar a:not(.suggest-big) { font-size: 15px; }
.sidebar .stat { display: block; font-size: 12px; opacity: 0.75; margin-top: 2px; }
/* narrow screens: no empty left space, sidebar flows on top */
@media (max-width: 1260px) { .sidebar { position: static; width: auto; margin-bottom: 20px; } }

/* onboarding rows */
.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: 26px; line-height: 2; }
#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: 30px; }
.cat h2 { margin: 0 0 8px; }
.entry { margin: 0 0 4px; }
.entry a { font-weight: bold; }
/* 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;
  outline: none;
  padding: 8px 10px;
  background: #FFC7DB;
  color: #33000E;
  resize: vertical;
}
textarea::placeholder { color: #7A2647; }
textarea:focus { background: #FFBBD3; }
input, select, button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  border: none;
  outline: none;
  padding: 8px 10px;
  background: #FFC7DB;
  color: #33000E;
}
input::placeholder { color: #7A2647; }
input:focus, select:focus { background: #FFBBD3; }
button { background: #8E0038; color: #FFDCE9; font-weight: bold; cursor: pointer; width: fit-content; padding: 8px 18px; }
button:hover { background: #6E0030; }
#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: 44px; font-size: 11px; opacity: 0.7; text-align: center; line-height: 1.8; }

/* 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; }
  .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, #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; }
}
