/* QR FOTO landing styles (QF-08): mobile first, 320-430px, no horizontal drift. */

:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --ink: #2b2620;
  --muted: #6f655a;
  --accent: #8a5a2b;
  --accent-ink: #ffffff;
  --danger: #a83232;
  --border: #e5dccf;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 16px;
  max-width: 100%;
}

.card.is-hidden,
[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

.lede, .hint {
  margin: 0 0 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.notice {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fffaf1;
  overflow-wrap: anywhere;
}

.field {
  margin-bottom: 14px;
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type="text"],
input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 16px;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary:hover {
  background: #7a4e24;
  border-color: #7a4e24;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ikinci buton cerceveli; ikonlar dugme metninin yaninda. */
#btn-notes {
  background: transparent;
  color: var(--accent);
}

#btn-start::after {
  content: "";
  flex: none;
  width: 24px;
  height: 26px;
  background: url("../assets/upload-icon.svg") center / contain no-repeat;
}

#btn-notes::after {
  content: "";
  flex: none;
  width: 24px;
  height: 26px;
  background: url("../assets/note-icon.svg") center / contain no-repeat;
}

/* Karsilama: tek parca davet gorseli, altinda iki buton. */
#screen-welcome {
  text-align: center;
}

#welcome-art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

#welcome-caption {
  margin: 10px auto 0;
  max-width: 270px;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

#guest-title,
#screen-guest .hint {
  text-align: center;
}

#pick-limit-note {
  border-left: 1px solid var(--border);
}

/* Pano: baslik, aciklama, bos durum ve donus baglantisi ortali.
   Not kartlarinin kendi metni okunakli kalsin diye sola hizali. */
#board-screen {
  text-align: center;
}

#board-screen .note-card {
  text-align: left;
}

#notes-empty {
  text-align: center;
}

/* Donus baglantilari: ikisi de ayni sade alti cizili yazi. */
#screen-guest {
  text-align: center;
}

#link-board-home,
#link-form-home,
#btn-guest-home,
#btn-pick-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

#btn-guest-home:hover,
#btn-pick-home:hover {
  background: transparent;
  border-color: transparent;
}

#btn-pick-home {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

#btn-start::after {
  content: "";
  flex: none;
  width: 24px;
  height: 26px;
  background: url("../assets/upload-icon.svg") center / contain no-repeat;
}

progress {
  width: 100%;
  height: 14px;
}

img, video, table {
  max-width: 100%;
}
