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

:root {
  --bg: #fff5f7;
  --card: #ffffff;
  --pink: #ff85a2;
  --pink-hover: #ff6b8f;
  --purple: #ddd6fe;
  --purple-text: #6b5b95;
  --text: #3d2c2c;
  --text-light: #8a7a7a;
  --shadow: 0 8px 32px rgba(255, 133, 162, 0.15);
  --radius: 24px;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Arka plan çiçekleri */
.flowers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.flowers::before,
.flowers::after {
  content: '🌸';
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.6;
}

.flowers::before {
  top: 8%;
  left: 12%;
  animation: float 6s ease-in-out infinite;
}

.flowers::after {
  top: 15%;
  right: 18%;
  animation: float 5s ease-in-out infinite reverse;
}

.flower-deco {
  position: fixed;
  font-size: 1rem;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(10deg); }
}

/* Ana uygulama */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Ekranlar */
.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  animation: fadeIn 0.5s ease;
}

.screen.active {
  display: block;
}

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

/* Kart */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}

.card-wide {
  max-width: 420px;
  margin: 0 auto;
}

.card-letter {
  padding: 48px 36px;
}

/* Kedi görseli */
.cat-image {
  width: 140px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
}

.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Başlıklar */
.title-with-flowers {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 32px;
}

.flower-icon {
  font-size: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);
}

.celebration-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.letter-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 20px;
}

.letter-ps {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
}

.letter-food {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--pink);
  font-weight: 700;
}

/* Butonlar */
.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 52px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-yes {
  background: var(--pink);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 133, 162, 0.4);
}

.btn-yes:hover {
  background: var(--pink-hover);
}

.btn-no {
  background: var(--purple);
  color: var(--purple-text);
  position: relative;
  transition: left 0.15s ease, top 0.15s ease, transform 0.2s;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

/* Kutlama */
.celebration-gif {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #a8d8ff, #7ec8ff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dancing-emoji {
  font-size: 3rem;
  animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.1); }
}

/* Form alanları */
.card-icons {
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.field-label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  margin-top: 16px;
}

.field-label:first-of-type {
  margin-top: 0;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #f0e6ea;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.field-input:focus {
  border-color: var(--pink);
}

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Yemek grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.food-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: none;
  border-radius: 16px;
  background: #f5f0f8;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.food-item {
  font-size: 1.8rem;
}

.food-item span {
  font-size: 0.85rem;
}

.food-item:hover,
.food-item.selected {
  background: #e8d5f5;
  transform: scale(1.04);
}

/* Avatar */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid var(--pink);
}

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

/* Kalpler */
.hearts-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  font-size: 1.2rem;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Konfeti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 100;
  animation: confetti-fall 2s ease forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 32px 20px;
  }

  .title-with-flowers {
    font-size: 1.15rem;
  }

  .button-row {
    flex-direction: column;
    gap: 12px;
  }

  .btn-no {
    order: 2;
  }

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