/* gooi.io — receive files: /ontvang (/receive), uploader /r/:id, inbox /inbox/:id.
   Loaded after style.css + site.css + pages.css. Uses the body.v3 tokens. */

/* ---------- Shared bits ---------- */

.rq-eyebrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--delft);
  margin-bottom: 0.4rem;
}
.rq-intro { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 1rem; line-height: 1.5; }
.rq-small { margin-top: 0.75rem; color: var(--ink-2); font-size: 0.86rem; line-height: 1.5; }
.rq-step-label { display: flex; align-items: center; gap: 0.55rem; margin: 1.1rem 0 0.5rem; font-weight: 600; font-size: 0.97rem; }
.rq-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
body.v3.rq-page .link-group,
body.v3.rq-inbox .link-group { margin-bottom: 0.5rem; flex-wrap: wrap; }
body.v3.rq-page .link-input,
body.v3.rq-inbox .link-input { min-width: 0; flex: 1 1 220px; font-size: 0.78rem; }
body.v3.rq-page .btn-copy,
body.v3.rq-inbox .btn-copy { padding: 0.7rem 1rem; }
/* style.css stacks link groups in a column on small screens; keep a wrapping row here */
body.v3.rq-page .link-group,
body.v3.rq-inbox .link-group { flex-direction: row; align-items: stretch; }
@media (max-width: 560px) {
  body.v3.rq-page .link-input,
  body.v3.rq-inbox .link-input { flex: 1 1 100%; }
  body.v3.rq-page .link-group .btn-copy,
  body.v3.rq-inbox .link-group .btn-copy { flex: 1 1 0; width: auto; }
}
body.v3 .btn-copy.btn-share { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
body.v3 .btn-copy.btn-share:hover { background: var(--surface-hover); }
body.v3 .btn-copy.is-done { background: var(--ok); color: #fff; }

.rq-linkbtn {
  border: 0;
  background: none;
  padding: 0.3rem 0.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--delft);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.rq-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.rq-linkbtn.is-done { color: var(--ok); }

.rq-del {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.rq-del:hover { background: #fbe9e1; color: #c2410c; }
.rq-del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* "Keep this link" note: amber, like the key arc on the homepage */
.rq-warn {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff7e8;
  border: 1px solid #f3d9a4;
  color: #5c3d05;
  font-size: 0.92rem;
  line-height: 1.5;
}
.rq-warn svg { flex: none; width: 22px; height: 22px; margin-top: 0.05rem; fill: none; stroke: #c27c0e; stroke-width: 2.2; stroke-linecap: round; }
.rq-warn strong { display: block; color: #3f2a03; margin-bottom: 0.15rem; }
.rq-warn p { margin: 0; }

.rq-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: rgba(31, 138, 95, 0.12);
  color: var(--ok);
}
.rq-done-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rq-done-icon.is-error { background: #fbe9e1; color: #c2410c; }
.rq-error-text { color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.45; }

.rq-qr-small { margin: 0.4rem 0 0.6rem; display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; line-height: 0; }
.rq-qr-small img, .rq-qr-small canvas { display: block; }

/* ---------- /ontvang: the card ---------- */

.rq-card { min-height: 420px; }
.rq-ask-form .pg-field small { margin-top: 0.1rem; }
.rq-ask-form .btn-wide { margin-top: 1rem; }
.rq-ask-form .pg-msg { margin-top: 0.75rem; }
body.v3 .rq-done-title { font-size: 1.25rem; letter-spacing: -0.015em; outline: none; }
.rq-done-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.rq-done-actions .btn { padding: 0.75rem 1.2rem; font-size: 0.97rem; }

.rq-mine { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.rq-mine-title { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 0.4rem; }
.rq-mine-list { list-style: none; display: grid; gap: 0.15rem; }
.rq-mine-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #edf1f7; }
.rq-mine-item:last-child { border-bottom: 0; }
.rq-mine-main { flex: 1 1 200px; min-width: 0; display: grid; }
.rq-mine-name { font-weight: 600; color: var(--ink) !important; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-mine-name:hover { color: var(--delft) !important; }
.rq-mine-meta { font-size: 0.82rem; color: var(--ink-2); }
.rq-mine-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Phone tab */
.rq-phone-note {
  margin: -0.25rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--delft-soft);
  color: var(--delft-deep);
  font-size: 0.92rem;
}
.rq-qr-stage { display: flex; gap: 1.25rem; align-items: center; }
.rq-qr-big {
  flex: none;
  display: grid;
  place-items: center;
  width: 256px;
  height: 256px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(16, 32, 58, 0.5);
  line-height: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.rq-qr-big img, .rq-qr-big canvas { display: block; }
.rq-qr-big.is-expired { opacity: 0.25; filter: blur(3px) grayscale(1); }
.rq-qr-wait { line-height: 1.4; color: var(--ink-2); font-size: 0.9rem; }
.rq-qr-side { flex: 1; min-width: 0; display: grid; gap: 0.6rem; align-content: center; }
.rq-valid { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.45rem; }
.rq-valid:not(:empty)::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 138, 95, 0.15); }
.rq-expired { font-weight: 600; color: #9a3412; }
.rq-qr-side .btn { justify-self: start; padding: 0.65rem 1.1rem; font-size: 0.95rem; }
.rq-or { font-size: 0.88rem; color: var(--ink-2); }
.rq-or summary { cursor: pointer; color: var(--delft); font-weight: 500; list-style: none; }
.rq-or summary::-webkit-details-marker { display: none; }
.rq-or[open] summary { margin-bottom: 0.5rem; }

.rq-incoming { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rq-incoming-title { font-size: 1rem; letter-spacing: 0; display: flex; align-items: baseline; gap: 0.5rem; }

/* ---------- Received list (inbox + phone tab) ---------- */

.rq-list-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 1.6rem; }
.rq-list-count { font-size: 0.88rem; font-weight: 500; color: var(--ink-2); }
.rq-empty {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed #c9d6ea;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.rq-pulse { flex: none; position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--delft); }
.rq-pulse::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--delft);
  opacity: 0;
  animation: rq-pulse 2s ease-out infinite;
}
@keyframes rq-pulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

.rq-list { list-style: none; margin-top: 0.6rem; display: grid; gap: 0.5rem; }
.rq-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.65rem;
  border-radius: 14px;
  background: var(--page);
  border: 1px solid var(--line);
}
.rq-item.is-new { animation: rq-arrive 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), rq-glow 1.6s ease-out; }
@keyframes rq-arrive { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rq-glow { 0% { box-shadow: 0 0 0 4px rgba(31, 138, 95, 0.25); border-color: var(--ok); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 95, 0); } }
.rq-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--delft-soft);
  color: var(--delft);
  overflow: hidden;
}
.rq-thumb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rq-thumb.has-img { background: #e9eef6; }
.rq-thumb img { width: 100%; height: 100%; object-fit: cover; animation: rq-fade 0.4s ease; }
@keyframes rq-fade { from { opacity: 0; } }
.rq-item-main { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.rq-item-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-item-meta { font-size: 0.82rem; color: var(--ink-2); }
.rq-item-bar { display: block; height: 4px; margin-top: 0.3rem; border-radius: 3px; background: var(--delft-soft); overflow: hidden; }
.rq-item-bar > span { display: block; height: 100%; width: 0; background: var(--delft); transition: width 0.2s ease; }
.rq-item-actions { display: flex; align-items: center; gap: 0.25rem; }
body.v3 .rq-item .rq-save { padding: 0.5rem 0.95rem; font-size: 0.9rem; border-radius: 10px; box-shadow: none; }
body.v3 .rq-item .rq-save.is-done { background: var(--ok); }
.rq-item.is-bad { background: #fff7e8; border-color: #f3d9a4; }
.rq-item.is-bad .rq-thumb { background: #fdeccc; color: #b26a00; }
.rq-item.is-bad .rq-item-meta { white-space: normal; line-height: 1.4; }
.rq-item.is-bad .rq-item-name { white-space: normal; }

/* ---------- Inbox page ---------- */

.rq-inbox-inner.is-wide { max-width: 680px; }
.rq-inbox .v3-card-receive .rq-list-head { margin-top: 1.4rem; }
.rq-block { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.rq-block .rq-step-label { margin-top: 0; }
.rq-foot { display: flex; justify-content: flex-end; }
.rq-store { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; margin-top: 0.9rem; }
.rq-store .rq-small { margin: 0; flex: 1 1 260px; }
.rq-danger {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b4410f;
  cursor: pointer;
  padding: 0.3rem 0;
}
.rq-danger:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Uploader page ---------- */

.rq-up-title { overflow-wrap: anywhere; }
.rq-up-zone {
  margin-top: 1.4rem;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.6rem 1rem 1.3rem;
  border: 2px dashed #c9d6ea;
  border-radius: 18px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rq-up-zone.dragover { border-color: var(--delft); background: #f6f9ff; }
body.v3 .rq-up-pick { width: 100%; max-width: 360px; padding: 1.05rem 1.25rem; font-size: 1.08rem; border-radius: 14px; }
.rq-up-pick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rq-up-drop { color: var(--ink-2); font-size: 0.9rem; }
.rq-up-files { list-style: none; margin-top: 1rem; display: grid; gap: 0.4rem; }
.rq-up-file { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.4rem 0.5rem 0.85rem; border-radius: 12px; background: var(--page); border: 1px solid var(--line); }
.rq-up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rq-up-size { font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.rq-up-rm { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.rq-up-rm:hover { background: #fbe9e1; color: #c2410c; }
.rq-up-rm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rq-up-msg { margin-top: 0.6rem; color: #9a3412; font-size: 0.92rem; }
.rq-up-msg:empty { display: none; }
.rq-up-actions { margin-top: 1rem; }
body.v3 .rq-up-actions .btn { padding: 0.95rem 1rem; font-size: 1.05rem; }
.rq-up-limits { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1.1rem; color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; }
.rq-up-limits svg { flex: none; width: 18px; height: 18px; margin-top: 0.05rem; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rq-up-progress { margin-top: 0.4rem; }
.rq-up-progress-info { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--ink-2); margin-top: -0.5rem; }
.rq-up-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-up-pct { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- /ontvang sections ---------- */

.rq-faq-section .pg-faq { max-width: 820px; margin-top: 1.5rem; }
/* The key never travels here: it sits with "Jij" only, not as an arc over the route */
.v3-key-arc.rq-key-arc {
  justify-content: flex-end;
  margin: 0 0 1rem auto;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.rq-key-arc span { white-space: nowrap; }

/* ---------- Small screens ---------- */

@media (max-width: 920px) {
  .rq-card { min-height: 0; }
}
@media (max-width: 560px) {
  .rq-qr-stage { flex-direction: column; align-items: stretch; }
  .rq-qr-big { align-self: center; }
  .rq-mine-actions .rq-linkbtn:not(:first-child) { display: none; }
  .rq-item { gap: 0.6rem; padding: 0.55rem; }
  .rq-thumb { width: 42px; height: 42px; }
  body.v3 .rq-item .rq-save { padding: 0.5rem 0.75rem; }
  .rq-up-zone { padding: 1.2rem 0.8rem 1rem; border-style: solid; border-color: transparent; }
  .rq-up-drop { display: none; }
  body.v3 .rq-up-pick { max-width: none; padding: 1.15rem 1rem; }
}
@media (hover: none) {
  .rq-up-drop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rq-item.is-new, .rq-thumb img { animation: none; }
  .rq-pulse::after { animation: none; }
}
