/* ============================================================
   Seray & Baran — Düğün Sitesi
   Design system: "Seray & Baran Düğün Design System" (tokens birebir).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

:root {
  /* Cream / neutral */
  --cream-50: #FDFBF7; --cream-100: #FBF6EF; --cream-200: #F5ECDF; --cream-300: #ECDFCC;
  /* Dusty rose */
  --rose-100: #F3E1DE; --rose-200: #E7C7C2; --rose-300: #D4A39C;
  --rose-400: #C2867E; --rose-500: #A86B63; --rose-600: #8A554E;
  /* Antique gold */
  --gold-200: #E8D6AE; --gold-300: #D4BA82; --gold-400: #C2A45C; --gold-500: #A8884A;
  /* Sage */
  --sage-200: #D5DBCB; --sage-300: #AEB89E; --sage-400: #8C9878;
  /* Ink */
  --ink-900: #3A2F29; --ink-700: #5C4D44; --ink-500: #84736A; --ink-300: #B6A99F;
  --white: #FFFFFF;
  --success: #6E8B5E; --error: #B5524A;

  /* Semantic */
  --surface-page: var(--cream-100); --surface-card: var(--cream-50);
  --surface-raised: var(--cream-200); --surface-rose: var(--rose-100);
  --surface-invert: var(--rose-600);
  --text-strong: var(--ink-900); --text-body: var(--ink-700);
  --text-muted: var(--ink-500); --text-placeholder: var(--ink-300);
  --text-on-rose: var(--cream-50); --text-on-gold: var(--ink-900);
  --text-accent: var(--rose-500);
  --brand-primary: var(--rose-400); --brand-primary-hover: var(--rose-500);
  --brand-primary-press: var(--rose-600);
  --brand-gold: var(--gold-400); --brand-gold-soft: var(--gold-200);
  --border-soft: var(--cream-300); --border-rose: var(--rose-200);
  --border-gold: var(--gold-300); --border-input: #DBCBB9;
  --border-focus: var(--rose-400);
  --status-success: var(--success); --status-error: var(--error);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Mulish', 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --text-hero: clamp(3.5rem, 9vw, 7rem);
  --text-display: clamp(2.5rem, 6vw, 4rem);
  --text-h1: 2.75rem; --text-h2: 2.125rem; --text-h3: 1.625rem;
  --text-lead: 1.5rem; --text-lg: 1.25rem; --text-base: 1.125rem;
  --text-sm: 1rem; --text-xs: 0.875rem;
  --leading-tight: 1.1; --leading-snug: 1.3; --leading-normal: 1.6; --leading-loose: 1.8;
  --tracking-wide: 0.08em; --tracking-wider: 0.18em;

  /* Space / radii / layout */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --tap-min: 48px; --tap-comfort: 56px;
  --measure-text: 62ch; --width-card: 560px; --width-content: 760px; --width-page: 1180px;
  --pad-section: clamp(3rem, 8vw, 7rem);
  --pad-card: clamp(1.5rem, 4vw, 3rem);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(94, 77, 68, 0.08);
  --shadow-md: 0 8px 24px rgba(94, 77, 68, 0.10);
  --shadow-card: 0 10px 40px rgba(138, 85, 78, 0.12);
  --ring-focus: 0 0 0 3px rgba(194, 134, 126, 0.35);
  --gilt-line: linear-gradient(90deg, transparent 0%, var(--gold-300) 20%,
               var(--gold-400) 50%, var(--gold-300) 80%, transparent 100%);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms; --dur-base: 240ms;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface-page);
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--text-body); line-height: var(--leading-normal);
  overflow-x: hidden; overflow-wrap: break-word; word-wrap: break-word;
}
img { max-width: 100%; }
section[id], div[id] { scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: var(--weight-semibold); letter-spacing: 0.01em;
  border-radius: var(--radius-pill); cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-soft),
              background var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn--md { min-height: var(--tap-min); padding: 0 var(--space-5); font-size: var(--text-base); }
