/* ================================================================= */
/* AŞK KAVANOZU (MEMORY JAR) STİLLERİ */
/* ================================================================= */
.jar-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-top: 20px;
  flex-grow: 1;
}

.jar-text-side {
  flex: 1;
  max-width: 500px;
}

.jar-visual-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Mesaj Kutusu Gösterim Kartı */
.note-display-card {
  background: white;
  border: 2px dashed var(--rose-light);
  box-shadow: 0 8px 25px rgba(255, 71, 126, 0.08);
  border-radius: 20px;
  padding: 30px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.note-display-card::before {
  content: '❝';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 50px;
  font-family: var(--romantic-font);
  color: var(--rose-pastel);
  line-height: 1;
}

.note-display-card::after {
  content: '❞';
  position: absolute;
  bottom: -15px;
  right: 20px;
  font-size: 50px;
  font-family: var(--romantic-font);
  color: var(--rose-pastel);
  line-height: 1;
}

#note-text {
  font-family: var(--primary-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.6;
  z-index: 1;
  word-break: break-word;
}

/* Not Değişirken Uygulanacak Bıçak/Zıplama Animasyonu */
.note-display-card.new-note {
  animation: notePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes notePopIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Kavanoz Konteyneri ve Fiziği */
.jar-wrapper {
  position: relative;
  cursor: pointer;
  animation: jarFloat 4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.jar-wrapper:hover {
  transform: scale(1.03);
}

.jar-wrapper:active {
  transform: scale(0.97);
}

.jar-wrapper.shake {
  animation: jarShake 0.5s ease-in-out;
}

/* Yavaşça Havada Süzülme Animasyonu */
@keyframes jarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sallanma Animasyonu (Tıklandığında) */
@keyframes jarShake {
  0%, 100% { transform: rotate(0deg) scale(1.03); }
  20%, 60% { transform: rotate(-5deg) scale(1.03); }
  40%, 80% { transform: rotate(5deg) scale(1.03); }
}

/* Kavanozun Altındaki Işıma */
.jar-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: var(--rose-medium);
  filter: blur(25px);
  opacity: 0.25;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transition: all 0.3s;
}

.jar-wrapper:hover + .jar-glow {
  opacity: 0.4;
  width: 170px;
}

/* Kavanozun İçinden Çıkan Mini Kalpler */
.jar-burst-heart {
  position: absolute;
  color: var(--rose-deep);
  pointer-events: none;
  z-index: 10;
  animation: burstOut 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes burstOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(var(--rot));
  }
}

/* ================================================================= */
/* RESPONSIVE */
/* ================================================================= */
@media (max-width: 768px) {
  .jar-layout {
    flex-direction: column-reverse;
    gap: 30px;
    margin-top: 10px;
  }
  .jar-text-side {
    width: 100%;
  }
  .note-display-card {
    min-height: 150px;
    padding: 20px;
  }
  #note-text {
    font-size: 16px;
  }
}
