/* WeddingMemory — mobile-first base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Outfit", sans-serif;
  color: #1a1a1a;
  background: #d7e0d8;
}

/* ---- Home hero ---- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-ambient {
  display: none;
}

.hero-frame {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-bg {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #e8ebe8;
  background-image: url("/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  /* Yazının üstünden tabana: resmi kademeli silikleştir */
  background: linear-gradient(
    to bottom,
    rgba(236, 233, 224, 0) 0%,
    rgba(236, 233, 224, 0.28) 18%,
    rgba(236, 233, 224, 0.62) 42%,
    rgba(236, 233, 224, 0.88) 68%,
    rgba(236, 233, 224, 0.96) 100%
  );
}

.hero-message {
  margin: 0 0 1.25rem;
  max-width: 19rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.015em;
  color: #1a211a;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 18px rgba(236, 233, 224, 0.9);
  text-wrap: balance;
  animation: heroRise 0.9s ease-out both;
}

.hero-cta {
  appearance: none;
  border: 1.5px solid #1a1a1a;
  background: #ffffff;
  color: #111111;
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.85rem;
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(30, 40, 30, 0.16);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease;
  animation: heroRise 0.9s ease-out 0.15s both;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero-cta:hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(30, 40, 30, 0.22);
  transform: translateY(-1px);
}

.hero-cta:active {
  background: #f3f3f3;
  color: #000000;
  border-color: #111111;
  transform: scale(0.97);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 3px 10px rgba(30, 40, 30, 0.14);
}

.hero-cta:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-message,
  .hero-cta {
    animation: none;
  }
}

/* ---- Tablet & up ---- */

@media (min-width: 768px) {
  .hero-ambient {
    display: block;
    position: fixed;
    inset: -10%;
    z-index: 0;
    background-color: #c9d6ce;
    background-image: url("/background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(52px) saturate(1.08) brightness(1.02);
    transform: scale(1.12);
    pointer-events: none;
  }

  .hero-bg {
    width: min(100%, 680px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35),
      0 24px 64px rgba(40, 55, 45, 0.18);
  }

  .hero-content {
    left: 50%;
    right: auto;
    width: min(100%, 680px);
    transform: translateX(-50%);
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-message {
    max-width: 22rem;
  }
}

@media (min-width: 1024px) {
  .hero-bg,
  .hero-content {
    width: min(100%, 780px);
  }

  .hero-ambient {
    filter: blur(64px) saturate(1.1) brightness(1.03);
  }
}

@media (min-width: 1400px) {
  .hero-bg,
  .hero-content {
    width: min(100%, 900px);
  }
}

/* ---- Share screen (Anılarını Paylaş menüsü) ---- */

.share-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-ambient {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background-color: #c9d6ce;
  background-image: url("/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: blur(38px) saturate(1.05) brightness(1.02);
  transform: scale(1.15);
  pointer-events: none;
}

.share-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 241, 234, 0.62);
}

.share-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.share-eyebrow {
  margin: 0 0 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #55604f;
}

.share-title {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  line-height: 1.25;
  color: #1a211a;
}

.share-subtitle {
  margin: 0 0 2.1rem;
  max-width: 20rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #565f52;
}

.share-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.share-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 68px;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(26, 33, 26, 0.12);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(30, 40, 30, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.share-option-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1ea;
  color: #2a322a;
}

.share-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.share-option-title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a211a;
}

.share-option-desc {
  font-size: 0.8rem;
  color: #767f72;
}

.share-option-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa196;
  transition: transform 0.18s ease, color 0.18s ease;
}

.share-option:hover {
  background: #ffffff;
  border-color: rgba(26, 33, 26, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(30, 40, 30, 0.14);
}

.share-option:hover .share-option-arrow {
  transform: translateX(2px);
  color: #2a322a;
}

.share-option:active {
  transform: scale(0.985);
}

.share-option:focus-visible {
  outline: 2px solid #2a322a;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .share-content {
    padding: 2.25rem 1.15rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .share-option {
    min-height: 62px;
    padding: 0.7rem 0.9rem;
  }

  .share-option-icon {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) {
  .share-content {
    max-width: 27rem;
  }

  .share-ambient {
    filter: blur(52px) saturate(1.08) brightness(1.02);
  }

  .share-option {
    min-height: 74px;
    padding: 1rem 1.25rem;
  }
}

@media (min-height: 800px) {
  .share-content {
    padding-top: 3.5rem;
  }
}

/* ---- Photo screen (Fotoğraf Paylaş) ---- */

.photo-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.photo-ambient {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background-color: #c9d6ce;
  background-image: url("/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: blur(38px) saturate(1.05) brightness(1.02);
  transform: scale(1.15);
  pointer-events: none;
}

.photo-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 241, 234, 0.72);
}

.photo-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.photo-topbar {
  margin-bottom: 1.1rem;
}

.photo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #3a4238;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.15rem;
}

