/* Düğün / LCV - Ana stiller */
:root {
  --color-bg: #fdfbf7;
  --color-cream: #f5f0e8;
  --color-gold: #b8860b;
  --color-gold-light: #d4a84b;
  --color-text: #2c2c2c;
  --color-muted: #5a5a5a;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Jost', 'Segoe UI', sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 2px 12px rgba(184, 134, 11, 0.12);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-gold-light);
}

/* Tipografi */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

.hero {
  min-height: 85vh;
  height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(165deg, var(--color-cream) 0%, var(--color-bg) 45%, #faf8f4 100%);
  position: relative;
  overflow: hidden;
}

/* 6 sn sadece resim, 6 sn sadece yazı – kesin tek görünsün (display ile) */
.hero-content {
  position: relative;
  z-index: 3;
  transition: opacity 0.5s ease;
}

/* Slider – hero’yu tam kaplasın, resim büyük görünsün */
.hero-bg-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  right: 50px;
  height: 100%;
  min-height: 100%;
  z-index: 1;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.hero::before {
  transition: opacity 0.5s ease;
}

/* Resim periyodu: YALNIZCA resim görünsün */
.hero.hero-show-images .hero-bg-slider {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero.hero-show-images .hero-content {
  display: none !important;
}

.hero.hero-show-images .hero::before {
  opacity: 0 !important;
}

/* Yazı periyodu: YALNIZCA yazı görünsün */
.hero.hero-show-text .hero-bg-slider {
  display: none !important;
}

.hero.hero-show-text .hero-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero.hero-show-text .hero::before {
  opacity: 1 !important;
}

/* Slider div varsa ama henüz class yoksa gizli (güvenlik) */
.hero:not(.hero-show-images):not(.hero-show-text) .hero-bg-slider {
  display: none;
}

.hero-bg-slider .hero-bg-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.hero-bg-slider .hero-bg-img.hero-bg-visible {
  opacity: 1;
}

.hero>*:not(.hero-bg-slider) {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.75) 0%, rgba(253, 251, 247, 0.5) 50%, rgba(253, 251, 247, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .couple-names-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.hero .couple-name {
  display: inline-block;
}

.hero .amp {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--color-muted);
  opacity: 0.9;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-top: 0.85rem;
  position: relative;
}

/* Tarih ve Nikah/Düğün saati – tek tip yazı, birbirine yakın */
.hero .tagline:first-of-type,
.hero .tagline.schedule {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.hero .tagline.schedule {
  margin-top: 0.15rem;
}

.hero .families {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.hero .family-line {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0;
}

.hero .family-line strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05em;
}

.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

#hosgeldiniz {
  padding-top: 1rem;
}

/* Çocukluk videoları – yan yana, hover'da ses açılır */
.childhood-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.childhood-video-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.childhood-video-wrap .video-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  pointer-events: none;
}

.childhood-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.childhood-video-wrap {
  cursor: pointer;
}

.childhood-video-wrap:hover .childhood-video {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Video modal – tıklayınca büyük açılır */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: #fff;
}

.video-modal-label {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.video-modal-video {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 5rem);
  display: block;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .childhood-videos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .childhood-video {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .video-modal {
    padding: 0;
  }

  .video-modal-content {
    padding: 0.5rem;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .video-modal-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
  }

  .video-modal-video {
    max-height: calc(100vh - 4rem);
    width: 100%;
    object-fit: contain;
  }

  .video-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
}

#hosgeldiniz .section-title {
  margin-bottom: 0.6rem;
}

#hosgeldiniz p {
  margin-bottom: 0.5rem;
}

#konum {
  padding-top: 0;
  margin-top: -2.5rem;
}

#konum .section-title {
  margin-bottom: 0.6rem;
}

#konum p {
  margin-bottom: 0.5rem;
}

#konum .parking-note {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.section p {
  font-size: 1.15rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 1.1rem;
}

/* Buton */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-gold);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.35);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 1.05rem;
}

.hero .btn {
  margin-top: 2rem;
}

/* Galeri */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Harita */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  aspect-ratio: 16/9;
  background: var(--color-cream);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-wrap-link {
  aspect-ratio: unset;
  padding: 1.5rem;
  text-align: center;
}

