/* ============================================================
   DAVETNAME HENNA (KINA) — Theme Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&family=Jost:wght@300;400&display=swap&subset=latin-ext');
@import '../../shared/core.css';

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --velvet:    #6B1F2A;
  --velvet-dk: #4A141D;
  --thread:    #C9A227;
  --candle:    #F6E7D7;
  --candle-65: rgba(246, 231, 215, 0.65);
  --paper:     #F6F1E7;
  --ink:       #4A141D;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', 'Segoe UI', sans-serif;
  --content-max: 680px;
  --section-gap: clamp(96px, 18vh, 160px);
  --h-pad: 24px;
}

/* ── Base ───────────────────────────────────────────────────── */
html { font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--h-pad);
  text-align: center;
}

/* Background variants */
.bg-velvet    { background: var(--velvet); }
.bg-velvet-dk { background: var(--velvet-dk); }
.bg-paper     { background: var(--paper); }

/* ── Tel kırma köşebent ─────────────────────────────────────── */
.corner-bracket {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
}
.corner-bracket path { stroke: var(--thread); stroke-width: 1.5; stroke-linecap: round; fill: none; }

.corner-brackets-set { position: absolute; inset: 0; pointer-events: none; }

.cb-tl { top: 16px;  left: 16px; }
.cb-tr { top: 16px;  right: 16px; }
.cb-bl { bottom: 16px; left: 16px; }
.cb-br { bottom: 16px; right: 16px; }

/* Opening panel corner brackets */
.panel { position: absolute; top: 0; width: 50%; height: 100%; background: var(--velvet); }
.panel-left  { left: 0; }
.panel-right { right: 0; }

.panel-left  .cb-tl { top: 16px; left: 16px; }
.panel-left  .cb-bl { bottom: 16px; left: 16px; }
.panel-right .cb-tr { top: 16px; right: 16px; }
.panel-right .cb-br { bottom: 16px; right: 16px; }

/* Kanat open animation */
.panel-left.open  { transform: translateX(-100%); }
.panel-right.open { transform: translateX(100%); }

.panel-left, .panel-right {
  transition: transform 1000ms cubic-bezier(0.77, 0, 0.18, 1);
}

/* ── Music badge ─────────────────────────────────────────────── */
#music-badge { border: 1px solid var(--thread); }
#music-badge .bar { background: var(--thread); height: 12px; }

/* ── Opening ────────────────────────────────────────────────── */
#section-opening {
  position: fixed;
  inset: 0;
  z-index: 500;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  overflow: hidden;
}

.opening-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.opening-monogram {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 14vw, 80px);
  color: var(--thread);
  letter-spacing: 0.06em;
  animation: monogram-pulse 4s ease-in-out infinite;
}

@keyframes monogram-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.88; }
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: var(--thread);
  margin: 28px auto 24px;
}

.tap-hint {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--candle-65);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tap-hint.visible {
  opacity: 1;
}

#section-opening .brand-mark {
  position: absolute;
  bottom: 24px;
  z-index: 1;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--candle-65);
}

/* Hero reveal animation (behind panels) */
#section-opening .reveal-behind {
  opacity: 0;
  transition: opacity 0.4s 0.2s ease;
}

/* ── §2 Hero ─────────────────────────────────────────────────── */
#section-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 15vh, 130px) 0 var(--section-gap);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--candle-65);
  margin-bottom: 36px;
  text-transform: uppercase;
}
.bg-paper .eyebrow { color: rgba(74,20,29,0.5); }

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 12vw, 92px);
  color: var(--candle);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.hero-ampersand {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 7vw, 52px);
  color: var(--thread);
  line-height: 1.6;
  display: block;
}

.hero-invite-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 4vw, 20px);
  color: var(--thread);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-info {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--candle);
  line-height: 1.7;
}

.hero-scroll-hint {
  margin-top: clamp(40px, 8vh, 64px);
  color: var(--thread);
  animation: scroll-float 2.5s ease-in-out infinite;
  display: flex;
  justify-content: center;
}
.hero-scroll-hint svg { width: 16px; }

@keyframes scroll-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── §3 Photo ─────────────────────────────────────────────────── */
#section-photo { padding: var(--section-gap) 0; }

/* Double passe-partout */
.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  outline: 1px solid var(--thread);
  outline-offset: 10px;
  box-shadow: 0 0 0 1px var(--velvet);
}

.families {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.families-dot { color: var(--thread); }

.welcome-note {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(74,20,29,0.6);
  margin-top: 14px;
  line-height: 1.7;
}

/* ── §4 Countdown ─────────────────────────────────────────────── */
#section-countdown {
  padding: clamp(64px, 12vh, 104px) 0;
}

#section-countdown .eyebrow { color: rgba(246,231,215,0.55); }

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 5vw, 40px);
}
.countdown-cell { text-align: center; }
.countdown-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 10vw, 72px);
  color: var(--candle);
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1;
}
.countdown-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--thread);
  margin-top: 8px;
  display: block;
}
.countdown-sep {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 44px);
  color: var(--candle);
  opacity: 0.3;
  align-self: center;
  padding-bottom: 20px;
}
[data-cd="ended"] {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--candle);
}

/* ── §5 Schedule ─────────────────────────────────────────────── */
#section-schedule { padding: var(--section-gap) 0; }
#section-schedule .eyebrow { color: rgba(74,20,29,0.5); }