.photo-eyebrow {
  margin: 0 0 0.4rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #55604f;
  text-align: center;
}

.photo-title {
  margin: 0 0 1.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  line-height: 1.35;
  color: #1a211a;
  text-align: center;
}

/* -- Sec durumu -- */

.photo-picker-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px dashed rgba(26, 33, 26, 0.32);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.photo-picker-btn:hover {
  background: #ffffff;
  border-color: rgba(26, 33, 26, 0.5);
}

.photo-picker-btn:active {
  transform: scale(0.985);
}

.photo-picker-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1ea;
  color: #2a322a;
}

.photo-picker-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photo-picker-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #1a211a;
}

.photo-picker-desc {
  font-size: 0.82rem;
  color: #767f72;
}

/* -- Yukleniyor durumu -- */

.photo-uploading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 0.5rem 0 0.25rem;
}

.photo-ring-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}

.photo-ring {
  transform: rotate(-90deg);
}

.photo-ring-bg {
  stroke: rgba(26, 33, 26, 0.12);
}

.photo-ring-fg {
  stroke: #2a322a;
  stroke-linecap: round;
  stroke-dasharray: 364.4;
  stroke-dashoffset: 364.4;
  transition: stroke-dashoffset 0.35s ease;
}

.photo-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-ring-count {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a211a;
  line-height: 1;
}

.photo-ring-label {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: #55604f;
}

.photo-ring-divider {
  width: 26px;
  height: 1px;
  background: rgba(26, 33, 26, 0.18);
  margin: 0.4rem 0;
}

.photo-ring-total {
  font-size: 0.68rem;
  color: #8b8b83;
}

.photo-current-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 33, 26, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.photo-current-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #e4e7e0;
  background-size: cover;
  background-position: center;
}

.photo-current-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.photo-current-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a211a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-current-status {
  margin: 0;
  font-size: 0.78rem;
  color: #767f72;
}

.photo-current-size {
  margin: 0;
  font-size: 0.78rem;
  color: #8b8b83;
}

.photo-current-percent {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2a322a;
  min-width: 2.6rem;
  text-align: right;
}

.photo-warning-box {
  width: 100%;
  padding: 0.95rem 1.05rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 33, 26, 0.1);
  border-radius: 14px;
}

.photo-warning-title {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a211a;
}

.photo-warning-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.photo-warning-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #4a5147;
}

.photo-warning-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(42, 50, 42, 0.1);
  color: #2a322a;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 600;
}

/* -- Basari banner -- */

.photo-success-banner {
  margin: 1.1rem 0 0;
  padding: 0.7rem 1rem;
  background: rgba(47, 107, 79, 0.12);
  border: 1px solid rgba(47, 107, 79, 0.28);
  border-radius: 12px;
  color: #2f6b4f;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo-success-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-success-banner[hidden] {
  display: none;
}

/* -- Galeri -- */

.photo-gallery {
  margin-top: 2rem;
}

.photo-gallery-title {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1a211a;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.photo-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(26, 33, 26, 0.08);
  background-color: #e4e7e0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease;
}

.photo-gallery-item:active {
  transform: scale(0.96);
}

