:root {
  --bg: #fff8fb;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #ff5c8a;
  --accent-2: #ffc9da;
  --accent-3: #ffe9f0;
  --ring: #ffd2e1;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 84px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 62px);
  margin: 0 0 10px;
  letter-spacing: .5px;
}

.hero p {
  margin: 6px 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-3);
  color: #b91c1c;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid var(--ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid var(--ring);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .1s ease, box-shadow .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.btn.primary {
  background: linear-gradient(180deg, #ff6b9d, #ff4f85);
  color: #fff;
  border-color: transparent;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

section {
  padding: 22px 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.letter {
  font-size: 1.05rem;
  white-space: pre-wrap;
  background: linear-gradient(180deg, #fff, #fff7fb);
  border-radius: 12px;
  padding: 18px;
  border: 1px dashed var(--accent-2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Kare oranı */
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
}

@media (max-width: 780px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.timeline {
  position: relative;
  padding-left: 32px; /* Artırıldı */
}

.timeline:before {
  content: "";
  position: absolute;
  left: 8px; /* Biraz sağa kaydırıldı */
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-2), transparent);
}

.t-item {
  position: relative;
  margin: 14px 0;
  padding-left: 8px; /* Metinleri daha sağa taşır */
}

.t-item:before {
  content: "";
  position: absolute;
  left: -11px; /* Nokta pozisyonu ayarlandı */
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px #ffe7f0;
}

.t-item h4 {
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
}

.note textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--ring);
  resize: vertical;
  font: inherit;
}

.note .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.note .row .btn {
  flex: 0 0 auto;
}

footer {
  padding: 26px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

/* Floating hearts */
.hearts {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.heart {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: .28;
  animation: float 9s linear infinite;
}

.heart:before, .heart:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
}

.heart:before {
  left: -9px;
}

.heart:after {
  top: -9px;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(45deg);
    opacity: .0;
  }
  10% {
    opacity: .25;
  }
  100% {
    transform: translateY(-20vh) rotate(45deg);
    opacity: 0;
  }
}

/* Intro overlay */
.intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(255,92,138,.15), transparent), linear-gradient(180deg, #fff8fb, #ffeef5);
  z-index: 20;
}

.intro .box {
  background: var(--card);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 28px;
  max-width: 680px;
  width: 92%;
  text-align: center;
}

.intro h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px,5vw,42px);
  margin: 0 0 8px;
}

.intro p {
  color: var(--muted);
  margin: 0 0 14px;
}

.intro .btn {
  font-size: 1.05rem;
}

/* Audio pill */
.audio-pill {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: var(--card);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.audio-pill button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111;
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .9rem;
}

/* Friends & Modern Family temalı ek stiller */
.friends-theme {
  background: linear-gradient(45deg, #8B4513, #CD853F);
  color: white;
  font-family: "Courier New", monospace;
  border: 2px solid #DAA520;
}

.modern-family-theme {
  background: linear-gradient(45deg, #4A90E2, #87CEEB);
  color: white;
  font-style: italic;
  border: 2px solid #4169E1;
}

.quote-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-left: 4px solid var(--accent);
  padding: 16px;
  margin: 12px 0;
  border-radius: 8px;
  font-style: italic;
  position: relative;
}

.quote-box:before {
  content: '"';
  font-size: 4em;
  color: var(--accent);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

.character-reference {
  display: inline-block;
  padding: 4px 8px;
  background: var(--accent-3);
  border-radius: 12px;
  font-size: 0.9em;
  margin: 2px;
  border: 1px solid var(--accent-2);
}