.timeline {
  position: relative; padding-left: 32px;
  max-width: 400px; margin: 0 auto; text-align: left;
}
.timeline-line {
  position: absolute; left: 8px; top: 0; width: 1px; height: 100%;
  background: rgba(74,20,29,0.2); transform-origin: top; transform: scaleY(0);
  transition: transform 0.8s ease;
}
.timeline-line.drawn { transform: scaleY(1); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--thread); }
.timeline-time { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--velvet); }
.timeline-label { font-family: var(--sans); font-size: 14px; color: rgba(74,20,29,0.6); margin-top: 2px; }

/* ── §6 Gallery ──────────────────────────────────────────────── */
#section-gallery { padding: var(--section-gap) 0; }
#section-gallery .eyebrow { color: rgba(74,20,29,0.5); }

.gallery-grid { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--h-pad); }
.gallery-row { display: grid; gap: 12px; margin-bottom: 12px; }
.gallery-row.large { grid-template-columns: 1fr; }
.gallery-row.pair  { grid-template-columns: 1fr 1fr; }
.gallery-img { width: 100%; object-fit: cover; display: block; }
.gallery-row.large .gallery-img { aspect-ratio: 4 / 3; }
.gallery-row.pair  .gallery-img { aspect-ratio: 1; }

/* ── §7 Venue ─────────────────────────────────────────────────── */
#section-venue { padding: var(--section-gap) 0; }
#section-venue .eyebrow { color: rgba(74,20,29,0.5); }
.venue-name { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: 4px; }
.venue-address { font-size: 14px; color: rgba(74,20,29,0.6); }
.maps-iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid rgba(74,20,29,0.15); margin-top: 24px; display: block; }
.venue-actions { display: flex; gap: 12px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.btn { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 28px; cursor: pointer; transition: opacity 0.2s; touch-action: manipulation; white-space: nowrap; }
.btn-primary { background: var(--velvet); color: var(--candle); }
.btn-primary:hover { opacity: 0.88; }
.btn-outline { border: 1px solid var(--velvet); color: var(--velvet); }
.btn-outline:hover { background: rgba(107,31,42,0.06); }

/* ── §8 LCV ──────────────────────────────────────────────────── */
#section-lcv { padding: var(--section-gap) 0; }
#section-lcv .eyebrow { color: rgba(74,20,29,0.5); }
.lcv-sub { font-size: 14px; color: rgba(74,20,29,0.6); margin-bottom: 28px; }

.lcv-card {
  background: #FBF8F1;
  border: 1px solid var(--thread);
  padding: clamp(28px, 6vw, 48px);
  position: relative;
  text-align: left;
}
/* Mini köşebentler on LCV card */
.lcv-card::before, .lcv-card::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--thread);
}
.lcv-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.lcv-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

#section-lcv .field-label { color: rgba(74,20,29,0.5); }
#section-lcv .field-input { border-bottom-color: rgba(74,20,29,0.20); color: var(--ink); }
#section-lcv .field-input:focus { border-bottom-color: var(--thread); border-bottom-width: 2px; }
#section-lcv .radio-custom { border-color: rgba(74,20,29,0.30); }
#section-lcv .radio-option.selected .radio-custom { border-color: var(--thread); }
#section-lcv .radio-option.selected .radio-custom::after { background: var(--thread); }
#section-lcv .lcv-submit { background: var(--velvet); color: var(--candle); padding: 14px 32px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s; }
#section-lcv .lcv-submit:hover { opacity: 0.85; }
#section-lcv .lcv-success { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--velvet); }
#section-lcv .lcv-error { color: #8C2433; font-size: 13px; }

/* ── §8B Memory Wall ─────────────────────────────────────────── */
#section-memory { padding: var(--section-gap) 0; }
#section-memory .eyebrow { color: rgba(74,20,29,0.5); }
.memory-invite-line { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--velvet); margin-bottom: 28px; }

.memory-upload-card { background: #FBF8F1; border: 1px solid var(--thread); padding: clamp(28px, 6vw, 48px); margin-bottom: 40px; text-align: left; }
#section-memory .field-label { color: rgba(74,20,29,0.5); }
#section-memory .field-input { border-bottom-color: rgba(74,20,29,0.20); color: var(--ink); }
#section-memory .field-input:focus { border-bottom-color: var(--thread); border-bottom-width: 2px; }
#section-memory .photo-picker-btn { border-color: var(--velvet); color: var(--velvet); }
.memory-consent { font-size: 12px; color: rgba(74,20,29,0.55); }
.memory-submit { background: var(--velvet); color: var(--candle); padding: 12px 28px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s; }
.memory-submit:hover { opacity: 0.85; }
.memory-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.memory-entry-name { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--velvet); }
.memory-entry-note { font-size: 13px; color: rgba(74,20,29,0.6); line-height: 1.6; }
.memory-archived { font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(74,20,29,0.55); }

/* ── §9 Closing ──────────────────────────────────────────────── */
#section-closing {
  position: relative;
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--section-gap) var(--h-pad);
}

.closing-monogram {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 10vw, 64px);
  color: var(--candle);
  letter-spacing: 0.06em;
}
.closing-rule { width: 64px; height: 1px; background: var(--thread); margin: 24px auto; }
.closing-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--candle);
  margin-bottom: 48px;
}
.brand-mark {
  font-family: var(--sans); font-weight: 300; font-size: 11px;
  letter-spacing: 0.3em; color: rgba(246,231,215,0.40);
  text-transform: uppercase; text-decoration: none; transition: color 0.2s;
}
.brand-mark:hover { color: rgba(246,231,215,0.70); }

body.archived .page-content { display: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 768px) { :root { --h-pad: 40px; } }

.load-more-btn { border-color: var(--velvet); color: var(--velvet); }