.map-placeholder-text {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.15rem;
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  margin-left: 0.5rem;
}

.btn-outline:hover {
  background: var(--color-gold);
  color: #fff;
}

@media (max-width: 640px) {
  .hero .couple-names-wrap {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }
}

@media (max-width: 540px) {
  .map-wrap-link p .btn {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .map-wrap-link p .btn+.btn {
    margin-left: 0;
  }
}

/* RSVP sayfası */
.rsvp-page .section {
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group .hint {
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.guest-count-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.guest-count-col {
  display: flex;
  flex-direction: column;
}

.guest-count-col .sub-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.guest-count-col select {
  width: 100%;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-actions .btn {
  width: 100%;
  padding: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
}

/* Güncelleme onay kutusu (aynı kişi tekrar kayıt) */
.update-confirm-box {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f0f7f0;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
}

.update-confirm-inner h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.update-confirm-inner p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.update-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.update-col {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.update-col strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}

.update-col ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.update-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.update-confirm-actions .btn {
  margin: 0;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background: #5a6268;
  color: #fff;
}

@media (max-width: 600px) {
  .update-compare {
    grid-template-columns: 1fr;
  }
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 18px 0 14px 0;
}

.site-nav a {
  color: var(--color-gold);
  font-weight: 500;
  font-size: 1.1em;
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: var(--color-cream);
  color: var(--color-gold-light);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 0.25rem 1.5rem 2rem;
  margin-top: -2rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Admin */
.admin-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-wrap h1 {
  margin-bottom: 1.5rem;
  color: var(--color-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card .number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-gold);
}

.stat-card .label {
  font-size: 1rem;
  color: var(--color-muted);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Admin liste – önceki sade görünüm: krem başlık, ferah sütun, okunaklı punto */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
  /* ~17px, okunaklı */
  line-height: 1.5;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-cream);
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.admin-table tbody tr:hover {
  background: rgba(245, 240, 232, 0.5);
}

/* Sıra no (#) – daha sıkı */
.admin-table th:first-child,
.admin-table td:first-child {
  padding-left: 1rem;
  padding-right: 0.75rem;
  width: 2.75rem;
}

.admin-table .col-num {
  text-align: right;
}

/* Ad, Soyad, Taraf, Kişi – birbirine daha yakın */
.admin-table th:nth-child(2),
.admin-table th:nth-child(3),
.admin-table th:nth-child(4),
.admin-table th:nth-child(5),
.admin-table td:nth-child(2),
.admin-table td:nth-child(3),
.admin-table td:nth-child(4),
.admin-table td:nth-child(5) {
  padding-left: 1rem;
  padding-right: 1rem;
}

.admin-table .col-tarih {
  white-space: nowrap;
  min-width: 11rem;
  padding-left: 1.75rem;
  padding-right: 2rem;
}

.admin-table .col-mesaj {
  max-width: 320px;
  min-width: 200px;
  white-space: normal;
  word-break: break-word;
  padding-left: 1.75rem;
  padding-right: 2rem;
}

/* Telefon – orta boşluk */
.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.admin-table td {
  color: var(--color-text);
}

.btn-export {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #217346;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-export:hover {
  background: #1a5c38;
  color: #fff;
}

.capacity-warn {
  color: #c00;
  font-weight: 600;
}

.admin-login-form {
  max-width: 360px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-login-form h2 {
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.admin-login-form .form-group {
  margin-bottom: 1rem;
}

.admin-login-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero {
    min-height: 70vh;
    height: 70vh;
    padding: 2rem 1rem;
  }

  .guest-count-row {
    grid-template-columns: 1fr;
  }
}

/* Dropdown menü stilleri */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(184,134,11,0.10);
  z-index: 101;
  border-radius: 8px;
  margin-top: 8px;
}
.dropdown-content a {
  color: var(--color-gold);
  padding: 10px 18px;
  display: block;
  text-align: left;
  border-radius: 8px;
}
.dropdown-content a:hover {
  background: var(--color-cream);
  color: var(--color-gold-light);
}
.dropdown:hover .dropdown-content {
  display: block;
}