.btn--lg { min-height: var(--tap-comfort); padding: 0 var(--space-6); font-size: var(--text-lg); }
.btn--primary { background: var(--brand-primary); color: var(--text-on-rose); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-primary-hover); }
.btn--gold { background: var(--brand-gold); color: var(--text-on-gold); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-500); }
.btn--outline { background: transparent; color: var(--text-accent); border: 1.5px solid var(--border-rose); }
.btn--outline:hover { background: var(--surface-rose); }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 239, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) clamp(1rem, 4vw, 3rem); gap: var(--space-3);
}
.site-nav__monogram {
  font-family: var(--font-script); font-size: 2rem; color: var(--rose-500);
  line-height: 1; text-decoration: none; white-space: nowrap;
}
.site-nav__monogram .amp { color: var(--gold-400); }
.site-nav__links { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.5rem); flex-wrap: wrap; justify-content: flex-end; }
.site-nav__link {
  background: none; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: var(--text-base);
  font-weight: var(--weight-semibold); color: var(--text-body); padding: var(--space-2);
}
.site-nav__link:hover { color: var(--text-accent); }
@media (max-width: 700px) { .site-nav__link { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; background-image: url('assets/venue-photo.jpg');
  background-size: cover; background-position: center;
  min-height: min(90vh, 900px);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex; justify-content: center; align-items: center;
}
.hero__panel {
  width: 640px; max-width: 94vw;
  background: rgba(251, 246, 239, 0.42);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(253, 251, 247, 0.55);
  border-radius: 14px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-4);
  text-shadow: 0 0 5px rgba(251, 246, 239, 0.95), 0 0 14px rgba(251, 246, 239, 0.85);
}
.hero__names {
  margin: 0; font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 4.5rem); color: var(--rose-600);
  line-height: 1.05; font-weight: 400;
}
.hero__names .amp { color: #8A6D35; }
.hero__tagline {
  margin: 0; font-size: var(--text-base); font-weight: var(--weight-bold);
  letter-spacing: 0.12em; text-transform: uppercase; color: #43362E;
}
.hero__date {
  margin: 0; font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: var(--text-h3); color: var(--ink-900);
}
.hero__date em { color: #5A4519; }
.hero__venue { font-weight: var(--weight-semibold); font-size: var(--text-lg); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; text-shadow: none; }

/* backdrop-filter desteklenmeyen cihazlarda okunurluk için daha opak fallback */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-nav { background: rgba(251, 246, 239, 0.98); }
  .hero__panel {
    background: rgba(251, 246, 239, 0.86);
    border-color: rgba(253, 251, 247, 0.9);
  }
}

/* ---------- Ornamental divider ---------- */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); max-width: 100%; margin: 0 auto; color: var(--brand-gold);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gilt-line); }
.divider span { font-size: 0.85rem; line-height: 1; opacity: 0.9; }
.divider--200 { width: 200px; }
.divider--220 { width: 220px; }

/* ---------- Section title ---------- */
.section-title {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-3);
}
.section-title__eyebrow {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-accent);
}
.section-title h2 {
  margin: 0; font-family: var(--font-display); font-size: var(--text-display);
  font-weight: var(--weight-semibold); color: var(--text-strong); line-height: var(--leading-tight);
}

/* ---------- Sections ---------- */
.section { padding: var(--pad-section) clamp(1.25rem, 5vw, 5rem); }
.section--raised { background: var(--surface-raised); }
.section__inner { max-width: var(--width-page); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-8); }

