/* ============== DAVETİYE TEMASI ============== */
:root{
  --bg:#f7f2ea;
  --panel:#fffaf3;
  --ink:#3c2f29;
  --gold:#c7a871;
  --gold2:#b8965f;
  --rose:#d8a6a6;
  --green:#577a60;
  --muted:#6b5a50;
  --shadow:0 10px 30px rgba(83,60,35,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    linear-gradient(0deg, rgba(255,255,255,.5), rgba(255,255,255,.5)),
    radial-gradient(1200px 800px at 50% 0%, #fffaf5 0%, var(--bg) 60%, #f2e9df 100%);
  color:var(--ink);
  font-family:"Lora", serif;
  line-height:1.6;
}

/* Arka plan dokusu + davetiye görseli (çok hafif) */
.invite-theme::before,
.invite-theme::after{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  z-index:-1;    
}
.invite-theme::before{
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.015) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.012) 0 1px, transparent 1px 2px);
  mix-blend-mode:multiply;
}
.invite-theme::after{
  background:url("dugun.png");
  opacity:.06;
}

.invite-container,
.invite-header,
.page,
footer{
  position:relative;
  z-index:1;             /* <— İçerik her zaman görünür */
}

/* Orta panel ve altın çerçeve */
.invite-container{
  max-width:1000px; margin:clamp(12px,5vh,40px) auto;
  padding:28px clamp(14px,4vw,42px);
  background:var(--panel);
  border-radius:28px; box-shadow:var(--shadow);
  border:1px solid rgba(199,168,113,.25); position:relative;
}
.invite-container::before,
.invite-container::after{
  content:""; position:absolute; inset:14px; border-radius:22px;
  border:2px solid transparent;
  background:
    linear-gradient(var(--panel),var(--panel)) padding-box,
    linear-gradient(135deg, #e7d8b7, #c7a871, #e0cba0) border-box;
  pointer-events:none;
}
.invite-container::after{ inset:28px; border-radius:18px; opacity:.7 }

/* Header */
.invite-header{ text-align:center; margin-bottom:18px }
.header-title{
  font-family:"Playfair Display",serif; letter-spacing:.4px;
  font-size:clamp(40px,6vw,64px); color:var(--ink);
}
.header-title .heart{ color:var(--gold2) }
.header-date{ color:#6a5b50; font-size:clamp(14px,1.6vw,17px); margin-top:2px }
.decorative-icons{ margin-top:6px; opacity:.9 }

/* Nav */
.invite-nav{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:16px 0 6px }
.nav-btn{
  appearance:none; border:none; cursor:pointer;
  padding:10px 14px; border-radius:999px; font-weight:700; letter-spacing:.3px;
  background:linear-gradient(180deg,#f5e7c7,#e7d4a9);
  border:1px solid rgba(199,168,113,.7); color:#2d241f;
  box-shadow:inset 0 1px 0 #fff6da, 0 6px 12px rgba(83,60,35,.08);
  transition:transform .08s ease, filter .2s;
}
.nav-btn:hover{ filter:brightness(1.03) }
.nav-btn.active{ outline:2px solid rgba(199,168,113,.45) }

/* Sayfa geçişleri */
.page{ display:none; animation:fade .25s ease }
.page.active{ display:block }
@keyframes fade{ from{opacity:.5; transform:translateY(6px)} to{opacity:1; transform:none} }

/* İçerik panelleri */
.content{
  background:#fffdF8; border:1px solid rgba(199,168,113,.35);
  border-radius:18px; padding:18px; box-shadow:0 6px 16px rgba(83,60,35,.06);
  margin: 25px;
}
.content-border-gold{ }
.content-border-pink{ border-color:rgba(190,24,93,.25) }
.content-border-purple{ border-color:rgba(107,33,168,.25) }
.content-border-gray{ border-color:rgba(55,65,81,.25) }

/* Genel yardımcılar */
.center{text-align:center}
.mb-30{margin-bottom:30px}
.mt-16{margin-top:16px}
.mt-24{margin-top:24px}
.big-emoji{font-size:4em; margin-bottom:10px}
.hero-title{
  font-family:"Playfair Display",serif; font-size:clamp(26px,3vw,36px);
  color:#92400e; margin:10px 0 14px
}
.hero-text{ font-size:1.1em; color:#374151; line-height:1.8; max-width:700px; margin:0 auto }
.quote{ margin-top:34px; text-align:center; font-size:1.15em; color:#6b7280; font-style:italic }

/* Home kartları */
.home-grid{ display:grid; gap:16px; margin-top:18px }
@media(min-width:680px){ .home-grid{ grid-template-columns:repeat(2,1fr) } }
.home-card{
  background:#fff; border:1px solid rgba(199,168,113,.35);
  border-radius:16px; padding:18px; text-align:center;
  box-shadow:0 6px 16px rgba(83,60,35,.06);
  transition:transform .08s ease, box-shadow .2s ease;
}
.home-card:hover{ transform:translateY(-2px); box-shadow:0 10px 20px rgba(83,60,35,.10) }
.home-icon{ font-size:2.4em; margin-bottom:6px }
.home-card h3{ margin:6px 0; font-family:"Playfair Display",serif }
.home-card p{ color:#374151; margin:0 }
.home-card-photo h3{ color:#be185d }
.home-card-message h3{ color:#6b21a8 }

/* Başlık varyantları */
.section-head{ font-family:"Playfair Display",serif; font-size:clamp(24px,2.6vw,32px); margin:6px 0 6px; color:var(--ink) }
.section-head.pink{ color:#be185d }
.section-head.purple{ color:#6b21a8 }
.muted{ color:#6b7280 }
.mini-head{ font-weight:700; margin:0 0 10px }
.mini-head.pink{ color:#be185d }

/* File upload alanı */
.file-upload-area{
  border:2px dashed rgba(199,168,113,.6);
  border-radius:16px; padding:26px; text-align:center;
  background:linear-gradient(#fff, #fffaf3);
}
.file-upload-icon{ font-size:2.2em; margin-bottom:6px }
.file-upload-text{ font-weight:700; letter-spacing:.3px }
.file-upload-subtext{ color:#6b6b6b }
.file-upload-subtext.small{ font-size:.9em; margin-top:5px }

/* Seçilen fotoğraflar grid */
.selected-photos-grid{ display:grid; gap:12px; margin-top:12px }
@media(min-width:680px){ .selected-photos-grid{ grid-template-columns:repeat(3,1fr) } }
.selected-photo-item{ position:relative }
.selected-photo-item img{
  width:100%; height:200px; object-fit:cover; border-radius:12px;
  border:1px solid rgba(199,168,113,.35)
}
.selected-photo-remove{
  position:absolute; top:8px; right:8px; border:none; border-radius:10px;
  background:rgba(0,0,0,.55); color:#fff; padding:6px 8px; cursor:pointer
}

/* Yükleme ilerleme */
.upload-progress{ margin-top:14px }
.upload-head{ font-size:1.05em; color:#1e40af; font-weight:700; margin-bottom:8px }
.progress-bar-container{ width:100%; height:14px; background:#eee7d6; border-radius:999px; overflow:hidden; border:1px solid rgba(199,168,113,.35) }
.progress-bar{ height:100%; text-align:center; font-size:.85em; color:#2d241f;
  background:linear-gradient(90deg,#e7d4a9,#c7a871); }

/* Form elemanları */
.form-group{ margin-bottom:14px }
label{ display:block; font-weight:600; margin-bottom:6px; color:#4b4038 }
input[type="text"], textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(60,47,41,.18);
  background:#fff; font-family:inherit; font-size:16px; outline:none;
  transition:box-shadow .2s, border-color .2s
}
textarea{ min-height:120px; resize:vertical }
input[type="text"]:focus, textarea:focus{
  border-color:var(--gold); box-shadow:0 0 0 3px rgba(199,168,113,.15)
}

/* Butonlar */
.submit-btn{
  appearance:none; border:none; padding:12px 18px; border-radius:999px;
  font-weight:700; letter-spacing:.4px; color:#2d241f;
  background:linear-gradient(180deg,#f5e7c7,#e7d4a9);
  border:1px solid rgba(199,168,113,.7);
  box-shadow:inset 0 1px 0 #fff6da, 0 6px 16px rgba(83,60,35,.10);
  cursor:pointer; transition:transform .08s, filter .2s;
}
.submit-btn:hover{ filter:brightness(1.02) }
.submit-btn:active{ transform:translateY(1px) }
.submit-btn-purple{ background:linear-gradient(180deg,#e9d8ff,#d8c1ff); border-color:#b59bff }
.blue{ background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; border-color:#2563eb }

/* Bilgi kutusu */
.info-box{
  margin-top:14px; padding:12px 14px; border-radius:12px;
  background:#f4f6ff; color:#1e40af; border:1px solid #c7d2fe;
}

/* Admin özet kartları */
.stats-grid{ display:grid; gap:12px; margin-bottom:18px }
@media(min-width:560px){ .stats-grid{ grid-template-columns:repeat(2,1fr) } }
.stat-card{
  background:#fffef9; border:1px solid rgba(199,168,113,.35); border-radius:16px;
  box-shadow:0 6px 16px rgba(83,60,35,.06); padding:16px; text-align:center
}
.stat-number{ font-size:36px; font-weight:900 }
.stat-number.pink{ color:#be185d }
.stat-number.purple{ color:#6b21a8 }
.stat-label{ color:#374151; font-size:1.05em }

/* Admin gridler */
.admin-grid{ display:grid; gap:12px }
@media(min-width:680px){ .admin-grid{ grid-template-columns:repeat(3,1fr) } }
.photo-item{ position:relative; border-radius:12px; overflow:hidden; border:1px solid rgba(199,168,113,.35) }
.photo-item img{ width:100%; height:240px; object-fit:cover; display:block }
.photo-actions{
  position:absolute; left:0; right:0; bottom:0; display:flex; gap:8px; justify-content:center;
  padding:10px; background:linear-gradient(0deg, rgba(0,0,0,.55), transparent)
}
.photo-btn{
  border:none; border-radius:999px; padding:8px 12px; cursor:pointer; font-weight:700
}
.btn-download{ background:#fff; }
.btn-delete{ background:#ffe1e1; color:#8a0c0c }

/* Mesaj kartları */
#messagesContainer{ display:grid; gap:12px }
.message-item{
  position:relative; background:#fffef9; border:1px solid rgba(199,168,113,.35);
  border-left:4px solid var(--gold); border-radius:14px; padding:14px;
  box-shadow:0 6px 16px rgba(83,60,35,.06)
}
.message-header{ font-weight:800; color:#3c2f29; margin-bottom:6px }
.message-content{ white-space:pre-wrap }
.message-date{ font-size:.9em; color:#7a6a60; margin-top:8px }
.message-del{ position:absolute; top:12px; right:12px }

/* Boş içerik yazıları */
.empty{ grid-column:1/-1; text-align:center; color:#6b7280; padding:40px }

/* Modal */
.modal{ position:fixed; inset:0; background:rgba(0,0,0,.35); display:none; align-items:center; justify-content:center; padding:16px; z-index:20 }
.modal.active{ display:flex }
.modal-content{
  width:min(520px, 100%); background:#fffef9; border:1px solid rgba(199,168,113,.35);
  border-radius:20px; padding:22px; box-shadow:0 20px 40px rgba(0,0,0,.2); position:relative
}
.modal-icon{ font-size:2.6em; text-align:center; margin-bottom:6px }
.modal-head{ text-align:center; font-size:1.6em; color:#374151; margin:4px 0 12px }
.modal-input{
  width:100%; padding:14px; border:2px solid #d1d5db; border-radius:10px; font-size:1.05em
}
.modal-buttons{ display:flex; gap:10px; justify-content:flex-end; margin-top:14px }
.modal-btn{
  border:none; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700
}
.btn-cancel{ background:#f3f4f6 }
.btn-confirm{ background:#d9c29b; color:#2d241f; border:1px solid rgba(199,168,113,.6) }

/* Footer */
.invite-footer{ text-align:center; margin-top:16px; margin-bottom:16px; color:var(--muted) }
.footer-title{ font-weight:800 }
.footer-sub{ margin-top:6px }
.footer-icons{ margin-top:6px }

/* Toast */
.toast{
  position:fixed; right:16px; bottom:16px; display:flex; gap:10px; align-items:center;
  background:#fff; border:1px solid rgba(199,168,113,.4); border-left:4px solid var(--gold);
  box-shadow:0 10px 24px rgba(0,0,0,.15); padding:12px 14px; border-radius:12px;
  transform:translateY(14px); opacity:0; transition:.25s; z-index:50
}
.toast.show{ transform:none; opacity:1 }
.toast-icon{ font-size:1.4em }
.toast-title{ font-weight:800 }
.toast-message{ color:#4b4038 }

/* Bölüm başlık çizgili stil */
.section-title{
  font-family:"Playfair Display",serif; font-size:clamp(20px,2.2vw,26px); margin:24px 0 12px; color:var(--ink); text-align:center; position:relative
}
.section-title:before,
.section-title:after{
  content:""; height:1px; width:22%;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  position:absolute; top:50%; transform:translateY(-50%)
}
.section-title:before{ left:0 } .section-title:after{ right:0 }
