:root {
  --rose: #e8577e;
  --rose-dark: #b83a5e;
  --blush: #fff1f4;
  --cream: #fffaf6;
  --ink: #3b2a30;
  --muted: #8a6f78;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(184, 58, 94, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.heart {
  position: absolute;
  bottom: -40px;
  color: var(--rose);
  opacity: 0.25;
  animation: float linear infinite;
}

@keyframes float {
  to {
    transform: translateY(-110vh) rotate(25deg);
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--rose-dark);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--rose);
  line-height: 1.1;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}

.countdown {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--rose-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.scroll-down {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s;
}

.scroll-down:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

.scroll-down.secondary {
  background: #fff;
  color: var(--rose-dark);
}

.scroll-down.secondary:hover {
  background: var(--blush);
}

.footer .scroll-down {
  margin-top: 1.5rem;
}

/* Share page */
.top-nav {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
}

.top-nav a {
  color: var(--rose-dark);
  text-decoration: none;
  font-weight: 500;
}

.page-header {
  text-align: center;
  padding: 1rem 1.25rem 2rem;
}

.page-header h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--rose);
}

.page-header .hero-subtitle {
  margin: 0.5rem auto 0;
}

.share {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: grid;
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.section-title {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 1rem;
  border: 2px dashed #f2a7bb;
  border-radius: 16px;
  background: var(--blush);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dropzone:hover,
.dropzone.dragging {
  background: #ffe3ea;
  border-color: var(--rose);
}

.dropzone-icon {
  font-size: 2.5rem;
}

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

.upload-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.upload-info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.upload-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.upload-status {
  flex-shrink: 0;
  color: var(--muted);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--blush);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--rose);
  transition: width 0.3s;
}

.upload-item.done .upload-status {
  color: #2e9e63;
}

.upload-item.done .progress-fill {
  background: #2e9e63;
}

.upload-item.failed .upload-status {
  color: #c0392b;
  white-space: normal;
  text-align: right;
}

.files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font: 500 0.9rem "Poppins", sans-serif;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-light {
  background: var(--blush);
  color: var(--rose-dark);
}

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

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.file-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blush);
  cursor: pointer;
  outline: 3px solid transparent;
  transition: outline-color 0.2s;
}

.file-card.selected {
  outline-color: var(--rose);
}

.file-check {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--rose);
  z-index: 1;
}

.file-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe3ea;
}

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

.file-icon {
  font-size: 2.5rem;
}

.file-meta {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
}

.file-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-sub {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Timeline */
.timeline {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--rose), transparent);
  opacity: 0.3;
  transform: translateX(-50%);
}

.loading,
.error {
  text-align: center;
  color: var(--muted);
}

.day {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.day.visible {
  opacity: 1;
  transform: none;
}

.day.today {
  outline: 3px solid var(--rose);
}

.day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.day-number {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose);
  font-weight: 600;
}

.day-date {
  font-size: 0.95rem;
  color: var(--muted);
}

.today-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  vertical-align: middle;
}

.day-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem;
  color: var(--ink);
  width: 100%;
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--blush);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.photo:hover img {
  transform: scale(1.05);
}

.photo figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rose-dark);
}

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--blush);
  font-size: 0.9rem;
  font-weight: 500;
}

.description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.love-note {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe3ea, #fff1f4);
  font-family: "Dancing Script", cursive;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--rose-dark);
}

.love-note::before {
  content: "♥";
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: var(--rose);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1rem 4rem;
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: var(--rose);
}

@media (max-width: 600px) {
  .timeline::before {
    display: none;
  }

  .day {
    padding: 1.25rem;
  }

  .photos {
    gap: 0.6rem;
  }

  .day-title {
    font-size: 1.9rem;
  }

  .love-note {
    font-size: 1.3rem;
  }
}
