/* ===== Wishes Section ===== */
.wishes-section {
  text-align: center;
}

.comment-form {
  max-width: 550px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #e0d8c8;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  align-self: center;
}

.btn-submit:hover {
  background: #c09060;
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-heart {
  display: inline-block;
  transition: transform 0.3s;
}

.btn-submit:hover .btn-heart {
  animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
}

/* ===== Comments List ===== */
.comments-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comment-card {
  background: var(--color-white);
  border-radius: var(--card-border-radius, 16px);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInCard 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.comment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.comment-card__author {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.comment-card__message {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.comment-card__date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

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

/* ===== Floating Comments ===== */
.floating-comments {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.floating-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(0.6rem, 2vw, 1.2rem);
  max-width: clamp(160px, 30vw, 260px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 163, 115, 0.2);
  animation: floatBubble var(--duration, 12s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.floating-bubble__author {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  font-weight: 600;
  color: var(--color-primary);
}

.floating-bubble__message {
  font-size: clamp(0.6rem, 1.3vw, 0.8rem);
  color: var(--color-text);
  line-height: 1.4;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes floatBubble {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  85% {
    opacity: 1;
    transform: translateY(-40px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
}

/* ===== Floating Gallery Photos ===== */
.floating-photo-bubble {
  position: absolute;
  width: clamp(80px, 18vw, 140px);
  height: clamp(80px, 18vw, 140px);
  border-radius: var(--card-border-radius, 16px);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  border: clamp(2px, 0.4vw, 3px) solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
  animation: floatPhotoBubble var(--duration, 14s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.floating-photo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floatPhotoBubble {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.7) rotate(0deg);
  }
  8% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rotation, 3deg));
  }
  50% {
    transform: translateY(-20px) scale(1.02) rotate(calc(var(--rotation, 3deg) * -0.5));
  }
  85% {
    opacity: 1;
    transform: translateY(-50px) scale(1) rotate(var(--rotation, 3deg));
  }
  100% {
    opacity: 0;
    transform: translateY(-90px) scale(0.85) rotate(0deg);
  }
}
