/* ─── Değişkenler ──────────────────────────────────────────────────────────── */
:root {
  --cream:        #F5F2EA;
  --brown:        #2E2416;
  --brown-mid:    #5C3D28;
  --terracotta:   #B87050;
  --olive:        #4E6E36;    /* koyu zeytin — birincil vurgu */
  --olive-mid:    #6B8F52;    /* orta yeşil */
  --olive-light:  #90B070;    /* açık ada çayı */
  --olive-pale:   #C8DCBA;    /* çok soluk yeşil */
  --sage:         #7A9A60;
  --forest:       #2E4820;    /* derin orman — koyu arka planlar */
  --forest-mid:   #3D5C2A;
  --gold:         #C49A38;
  --beige:        #DDD0B8;
  --beige-dark:   #C8B898;
  --upload-bg:    #E8F0E2;    /* yeşilimsi açık arka plan */
}

/* ─── Reset & Temel ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--cream);
  color: var(--brown);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 7rem;
  overflow: hidden;
  background: var(--cream);
}

/* Botanik köşeler */
.corner {
  position: absolute;
  width: clamp(160px, 24vw, 300px);
  height: clamp(160px, 24vw, 300px);
  opacity: 0.82;
  pointer-events: none;
}
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; }
.corner--bl { bottom: 0; left: 0; }
.corner--br { bottom: 0; right: 0; }

/* Hero içerik — davetiye kartı çerçevesi */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  border: 1px solid var(--gold);
  padding: 3.2rem 2.4rem 2.8rem;
}

/* İsim + yan sprigs sarma */
.hero__names-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  margin-bottom: 1.2rem;
}

.hero__sprig {
  flex-shrink: 0;
  width: clamp(30px, 4vw, 60px);
  opacity: .78;
  align-self: center;
}
.hero__sprig--right { transform: scaleX(-1); }

.hero__names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 1.05;
  color: var(--brown);
}
.amp {
  font-style: normal;
  color: var(--olive);
  margin: 0 .12em;
}

.hero__ornament {
  color: var(--gold);
  letter-spacing: .55rem;
  font-size: .88rem;
  margin-bottom: 1.6rem;
}

.hero__invite {
  font-size: .86rem;
  color: var(--brown-mid);
  line-height: 1.9;
  margin-bottom: 1.8rem;
}

.hero__parents {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 4.5rem);
  margin-bottom: 1.8rem;
}
.hero__parent-col p {
  font-size: .8rem;
  color: var(--brown-mid);
  line-height: 1.5;
}
.hero__parent-col p:first-child { color: var(--sage); font-style: italic; }

.hero__rule {
  border: none;
  border-top: 1px solid var(--olive-pale);
  width: 50px;
  margin: 0 auto 1.6rem;
}

.hero__events { margin-bottom: 2rem; }
.hero__events p {
  font-size: .82rem;
  color: var(--brown-mid);
  margin-bottom: .5rem;
}
.hero__events-label {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-right: .5rem;
}

.hero__btn {
  display: inline-block;
  padding: .7rem 2.2rem;
  border: 1px solid var(--olive);
  color: var(--olive);
  font-size: .73rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.hero__btn:hover { background: var(--olive); color: #fff; }

/* Scroll ipucu */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint__line {
  width: 1px;
  height: 55px;
  background: linear-gradient(to bottom, var(--olive-mid), transparent);
  animation: scrollFade 2.2s ease-in-out infinite;
}
@keyframes scrollFade { 0%,100% { opacity:.2 } 50% { opacity:1 } }

/* ─── Yaprak Ayraç ─────────────────────────────────────────────────────────── */
.leaf-divider {
  background: var(--cream);
  padding: .5rem 0;
  display: flex;
  justify-content: center;
}
.leaf-divider svg { width: min(560px, 92vw); height: auto; }

/* Açık arkaplan üzerindeki ayraç (geri sayım → etkinlik arası) */
.leaf-divider--light { background: var(--forest); }
.leaf-divider--light svg line { stroke: var(--olive-light); }

/* ─── Ortak bölüm başlıkları ───────────────────────────────────────────────── */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--brown);
  margin-bottom: .4rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 55px;
  height: 1.5px;
  background: var(--olive);
  margin: .9rem auto 0;
}
.section-title--light       { color: var(--olive-pale); }
.section-title--light::after { background: var(--gold); }

.section-desc {
  text-align: center;
  font-size: .88rem;
  color: var(--brown-mid);
  margin-top: 1rem;
  margin-bottom: 3rem;
  line-height: 1.9;
}

/* ─── GERİ SAYIM ───────────────────────────────────────────────────────────── */
.countdown {
  background: var(--forest);
  padding: 5rem 0;
}
.countdown__row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(.5rem, 2vw, 2rem);
  flex-wrap: wrap;
  margin-top: 2.8rem;
}
.cd-item   { text-align: center; min-width: 80px; }
.cd-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--olive-pale);
  line-height: 1;
}
.cd-lbl {
  display: block;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-top: .5rem;
}
.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold);
  opacity: .5;
  line-height: 1.1;
  align-self: flex-start;
  padding-top: .05em;
}

