/* Generatie Alles · Project pages · shared style */

:root {
  /* Ink palette */
  --ink: #2a2a2a;
  --ink2: #4a4a4d;
  --ink3: #6e6e72;
  --ink4: #8e8e93;
  --ink-soft: #b8b8be;

  /* Page background and lines */
  --bg: #fafaf7;
  --bg-soft: #f4f2e9;
  --line: #e7e5dc;
  --line2: #d6d3c4;

  /* Signal colors, gedeeld over alle klanten */
  --geel: #f5e994;
  --geel-soft: #faf2b6;
  --geel-line: #ecd97a;

  /* Status tints */
  --done-bg: #d8e2cd;
  --done-ink: #3f5a36;
  --waiting-bg: #faf2b6;
  --waiting-ink: #6e5a18;
  --going-bg: #e0e6d4;
  --going-ink: #4a5c3c;
  --upcoming-bg: transparent;
  --upcoming-ink: var(--ink3);

  /* Per-klant accent, override in client site.js of inline style */
  --accent: #4f7a5e;
  --accent-soft: #c9d8c8;
  --accent-deep: #3a5b46;

  /* Type */
  --fh: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fb: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fl: 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --radius: 10px;
  --radius-sm: 6px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.6rem 5rem;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink4);
}

.topbar a {
  color: var(--ink4);
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar a:hover { color: var(--ink); }

/* Kicker, titles, leads */
.kicker {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink4);
  margin-bottom: 0.4rem;
}