/* ---------- Detail items ---------- */
.details-row {
  display: flex; gap: clamp(1.5rem, 5vw, 4rem); justify-content: center;
  flex-wrap: wrap; margin-top: var(--space-6);
}
.detail-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-1); }
.detail-item__glyph { font-size: 1.5rem; color: var(--brand-gold); margin-bottom: var(--space-1); }
.detail-item__label {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-muted);
}
.detail-item__value {
  font-family: var(--font-display); font-size: var(--text-h3);
  font-weight: var(--weight-semibold); color: var(--text-strong); line-height: var(--leading-snug);
}
.detail-item__sub { font-size: var(--text-base); color: var(--text-body); }
.details-cta { display: flex; justify-content: center; margin-top: var(--space-6); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--pad-card);
}
.card--gilt { border-color: var(--border-gold); }
.card--flush { padding: 0; overflow: hidden; }

/* ---------- Program ---------- */
.program-card { max-width: var(--width-card); margin: var(--space-6) auto 0; }
.program-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.program-list li {
  display: flex; align-items: baseline; gap: var(--space-5);
  padding: var(--space-4) 0; border-top: 1px solid var(--border-soft);
}
.program-list li:first-child { border-top: none; }
.program-list .time {
  font-family: var(--font-display); font-size: var(--text-h3);
  font-weight: var(--weight-semibold); color: var(--rose-500); min-width: 84px;
}
.program-list .label { font-size: var(--text-lg); color: var(--text-strong); }

/* ---------- Forms ---------- */
.rsvp-wrap { max-width: 640px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label, .field legend {
  font-size: var(--text-lg); font-weight: var(--weight-semibold);
  color: var(--text-strong); padding: 0;
}
.field .req { color: var(--rose-400); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong);
  background: var(--white); border: 1.5px solid var(--border-input);
  border-radius: var(--radius-md); outline: none; width: 100%;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.field input[type="text"], .field input[type="tel"] { min-height: var(--tap-comfort); padding: 0 var(--space-4); }
.field textarea { padding: var(--space-3) var(--space-4); line-height: var(--leading-normal); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--border-focus); box-shadow: var(--ring-focus);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-placeholder); }
.field .hint { font-size: var(--text-sm); color: var(--text-muted); }
.field .error-msg { font-size: var(--text-sm); color: var(--status-error); display: none; }
.field.has-error input, .field.has-error .option-card { border-color: var(--status-error); }
.field.has-error .error-msg { display: block; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  min-height: var(--tap-comfort); padding: 0 var(--space-7) 0 var(--space-4);
}
.select-wrap::after {
  content: '▼'; position: absolute; right: var(--space-4); top: 50%;
  transform: translateY(-50%); color: var(--brand-gold); pointer-events: none; font-size: 0.7rem;
}

/* Radio option cards — large targets */
.option-group { display: grid; grid-template-columns: 1fr; gap: var(--space-3); border: none; margin: 0; padding: 0; }
.option-card {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--tap-comfort); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); cursor: pointer;
  background: var(--white); border: 1.5px solid var(--border-input);
  transition: all var(--dur-fast) var(--ease-soft);
}
.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-card .dot {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border-input); background: transparent;
  transition: all var(--dur-fast) var(--ease-soft);
}
.option-card .txt { font-size: var(--text-lg); color: var(--text-strong); }
.option-card:has(input:checked),
.option-card.selected {
  background: var(--surface-rose); border-color: var(--brand-primary); box-shadow: var(--ring-focus);
}
.option-card:has(input:checked) .dot,
.option-card.selected .dot {
  border-color: var(--brand-primary); background: var(--brand-primary);
  box-shadow: inset 0 0 0 4px var(--white);
}
.option-card:has(input:checked) .txt,
.option-card.selected .txt { font-weight: var(--weight-semibold); }
/* :has() desteklenmeyen tarayıcılarda klavye odağı için fallback */
.option-card:has(input:focus-visible),
.option-card:focus-within { box-shadow: var(--ring-focus); }

