/* Stijl van lifeinvaderapp.com: kleuren, schaduwen, knoppen en velden uit app/globals.css van de site. */
@font-face { font-family: "Titillium Web"; font-weight: 400; font-display: swap; src: url("/static/titillium-400.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 600; font-display: swap; src: url("/static/titillium-600.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 700; font-display: swap; src: url("/static/titillium-700.woff2") format("woff2"); }

:root {
  --red: #fa0606; --deep: #d30505; --gloss: #fb5858; --blush: #fff1f1;
  --ink: #0e0f12; --canvas: #eff0f2; --mist: #f4f4f5; --line: #e7e7ea; --slate: #5c6068;
  --shadow-card: 0 0 0 1px rgb(14 15 18 / 0.04), 0 1px 2px rgb(14 15 18 / 0.05), 0 8px 20px -14px rgb(14 15 18 / 0.14);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: linear(0, 0.063 2.2%, 0.22 4.9%, 0.817 13.4%, 1.012 17.6%, 1.074 20.2%, 1.101 23%, 1.097 25.9%, 1.06 30.5%, 0.994 39.8%, 0.982 44.3%, 0.985 50.1%, 1.001 69.2%, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.45 "Titillium Web", system-ui, sans-serif; }
body.wit { background: #fff; }
p { margin: 0; overflow-wrap: anywhere; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgb(211 5 5 / 0.16); }
:focus-visible { outline: 2px solid rgb(211 5 5 / 0.55); outline-offset: 2px; }
.binnen { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Bovenbalk: rood verloop met witte tekst, zoals de site */
.bar { position: sticky; top: 0; z-index: 10; background: linear-gradient(90deg, #fa0606 0%, #e80606 20%, #d30505 52%, #c60404 100%); color: #fff; padding-top: env(safe-area-inset-top); box-shadow: 0 6px 20px -8px rgb(120 0 0 / 0.45); }
.bar-in { display: flex; align-items: center; gap: 10px; height: 56px; }
.bar .woordmerk { display: block; height: 20px; width: auto; }
.sub-titel { font-weight: 600; opacity: 0.85; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / 0.35); line-height: 1; }
.bar-knop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9999px; background: #fff; color: var(--deep); font-size: 13px; font-weight: 600; text-decoration: none; transition: transform 0.28s var(--ease-spring); }
.bar-knop:active { transform: scale(0.95); transition-duration: 0.08s; }
.uit { margin: 0; }
.bar-rond { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9999px; background: rgb(0 0 0 / 0.16); color: #fff; cursor: pointer; transition: background-color 0.18s ease, transform 0.28s var(--ease-spring); }
.bar-rond:active { transform: scale(0.92); }
@media (hover: hover) { .bar-rond:hover { background: rgb(0 0 0 / 0.24); } }

.banner { margin: 12px 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--blush); color: var(--deep); font-weight: 600; box-shadow: inset 0 0 0 1px rgb(211 5 5 / 0.16); }

/* Opbouw: op de telefoon alles onder elkaar en kaarten van rand tot rand */
.inhoud { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 40px; }
.zij { background: #fff; box-shadow: var(--shadow-card); padding: 14px 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { padding-left: 14px; border-left: 1px solid var(--line); }
.stat strong { font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.info { margin-top: 10px; font-size: 13px; color: var(--slate); }

.lijst { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tabs { display: flex; gap: 4px; padding: 4px 12px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 9999px; color: var(--slate); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.18s ease, color 0.18s ease; }
.tab .tal { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; background: rgb(14 15 18 / 0.07); font-size: 12px; display: inline-grid; place-items: center; }
.tab.aan { background: #fff; color: var(--ink); box-shadow: var(--shadow-card); }
.tab.aan .tal { background: var(--deep); color: #fff; }

/* Kaart: wit met zachte schaduw, geen randen */
.kaart { background: #fff; box-shadow: var(--shadow-card); }
.post { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.kop { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; background: linear-gradient(135deg, #fb5858 0%, #fa0606 45%, #b90404 100%); color: #fff; font-weight: 700; font-size: 16px; }
.wie { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wie strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 13px; color: var(--slate); }
.label { margin-left: auto; flex: none; height: 22px; padding: 0 9px; border-radius: 9999px; background: var(--blush); color: var(--deep); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.tekst { font-size: 16px; line-height: 1.45; white-space: pre-line; }
.quote { padding: 10px 14px; border-radius: 14px; background: var(--canvas); color: var(--slate); font-size: 14px; }
.beeld { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; background: var(--mist); }

.reply { margin: 0 16px; padding: 12px 0 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.composer { width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 22px; background: var(--canvas); color: var(--ink); font: 600 16px/1.4 "Titillium Web", system-ui, sans-serif; resize: none; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.18s ease, box-shadow 0.18s ease; }
.composer:focus { background: #fff; box-shadow: inset 0 0 0 1px rgb(211 5 5 / 0.5), 0 0 0 3px rgb(211 5 5 / 0.1); }
@media (hover: hover) { .composer:hover:not(:focus) { background: #e7e8eb; } }

.knoppen { display: flex; gap: 8px; margin-top: 2px; }

/* Hoofdknop: rood verloop met glans, de knop van de site */
.btn-red { position: relative; isolation: isolate; overflow: hidden; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 20px; border: 0; border-radius: 9999px; background: linear-gradient(180deg, #e20606 0%, #d30505 55%, #c10404 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 1px 2px rgb(140 0 0 / 0.3); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.28s var(--ease-spring), box-shadow 0.22s ease; }
.btn-red::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.3) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.6s var(--ease-soft); }
@media (hover: hover) {
  .btn-red:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 8px 20px -8px rgb(211 5 5 / 0.65); }
  .btn-red:hover::after { transform: translateX(120%); }
}
.btn-red:active { transform: scale(0.96); transition-duration: 0.08s; }
.btn-red.groot { flex: none; width: 100%; height: 48px; }

.btn-line { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border: 0; border-radius: 9999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px #d9dadd; cursor: pointer; transition: transform 0.28s var(--ease-spring), box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
@media (hover: hover) { .btn-line:hover { color: var(--deep); background: var(--blush); box-shadow: inset 0 0 0 1px rgb(211 5 5 / 0.45); } }
.btn-line:active { transform: scale(0.96); transition-duration: 0.08s; }

/* Kleine acties: grijs met icoon, rode was bij aanraken */
.acties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.tint { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--slate); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: color 0.18s ease, transform 0.28s var(--ease-spring); }
.tint::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(95deg, rgb(211 5 5 / 0.11), rgb(251 88 88 / 0.04)); opacity: 0; transition: opacity 0.2s ease; }
@media (hover: hover) { .tint:hover { color: var(--deep); } .tint:hover::before { opacity: 1; } }
.tint:active { color: var(--deep); transform: scale(0.97); transition-duration: 0.08s; }
.tint:active::before { opacity: 1; }

.afgerond { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; color: var(--slate); font-size: 14px; }
.afgerond > svg { color: #1f9d55; flex: none; }
.afgerond .tint { margin-left: auto; }

.leeg { background: #fff; box-shadow: var(--shadow-card); padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--slate); }
.leeg strong { color: var(--ink); font-size: 16px; }

/* Inloggen: wit, zwevende labels, zoals de site */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px; }
.login-vak { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.login-vak .woordmerk { height: 25px; width: auto; align-self: flex-start; }
.login-vak h1 { margin: 6px 0 8px; font-size: 26px; font-weight: 700; line-height: 1.15; }
.fout { color: var(--deep); font-weight: 600; font-size: 14px; }
.field { position: relative; display: block; height: 60px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #d4d5da; transition: box-shadow 0.18s ease; }
.field input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 24px 16px 8px; border: 0; background: transparent; border-radius: inherit; font: 600 16px "Titillium Web", system-ui, sans-serif; color: var(--ink); outline: none; }
.field span { position: absolute; left: 16px; top: 19px; font-size: 16px; color: var(--slate); pointer-events: none; transform-origin: left top; transition: transform 0.2s var(--ease-soft), color 0.18s ease; }
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-9px) scale(0.76); }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--deep), 0 0 0 3px rgb(211 5 5 / 0.11); }
.field:focus-within span { color: var(--deep); }

@media (max-width: 400px) {
  .bar-knop span { display: none; }
  .bar-knop { width: 36px; padding: 0; justify-content: center; }
}

/* Vanaf tablet: zwevende kaarten met radius 16, zoals de site */
@media (min-width: 640px) {
  .binnen { padding: 0 24px; }
  .inhoud { max-width: 960px; margin: 0 auto; padding: 20px 24px 48px; gap: 16px; }
  .zij, .kaart, .leeg { border-radius: 16px; }
  .banner { max-width: 912px; margin: 16px auto 0; }
  .tabs { padding: 0; }
}
@media (min-width: 900px) {
  .inhoud { flex-direction: row-reverse; align-items: flex-start; justify-content: center; gap: 24px; }
  .lijst { flex: 0 1 620px; gap: 12px; }
  .zij { flex: 0 0 280px; position: sticky; top: 76px; padding: 18px 20px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stat { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
  .stat + .stat { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .stat strong { font-size: 20px; }
  .info { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
