/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #ffeaf4 0, #ffd1e6 40%, #ffb6d9 100%);
  color: #4b2244;
  padding: 20px;
}

/* Floating hearts background */
.heart {
  position: fixed;
  width: 18px;
  height: 18px;
  background: #ff7aa2;
  transform: rotate(45deg);
  opacity: 0.35;
  animation: float 12s linear infinite;
  z-index: 0;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: inherit;
  border-radius: 50%;
}

.heart::before {
  top: -9px;
  left: 0;
}

.heart::after {
  left: -9px;
  top: 0;
}

.heart:nth-child(1) {
  left: 10%;
  bottom: -10%;
  animation-delay: 0s;
}
.heart:nth-child(2) {
  left: 35%;
  bottom: -15%;
  animation-delay: 3s;
}
.heart:nth-child(3) {
  left: 60%;
  bottom: -12%;
  animation-delay: 6s;
}
.heart:nth-child(4) {
  left: 80%;
  bottom: -18%;
  animation-delay: 9s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-120vh) rotate(45deg);
    opacity: 0;
  }
}

/* Main card container */
.card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow:
    0 18px 40px rgba(212, 78, 129, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 32px 26px;
  max-width: 960px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 720px) {
  .card {
    padding: 40px 48px;
  }
}

.card-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

/* Cute character badge */
.cute-character {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff7fb 0, #ffd6e9 40%, #ff9fc7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(213, 74, 129, 0.35);
  border: 2px solid #ffe2f1;
  flex-shrink: 0;
}

.cute-character span {
  font-size: 34px;
}

/* Title and subtitle */
.card-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d63385;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #7e496d;
  margin-top: 4px;
}

/* Floral corner decoration */
.flower {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, #ffeaf4 0, #ffb6d9 40%, #ff7aa2 100%);
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(0.5px);
}

.flower::before,
.flower::after {
  content: "✿";
  position: absolute;
  font-size: 32px;
  color: #ff7aa2;
}

.flower::before {
  top: 40%;
  left: 10%;
}

.flower::after {
  top: 10%;
  left: 45%;
}

/* Body text */
.card-body {
  margin-top: 8px;
}

.card-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Buttons / links */
.button-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7aa2, #ffb3c6);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(214, 71, 129, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(214, 71, 129, 0.55);
  filter: brightness(1.03);
}

.btn-ghost {
  background: transparent;
  color: #d63385;
  box-shadow: none;
  border: 1px solid rgba(214, 51, 133, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 217, 234, 0.7);
  box-shadow: 0 8px 20px rgba(214, 71, 129, 0.28);
}

/* Feelings grid */
.grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feeling-card {
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 234, 245, 0.9),
    rgba(255, 204, 227, 0.9)
  );
  border: 1px solid rgba(214, 51, 133, 0.18);
  box-shadow: 0 8px 18px rgba(214, 71, 129, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feeling-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c03a7d;
}

.feeling-title {
  font-size: 1rem;
  font-weight: 600;
}

.feeling-desc {
  font-size: 0.85rem;
  color: #7e496d;
}

.feeling-card a {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #d63385;
}

/* Small footer text */
.footer-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #a56794;
  opacity: 0.9;
}

/* Memories section */
.memories-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(214, 51, 133, 0.35);
}

.memories-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #c03a7d;
}

.memories-desc {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #8b5276;
}

.memory-grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

/*
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
*/

@media (min-width: 640px) {
  .memory-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.memory-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 51, 133, 0.18);
  box-shadow: 0 6px 14px rgba(214, 71, 129, 0.12);
}

.memory-media {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 6px;
  object-fit: cover;
  max-height: 260px;
}

.memory-caption {
  font-size: 0.8rem;
  color: #7e496d;
}

.memory-caption strong {
  display: block;
  margin-bottom: 2px;
}

.memory-placeholder {
  width: 100%;
  min-height: 120px;
  border-radius: 14px;
  border: 2px dashed rgba(214, 51, 133, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  color: #b05588;
  background: rgba(255, 234, 245, 0.6);
}

.hint-text {
  position: fixed;
  bottom: 94px;
  right: 50%;
  transform: translateX(50%);
  font-size: 0.75rem;
  color: rgba(214, 71, 129, 0.75);
  animation: floatHint 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes floatHint {
  0%, 100% {
    transform: translateX(50%) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateX(50%) translateY(-6px);
    opacity: 0.4;
  }
}