/* Menu pills */
.pill-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer;
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  padding: 0.55em 1.1em; min-height: var(--tap-min); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink-700); border: 1.5px solid var(--border-input);
  transition: all var(--dur-fast) var(--ease-soft);
}
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill:has(input:checked),
.pill.selected { background: var(--surface-rose); color: var(--rose-600); border-color: var(--brand-primary); }
.pill:focus-within { box-shadow: var(--ring-focus); }

/* Conditional block */
.rsvp-extra { display: none; flex-direction: column; gap: var(--space-5); }
.rsvp-extra.visible { display: flex; }

/* Thank-you state */
.thanks { display: none; text-align: center; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; }
.thanks.visible { display: flex; }
.thanks__emoji { font-size: 3rem; }
.thanks h3 { margin: 0; font-family: var(--font-display); font-size: var(--text-h2); color: var(--text-strong); }
.thanks p { margin: 0; font-size: var(--text-lead); line-height: var(--leading-normal); color: var(--text-body); max-width: 40ch; }

/* ---------- Photo upload ---------- */
.photos-wrap { max-width: var(--width-content); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); }
.photos-lead { margin: 0 auto; max-width: 48ch; text-align: center; font-size: var(--text-lead); line-height: var(--leading-normal); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-8) var(--space-5); cursor: pointer;
  background: var(--surface-card); text-align: center; position: relative;
  transition: background var(--dur-fast) var(--ease-soft);
}
.dropzone.drag { background: var(--surface-rose); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone__glyph { font-size: 2.5rem; color: var(--brand-gold); }
.dropzone__title { font-family: var(--font-display); font-size: var(--text-h3); font-weight: var(--weight-semibold); color: var(--text-strong); }
.dropzone__or, .dropzone__hint { font-size: var(--text-sm); color: var(--text-muted); }
.dropzone__or { font-size: var(--text-base); }
.photo-status { display: none; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.photo-status.visible { display: flex; }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  padding: 0.35em 0.85em; border-radius: var(--radius-pill);
  background: #E2EBDA; color: #41502F; border: 1px solid #C2D2B2;
}
.photo-status .note { font-size: var(--text-sm); color: var(--text-muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); }
.photo-grid .ph {
  aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-gold); box-shadow: var(--shadow-sm);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- QR section ---------- */
.qr-section { display: flex; justify-content: center; }
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  background: var(--surface-card); border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: var(--pad-card); max-width: 420px;
}
.qr-card__frame {
  padding: var(--space-3); background: var(--white);
  border-radius: var(--radius-md); border: 1px solid var(--border-soft); line-height: 0;
}
.qr-card__frame img { display: block; border-radius: 4px; }
.qr-card__caption {
  margin: 0; font-family: var(--font-display); font-size: var(--text-h3);
  font-weight: var(--weight-semibold); color: var(--text-strong);
  text-align: center; line-height: var(--leading-snug);
}
.qr-card__help {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--surface-rose); border: 1px solid var(--border-rose);
  border-radius: var(--radius-md); padding: var(--space-4); width: 100%;
}
.qr-card__help .heart { font-size: 1.5rem; line-height: 1.2; flex-shrink: 0; }
.qr-card__help p { margin: 0; font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--text-strong); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-invert); color: var(--text-on-rose);
  padding: var(--space-9) var(--space-5); text-align: center;
}
.site-footer__inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.site-footer__names { font-family: var(--font-script); font-size: 3.5rem; line-height: 1; color: var(--cream-100); }
.site-footer__names .amp { color: var(--gold-200); }
.site-footer__divider { width: 220px; display: flex; align-items: center; gap: 12px; color: var(--gold-200); }
.site-footer__divider::before, .site-footer__divider::after { content: ''; flex: 1; height: 1px; background: var(--gold-200); opacity: 0.5; }
.site-footer__date { margin: 0; font-family: var(--font-display); font-size: var(--text-h3); letter-spacing: 0.1em; }
.site-footer__venue { margin: 0; font-size: var(--text-base); opacity: 0.85; }