/* ─── ETKİNLİKLER ──────────────────────────────────────────────────────────── */
.events {
  background: #EEF4E8;   /* soluk sage yeşili arka plan */
  padding: 6rem 0;
}
.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.event-card {
  background: #fff;
  border: 1px solid var(--olive-pale);
  border-radius: 3px;
  padding: 2.5rem 2rem 3rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(46,72,32,.12);
}
.event-card--main {
  background: linear-gradient(150deg, #f6faf2, #eef5e8);
  border-color: var(--olive-mid);
}

/* Kart yaprak süsü */
.ec-leaf {
  width: 80px;
  height: auto;
  margin: 0 auto 1.2rem;
  opacity: .85;
}
.ec-leaf svg { width: 100%; height: auto; display: block; }

.ec-type {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.5rem;
}
.ec-type--gold { color: var(--gold); }

.ec-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: .6rem;
}
.ec-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--forest);
  line-height: 1;
}
.ec-month {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive-mid);
  margin-top: .2rem;
}

.ec-time {
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--terracotta);
  margin-bottom: 1.4rem;
}

.ec-rule {
  border: none;
  border-top: 1px solid var(--olive-pale);
  margin: 1.2rem auto;
  width: 50px;
}

.ec-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: .5rem;
}
.ec-addr {
  font-style: normal;
  font-size: .82rem;
  color: var(--brown-mid);
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* ─── Butonlar ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.8rem;
  font-family: 'Lato', sans-serif;
  font-size: .73rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: background .3s, color .3s, border-color .3s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Birincil — derin zeytin */
.btn--primary { background: var(--olive); color: #fff; }
.btn--primary:hover { background: var(--forest); }

/* Çerçeveli — zeytin çerçeve */
.btn--outline { border: 1px solid var(--olive); color: var(--olive); background: transparent; }
.btn--outline:hover { background: var(--olive); color: #fff; }

.btn--sm { padding: .52rem 1.3rem; }

.btn--upload {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--olive);
  color: #fff;
  font-size: .8rem;
  text-align: center;
  margin-top: 1.5rem;
  cursor: pointer;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.btn--upload:hover    { background: var(--forest); }
.btn--upload:disabled { background: var(--beige-dark); cursor: not-allowed; }

/* ─── FOTOĞRAF YÜKLEME ─────────────────────────────────────────────────────── */
.upload-section {
  background: var(--upload-bg);
  padding: 6rem 0;
}

.drop-zone {
  background: #fff;
  border: 2px dashed var(--olive-pale);
  border-radius: 6px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  outline: none;
}
.drop-zone:focus-visible { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(78,110,54,.2); }
.drop-zone.drag-over     { border-color: var(--olive-mid); background: #eaf2e4; }

.dz-icon { width: 52px; height: 52px; margin: 0 auto 1.2rem; display: block; }

.dz-main { font-size: .93rem; color: var(--brown-mid); margin-bottom: .3rem; }
.dz-or   { font-size: .78rem; color: var(--beige-dark); margin-bottom: .8rem; }
.dz-note { font-size: .7rem;  color: var(--beige-dark); margin-top: 1rem; letter-spacing: .04em; }

/* Dosya listesi */
.file-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
}
.file-list li {
  background: var(--olive-pale);
  border-radius: 20px;
  padding: .34rem .9rem;
  font-size: .76rem;
  color: var(--forest);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Durum mesajları */
.status-ok { text-align: center; padding: 2.5rem 1rem; }
.status-ok .status-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.status-ok p:first-of-type {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--olive);
}
.status-ok p:last-of-type { font-size: .86rem; color: var(--brown-mid); margin-top: .3rem; }
.status-err { text-align: center; padding: 1rem; color: var(--terracotta); font-size: .86rem; }

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--forest);
  color: var(--olive-pale);
  text-align: center;
  padding: 4rem 2rem 3rem;
  line-height: 2.1;
}

.footer__leaves {
  width: min(320px, 80vw);
  margin: 0 auto 1.5rem;
  opacity: .6;
}
.footer__leaves svg { width: 100%; height: auto; display: block; }

.footer__names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 300;
  color: var(--gold);
}
.footer__date { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--olive-light); }
.footer__msg  { font-size: .83rem; color: var(--olive-pale); opacity: .7; margin-top: .3rem; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .events__grid { grid-template-columns: 1fr; }
  .cd-sep       { display: none; }
  .hero__names  { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero__sprig  { width: clamp(22px, 6vw, 36px); }
  .corner       { width: clamp(120px, 36vw, 180px); height: clamp(120px, 36vw, 180px); }

  /* Hero + Geri Sayım tek ekrana sığsın */
  .first-screen {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  .first-screen .hero {
    min-height: auto;
    flex: 0 0 auto;
    padding: 2.2rem 1.25rem 1.4rem;
  }
  .first-screen .hero .scroll-hint { display: none; }
  .first-screen .hero__eyebrow     { margin-bottom: 1.1rem; }
  .first-screen .hero__names-wrap  { margin-bottom: .7rem; }
  .first-screen .hero__ornament    { margin-bottom: .9rem; }
  .first-screen .hero__place       { margin-bottom: 1.3rem; }
  .first-screen .leaf-divider      { padding: .3rem 0; }
  .first-screen .leaf-divider svg  { width: min(400px, 80vw); }
  .first-screen .countdown {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
  }
  .first-screen .countdown__row { margin-top: 1.6rem; }
  .first-screen .cd-num         { font-size: clamp(2.1rem, 8vw, 3.2rem); }
}