.page-title {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.page-title .hl {
  background: linear-gradient(transparent 45%, var(--geel) 45%);
  padding: 0 0.1em;
  margin: 0 -0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-lead {
  color: var(--ink2);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

h2 {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

p { margin-bottom: 0.85rem; }
p.muted { color: var(--ink2); }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}

.card-attention {
  background: var(--geel-soft);
  border-color: var(--geel-line);
}

/* Interview block */
.interview {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}

.interview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.interview-title {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
}

.interview-role {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink4);
  margin-top: 0.2rem;
}

.interview-deadline {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink3);
}

.interview-note {
  color: var(--ink2);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* Phase timeline */
.phases {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.phase {
  display: grid;
  grid-template-columns: 5.6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: white;
  font-size: 0.93rem;
}

.phase-date {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
}

.phase-label {
  color: var(--ink);
}

.phase-status {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Stills row */
.stills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.6rem 0 2rem;
}
.still {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: opacity 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.still:hover { opacity: 0.92; }
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .stills-row { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: #0a0a0a;
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }

/* Scope strip onder titel */
.scope-strip {
  font-family: var(--fl);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink3);
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0.4rem 0 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
}
.scope-strip span { display: inline-flex; align-items: center; }
.scope-strip span:not(:last-child)::after {
  content: '·';
  margin-left: 0.6rem;
  color: var(--ink-soft);
}

/* Logbook */
.logbook {
  margin-top: 0.4rem;
}
.log-item {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.5;
}
.log-item:last-child { border-bottom: none; }
.log-date {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink3);
  padding-top: 0.18rem;
}
.log-event { color: var(--ink); }
.log-event small {
  display: block;
  font-size: 0.82rem;
  color: var(--ink3);
  margin-top: 0.12rem;
}

@media (max-width: 600px) {
  .log-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* For you, top action card */
.foryou {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 2.4rem;
}
.foryou-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.foryou-title {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.foryou-stamp {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink4);
}
.foryou-lead {
  color: var(--ink2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.foryou-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.foryou-item {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: white;
  font-size: 0.94rem;
  line-height: 1.5;
  min-height: 5rem;
}
.foryou-tag {
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
.foryou-tag.action { background: var(--geel); color: var(--waiting-ink); }
.foryou-tag.info {
  background: transparent;
  color: var(--ink3);
  border: 1px solid var(--line);
}
.foryou-text { color: var(--ink); }

@media (max-width: 600px) {
  .foryou-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .foryou-tag { justify-self: start; }
}

/* Reels grid */
.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.reel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.reel-num {
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.reel-title {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.3;
}
@media (min-width: 700px) {
  .reel-title { min-height: 2.5em; }
}
.reel-note {
  font-size: 0.86rem;
  color: var(--ink2);
  line-height: 1.5;
  flex: 1;
}
.reel-cta {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.reel-cta::after { content: ' →'; }
a.reel.reel-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
a.reel.reel-link:hover {
  border-color: var(--accent);
  background: white;
}
@media (max-width: 700px) {
  .reels { grid-template-columns: 1fr; }
}

.staat-done { background: var(--accent-soft); color: var(--accent-deep); }
.staat-going { background: white; color: var(--ink2); border: 1px solid var(--line2); }
.staat-waiting-moss,
.staat-waiting-client { background: var(--geel); color: var(--waiting-ink); }
.staat-upcoming { background: transparent; color: var(--ink4); border: 1px dashed var(--line2); }

/* Notes button + modaal */
.fab {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--geel);
  color: var(--ink);
  border: none;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  z-index: 50;
  transition: background 0.15s ease, transform 0.15s ease;
}
.fab:hover {
  background: var(--geel-line);
  transform: translateX(-50%) translateY(-2px);
}

.note-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}
.note-overlay.open { display: flex; }

.note-modal-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 2.2rem 1.8rem;
  max-width: 768px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.note-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.note-modal-head h3 {
  font-size: 1.1rem;
  margin: 0;
}

.note-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink4);
  cursor: pointer;
  padding: 0;
}

.note-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-right: 0.3rem;
}

.note-bubble {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.note-bubble-date {
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink4);
  margin-bottom: 0.3rem;
}

.note-bubble-text {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.note-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.note-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
  min-height: 4.4rem;
  resize: vertical;
  line-height: 1.55;
}
.note-input:focus { border-color: var(--accent); }

.note-send {
  font-family: var(--fl);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--geel);
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.note-send:hover { background: var(--geel-line); }

.note-status {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink4);
  margin-top: 0.7rem;
}

/* Footer */
.footnote {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* Gate */
.gate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.gate-card { max-width: 440px; width: 100%; }
.gate-kicker {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink4);
  margin-bottom: 0.7rem;
}
.gate-title {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.gate-title .hl {
  background: linear-gradient(transparent 40%, var(--geel) 40%);
  padding: 0 0.1em;
  margin: 0 -0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.gate-lead {
  color: var(--ink2);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 52ch;
}
.gate-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gate-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.gate-input:focus { border-color: var(--accent); }
.gate-submit {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--geel);
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gate-submit:hover { background: var(--geel-line); }
.gate-error {
  margin-top: 0.9rem;
  font-family: var(--fl);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gate-error.show { opacity: 1; }
.gate-foot {
  margin-top: 3rem;
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* Mobile */
@media (max-width: 560px) {
  .wrap { padding: 2rem 1.1rem 4rem; }
  .page-title { font-size: 1.65rem; }
  .phase {
    grid-template-columns: 1fr 7.2rem;
    column-gap: 0.8rem;
    row-gap: 0.7rem;
    padding: 1.1rem 1.1rem;
  }
  .phase-date { grid-column: 1; grid-row: 1; align-self: center; }
  .phase-status {
    grid-column: 2;
    grid-row: 1;
    min-width: 7.2rem;
    padding: 0.25rem 0.4rem;
    letter-spacing: 0.1em;
    text-align: center;
    box-sizing: border-box;
    justify-self: stretch;
  }
  .phase-label { grid-column: 1 / -1; grid-row: 2; }
  .interview-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0.6rem;
  }
  .interview-note { margin-bottom: 0.9rem; }
  .note-modal-card { padding: 1.5rem 1.5rem 1.3rem; }
}

@media (max-width: 400px) {
  .wrap { padding: 1.8rem 1rem 3.2rem; }
  .page-title { font-size: 1.5rem; }
  .scope-strip { font-size: 0.62rem; padding: 0.75rem 0; }
  .foryou { padding: 1.2rem 1.2rem; }
  .interview { padding: 1.2rem 1.2rem; }
  .interview-deadline { font-size: 0.65rem; }
  .interview-head { gap: 0.3rem; }
}