.photo-cta-secondary {
  display: block;
  width: 100%;
  margin-top: 2.4rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid rgba(26, 33, 26, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #2a322a;
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.photo-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(26, 33, 26, 0.45);
}

.photo-cta-secondary:active {
  transform: scale(0.98);
}

@media (max-width: 360px) {
  .photo-content {
    padding: 1.1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .photo-ring-wrap {
    width: 112px;
    height: 112px;
  }

  .photo-ring {
    width: 112px;
    height: 112px;
  }
}

@media (min-width: 768px) {
  .photo-content {
    max-width: 30rem;
    padding-top: 2rem;
  }

  .photo-ambient {
    filter: blur(52px) saturate(1.08) brightness(1.02);
  }
}

/* -- Lightbox (buyutulmus fotograf) -- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 12, 10, 0.92);
  animation: overlayFade 0.2s ease-out both;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-img,
.lightbox-video {
  max-width: min(100%, calc(100% - 7rem));
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-video {
  background: #000;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 61;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.8);
}

.lightbox-nav svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: max(0.75rem, env(safe-area-inset-left, 0px));
}

.lightbox-next {
  right: max(0.75rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 640px) {
  .lightbox-img,
  .lightbox-video {
    max-width: 100%;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* -- Video ekrani: foto siniflarini paylasir, sadece play ikonu ekleniyor -- */

.video-current-thumb {
  position: relative;
}

.video-current-thumb::after,
.photo-gallery-item.video-gallery-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.photo-gallery-item.video-gallery-item::after {
  border-width: 9px 0 9px 15px;
}

.photo-gallery-item.video-gallery-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 24, 20, 0.38);
  transform: translate(-50%, -50%);
}

.lightbox-actions {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1rem;
  z-index: 61;
  display: flex;
  gap: 0.5rem;
}

.lightbox-close,
.lightbox-delete {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-delete:hover {
  background: rgba(179, 69, 59, 0.85);
}

/* ---- Note screen (Hatıra Defteri) ---- */

.note-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.note-ambient {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background-color: #c9d6ce;
  background-image: url("/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: blur(38px) saturate(1.05) brightness(1.02);
  transform: scale(1.15);
  pointer-events: none;
}

.note-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 241, 234, 0.7);
}

.note-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.note-topbar {
  margin-bottom: 1.1rem;
}

.note-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #3a4238;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.15rem;
}

.note-back svg {
  flex-shrink: 0;
}

.note-eyebrow {
  margin: 0 0 0.4rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #55604f;
  text-align: center;
}

.note-quote {
  margin: 0 0 1.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  line-height: 1.42;
  color: #1a211a;
  text-align: center;
}

.note-form {
  width: 100%;
}

.note-textarea-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.note-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 0.95rem 1rem 1.6rem;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(26, 33, 26, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.note-textarea::placeholder {
  color: #9a9a92;
}

.note-textarea:focus {
  outline: none;
  border-color: #2a322a;
  box-shadow: 0 0 0 3px rgba(42, 50, 42, 0.1);
  background: #ffffff;
}

.note-textarea.field-invalid {
  border-color: #b3453b;
}

.note-counter {
  position: absolute;
  right: 0.85rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  color: #8b8b83;
  pointer-events: none;
}

.note-save-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.note-save-btn {
  appearance: none;
  flex-shrink: 0;
  min-width: 9.5rem;
  min-height: 50px;
  padding: 0 1.6rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.note-save-btn:hover {
  background: #ffffff;
  color: #111111;
}

.note-save-btn:active {
  transform: scale(0.97);
}

.note-save-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.note-success {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2f6b4f;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.note-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.note-success[hidden] {
  display: none;
}

.note-mynotes {
  margin-top: 2.4rem;
}

.note-mynotes-title {
  margin: 0 0 0.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1a211a;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.note-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 33, 26, 0.1);
  border-radius: 14px;
  padding: 0.9rem 2.5rem 0.9rem 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.note-card-delete {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9a9a92;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.note-card-delete:hover {
  background: rgba(179, 69, 59, 0.1);
  color: #b3453b;
}

.note-card-text {
  margin: 0 0 0.35rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #232823;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card-date {
  font-size: 0.74rem;
  color: #8b8b83;
}

.note-empty,
.note-loading {
  margin: 0;
  padding: 0.5rem 0.1rem;
  font-size: 0.88rem;
  color: #6f776b;
  text-align: center;
}

.note-empty[hidden],
.note-loading[hidden] {
  display: none;
}

.note-cta-secondary {
  display: block;
  width: 100%;
  margin-top: 2.4rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid rgba(26, 33, 26, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #2a322a;
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.note-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(26, 33, 26, 0.45);
}

.note-cta-secondary:active {
  transform: scale(0.98);
}

@media (max-width: 360px) {
  .note-content {
    padding: 1.1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .note-save-row {
    flex-wrap: wrap;
  }

  .note-save-btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .note-content {
    max-width: 30rem;
    padding-top: 2rem;
  }

  .note-ambient {
    filter: blur(52px) saturate(1.08) brightness(1.02);
  }
}

/* ---- Onay dialogu (silme vb. yikici islemler icin, tum sayfalarda ortak) ---- */

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 24, 20, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: overlayFade 0.2s ease-out both;
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-card {
  width: 100%;
  max-width: 20rem;
  background: #fbfaf7;
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 24, 20, 0.28);
  animation: modalRise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm-message {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #232823;
}

.confirm-actions {
  display: flex;
  gap: 0.7rem;
}

.confirm-btn {
  appearance: none;
  flex: 1;
  min-height: 46px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.confirm-btn:active {
  transform: scale(0.97);
}

.confirm-btn-cancel {
  border: 1.5px solid rgba(26, 33, 26, 0.25);
  background: transparent;
  color: #2a322a;
}

.confirm-btn-cancel:hover {
  background: rgba(26, 33, 26, 0.06);
}

.confirm-btn-danger {
  border: 1.5px solid #b3453b;
  background: #b3453b;
  color: #ffffff;
}

.confirm-btn-danger:hover {
  background: #9c3a31;
  border-color: #9c3a31;
}

/* ---- Guest register modal ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 24, 20, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: overlayFade 0.2s ease-out both;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: #fbfaf7;
  border-radius: 22px;
  padding: 1.85rem 1.5rem 1.6rem;
  box-shadow: 0 24px 60px rgba(20, 24, 20, 0.28);
  animation: modalRise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #4a4a4a;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.modal-title {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a211a;
  padding-right: 1.5rem;
}

.modal-subtitle {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #6b6b6b;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #3a3a3a;
}

.form-field input {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 0.9rem;
  font-size: 1rem;
  font-family: "Outfit", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  border: 1.5px solid #dcdad3;
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input::placeholder {
  color: #a8a8a0;
}

.form-field input:focus {
  outline: none;
  border-color: #2a322a;
  box-shadow: 0 0 0 3px rgba(42, 50, 42, 0.1);
}

.form-field input.field-invalid {
  border-color: #b3453b;
}

.form-error {
  margin: -0.3rem 0 0;
  font-size: 0.85rem;
  color: #b3453b;
}

.form-error[hidden] {
  display: none;
}

.modal-submit {
  appearance: none;
  width: 100%;
  min-height: 50px;
  margin-top: 0.35rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.modal-submit:hover {
  background: #ffffff;
  color: #111111;
}

.modal-submit:active {
  transform: scale(0.98);
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Very small phones: tighten spacing so the card never overflows */
@media (max-width: 360px) {
  .modal-card {
    padding: 1.5rem 1.15rem 1.35rem;
    border-radius: 18px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-form {
    gap: 0.85rem;
  }
}

/* Short viewports (landscape phones): allow scroll, shrink top space */
@media (max-height: 560px) {
  .modal-overlay {
    align-items: flex-start;
    padding-top: 1.25rem;
  }
}

/* Tablet & up: slightly roomier card */
@media (min-width: 768px) {
  .modal-card {
    max-width: 24rem;
    padding: 2.25rem 2rem 1.9rem;
  }

  .modal-title {
    font-size: 1.65rem;
  }
}

/* ---- Error page ---- */

.error-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.error-shell h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-id {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #666;
}

/* ---- Admin ---- */

a.share-option {
  text-decoration: none;
  color: inherit;
}

.admin-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

.admin-back-link {
  margin-top: 1.5rem;
}

.admin-topbar {
  width: 100%;
  margin-bottom: 0.5rem;
}

.admin-logout-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #55604f;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-count {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #565f52;
}

.admin-empty {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: #6a7465;
  text-align: center;
}

.admin-gallery-item {
  position: relative;
}

.admin-gallery-item .admin-item-owner {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(18, 24, 18, 0.72);
  color: #f7f5ef;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.admin-lightbox-actions {
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.admin-lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
  padding-right: 0.5rem;
  text-align: left;
}

.admin-lightbox-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: #f7f5ef;
  line-height: 1.2;
}

.admin-lightbox-date {
  font-size: 0.78rem;
  color: rgba(243, 241, 234, 0.78);
}

.admin-notes-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 2rem;
}

.admin-note-card {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(26, 33, 26, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(30, 40, 30, 0.08);
  text-align: left;
}

.admin-note-owner {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: #1a211a;
}

.admin-note-content {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #1a211a;
  white-space: pre-wrap;
}

.admin-note-date {
  margin: 0;
  font-size: 0.78rem;
  color: #7a8374;
}

.hero-admin-link {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 33, 26, 0.38);
  text-decoration: none;
}

.hero-admin-link:hover {
  color: rgba(26, 33, 26, 0.62);
}
