/* ═══════════════════════════════════════════════════════════
   Dani & Luz de Belén — Anniversary Gallery
   Design System: Romantic Aurora
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  /* Colors */
  --bg-deep: #110710;
  --bg-surface: #1a0e15;
  --bg-card: #221420;
  --bg-card-hover: #2d1a2a;
  --bg-elevated: #2a1825;

  --accent-rose: #DB2777;
  --accent-rose-light: #F472B6;
  --accent-rose-dark: #9D174D;
  --accent-gold: #D4A574;
  --accent-gold-light: #E8C9A0;
  --accent-purple: #A855F7;
  --accent-indigo: #6366F1;

  --text-primary: #FDF2F8;
  --text-secondary: #E8D0DE;
  --text-muted: #9B7A8C;
  --text-inverse: #110710;

  --border-subtle: rgba(212, 165, 116, 0.15);
  --border-accent: rgba(219, 39, 119, 0.3);

  --glass-bg: rgba(34, 20, 32, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;

  --gradient-aurora: linear-gradient(135deg, #DB2777 0%, #A855F7 50%, #6366F1 100%);
  --gradient-aurora-soft: linear-gradient(135deg, rgba(219,39,119,0.15) 0%, rgba(168,85,247,0.1) 50%, rgba(99,102,241,0.08) 100%);
  --gradient-gold: linear-gradient(135deg, #D4A574, #E8C9A0, #D4A574);

  /* Typography */
  --font-display: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Infant', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-rose: 0 0 30px rgba(219, 39, 119, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(212, 165, 116, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── Utilities ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.nav.scrolled {
  background: rgba(17, 7, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-rose-light);
}

.nav__icon {
  width: 24px;
  height: 24px;
  color: var(--accent-rose);
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-aurora);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg);
}

.hero__aurora {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #110710 0%,
    #1a0a20 20%,
    #200e2e 40%,
    #2d0a25 60%,
    #1a0a14 80%,
    #110710 100%
  );
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}

.hero__aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(219, 39, 119, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__photo-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.2) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
  filter: blur(40px);
  top: -20px;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero__photo-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-gold);
  box-shadow: var(--shadow-glow-gold), var(--shadow-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-deep);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(219, 39, 119, 0.3);
  line-height: 1.2;
}

.hero__title span {
  color: var(--accent-rose-light);
  display: inline-block;
  animation: pulse-heart 2s ease-in-out infinite;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.hero__date {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(34, 20, 32, 0.5);
}

.hero__date-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  transition: color var(--duration-fast) ease;
}

.hero__scroll:hover { color: var(--text-primary); }

.hero__scroll svg {
  width: 24px;
  height: 24px;
  animation: bounce-down 2s ease-in-out infinite;
}

/* Hero Floating Hearts */
.hero__float-heart {
  position: absolute;
  color: var(--accent-rose);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: float-heart-drift linear infinite;
}

.hero__float-heart--1 { width: 18px; left: 10%; top: 20%; animation-duration: 8s; animation-delay: 0s; opacity: 0.15; }
.hero__float-heart--2 { width: 14px; left: 85%; top: 30%; animation-duration: 10s; animation-delay: 1.5s; opacity: 0.12; }
.hero__float-heart--3 { width: 22px; left: 20%; top: 70%; animation-duration: 9s; animation-delay: 3s; opacity: 0.1; }
.hero__float-heart--4 { width: 12px; left: 75%; top: 65%; animation-duration: 11s; animation-delay: 0.8s; opacity: 0.14; }
.hero__float-heart--5 { width: 16px; left: 45%; top: 15%; animation-duration: 7s; animation-delay: 2s; opacity: 0.12; }
.hero__float-heart--6 { width: 20px; left: 60%; top: 80%; animation-duration: 12s; animation-delay: 4s; opacity: 0.08; }

/* ─── Gallery ────────────────────────────────────────────── */
.gallery {
  background: var(--bg-surface);
}

.gallery__filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.filter-tab svg {
  width: 16px;
  height: 16px;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-rose);
  background: var(--bg-card-hover);
}

.filter-tab.active {
  color: white;
  background: var(--gradient-aurora);
  border-color: transparent;
  box-shadow: var(--shadow-glow-rose);
}

.gallery__grid {
  columns: 4 280px;
  column-gap: var(--space-md);
}

.gallery__empty {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-3xl);
}

/* Photo Card */
.photo-card {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) ease;
  animation: fade-in-up var(--duration-slow) var(--ease-out) both;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-rose-dark);
}

.photo-card__image {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
  background: var(--bg-card);
}

.photo-card:hover .photo-card__image {
  transform: scale(1.05);
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 7, 16, 0.85) 0%,
    rgba(17, 7, 16, 0.3) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.photo-card:hover .photo-card__overlay {
  opacity: 1;
}

.photo-card__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.photo-card__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.photo-card__btn svg {
  width: 16px;
  height: 16px;
}

.photo-card__btn:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  transform: scale(1.1);
}

.photo-card__btn--fav.is-favorite {
  color: var(--accent-rose);
}

.photo-card__btn--fav.is-favorite svg {
  fill: var(--accent-rose);
}

.photo-card__dedication {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: none;
  padding: 0;
  background: transparent;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox[open] {
  display: flex;
  animation: fade-in var(--duration-normal) var(--ease-out);
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 10;
  transition: all var(--duration-fast) ease;
}

.lightbox__close svg { width: 24px; height: 24px; }

.lightbox__close:hover {
  background: var(--accent-rose);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 10;
  transition: all var(--duration-fast) ease;
}

.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav:hover { background: var(--accent-rose); transform: translateY(-50%) scale(1.1); }
.lightbox__nav--prev { left: var(--space-lg); }
.lightbox__nav--next { right: var(--space-lg); }

.lightbox__content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scale-in var(--duration-normal) var(--ease-bounce);
}

.lightbox__image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin-top: var(--space-lg);
  gap: var(--space-md);
}

.lightbox__dedication {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
}

.lightbox__actions {
  display: flex;
  gap: var(--space-sm);
}

.lightbox__action {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
}

.lightbox__action svg { width: 20px; height: 20px; }
.lightbox__action:hover { background: var(--accent-rose); transform: scale(1.1); }

.lightbox__action.is-favorite svg {
  fill: var(--accent-rose);
  color: var(--accent-rose);
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 10;
}

/* ─── Dedications ────────────────────────────────────────── */
.dedications {
  background: var(--bg-deep);
}

.dedications__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.dedication-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  animation: fade-in-up var(--duration-slow) var(--ease-out) both;
}

.dedication-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dedication-card__quote {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  opacity: 0.1;
}

.dedication-card__quote svg {
  width: 32px;
  height: 32px;
  color: var(--accent-rose);
}

.dedication-card__text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  padding-top: var(--space-sm);
}

.dedication-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dedication-card__author {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-rose-light);
}

.dedication-card__author::before {
  content: '— ';
  color: var(--text-muted);
}

.dedication-card__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dedication-card__actions {
  display: flex;
  gap: var(--space-xs);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.dedication-card:hover .dedication-card__actions {
  opacity: 1;
}

.dedication-card__action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
}

.dedication-card__action-btn svg {
  width: 14px;
  height: 14px;
}

.dedication-card__action-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.dedication-card__action-btn--delete:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Dedication Form */
.dedications__form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.dedication-form {
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.author-selector,
.category-selector {
  display: flex;
  gap: var(--space-sm);
}

.author-option input,
.category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.author-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  transition: all var(--duration-normal) var(--ease-out);
}

.author-chip svg,
.category-chip svg {
  width: 16px;
  height: 16px;
}

.author-chip:hover,
.category-chip:hover {
  border-color: var(--accent-rose);
}

.author-option input:checked + .author-chip,
.category-option input:checked + .category-chip {
  background: var(--gradient-aurora);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow-rose);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  resize: vertical;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--duration-normal) var(--ease-out);
  min-height: 44px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--gradient-aurora);
  color: white;
  box-shadow: var(--shadow-glow-rose);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(219, 39, 119, 0.4);
}

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

.btn--ghost {
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ─── Upload ─────────────────────────────────────────────── */
.upload {
  background: var(--bg-surface);
}

.upload__zone {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-3xl) var(--space-xl);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  background: rgba(212, 165, 116, 0.03);
}

.upload__zone:hover,
.upload__zone.drag-over {
  border-color: var(--accent-rose);
  background: rgba(219, 39, 119, 0.05);
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-rose);
}

.upload__icon {
  width: 56px;
  height: 56px;
  color: var(--accent-gold);
  margin: 0 auto var(--space-md);
  transition: color var(--duration-normal) ease;
}

.upload__zone:hover .upload__icon {
  color: var(--accent-rose);
}

.upload__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.upload__subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload__preview {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.upload__thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
}

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

.upload__thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.upload__thumb-remove svg {
  width: 12px;
  height: 12px;
}

.upload__options {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.upload__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.upload__progress {
  margin-top: var(--space-md);
  text-align: center;
}

.progress-bar {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-aurora);
  border-radius: 3px;
  transition: width var(--duration-normal) ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__counter {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
}

.footer__counter strong {
  color: var(--accent-rose-light);
  font-weight: 600;
}

.footer__heart {
  color: var(--accent-rose);
}

.beating-heart {
  width: 28px;
  height: 28px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.footer__credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  color: var(--text-primary);
  animation: slide-in-right var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(12px);
}

.toast--success { border-left: 3px solid #10B981; }
.toast--error { border-left: 3px solid #EF4444; }
.toast--info { border-left: 3px solid var(--accent-rose); }

.toast.removing {
  animation: slide-out-right var(--duration-normal) var(--ease-out) forwards;
}

/* ─── Anniversary Effects ────────────────────────────────── */
.anniversary-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
}

.anniversary-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--gradient-gold);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-inverse);
  z-index: 501;
  transform: translateY(-100%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: auto;
}

.anniversary-banner.visible {
  transform: translateY(0);
}

.anniversary-banner .close-banner {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
}

.anniversary-banner .close-banner:hover {
  opacity: 1;
}

.petal {
  position: fixed;
  pointer-events: none;
  z-index: 499;
  opacity: 0;
}

.petal svg {
  width: 100%;
  height: 100%;
}

.heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 499;
}

.heart-particle svg {
  width: 100%;
  height: 100%;
}

/* body.anniversary-day adds extra glow to hero */
body.anniversary-day .hero__photo-frame {
  box-shadow: var(--shadow-glow-gold), 0 0 60px rgba(212, 165, 116, 0.4), 0 0 100px rgba(219, 39, 119, 0.2);
  animation: float 4s ease-in-out infinite, anniversary-glow 3s ease-in-out infinite alternate;
}

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes aurora {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

@keyframes float-heart-drift {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  50% { transform: translateY(-30px) translateX(15px) rotate(15deg); opacity: 0.2; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-60px) translateX(-10px) rotate(-10deg); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-out-right {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

@keyframes fall-petal {
  0% {
    transform: translateY(-5vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  100% {
    transform: translateY(105vh) rotate(var(--petal-rotation, 360deg)) translateX(var(--petal-drift, 80px));
    opacity: 0;
  }
}

@keyframes float-up-heart {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  20% { opacity: 0.7; transform: translateY(-20vh) scale(0.8); }
  100% {
    transform: translateY(-100vh) scale(0.3);
    opacity: 0;
  }
}

@keyframes anniversary-glow {
  0% { box-shadow: var(--shadow-glow-gold), 0 0 40px rgba(212, 165, 116, 0.3); }
  100% { box-shadow: var(--shadow-glow-gold), 0 0 80px rgba(219, 39, 119, 0.4), 0 0 120px rgba(168, 85, 247, 0.2); }
}

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery__grid {
    columns: 3 240px;
  }
}

@media (max-width: 768px) {
  .nav__links { gap: var(--space-md); }

  .gallery__grid {
    columns: 2 200px;
  }

  .gallery__filters {
    gap: var(--space-xs);
  }

  .filter-tab {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
  }

  .filter-tab span {
    display: none;
  }

  .filter-tab svg {
    width: 20px;
    height: 20px;
  }

  .hero__photo-frame {
    width: 180px;
    height: 180px;
  }

  .dedications__grid {
    grid-template-columns: 1fr;
  }

  .lightbox__nav--prev { left: var(--space-sm); }
  .lightbox__nav--next { right: var(--space-sm); }

  .lightbox__content { max-width: 95vw; }

  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    columns: 2 150px;
    column-gap: var(--space-sm);
  }

  .photo-card { margin-bottom: var(--space-sm); }

  .nav__links { display: none; }

  .hero__title { font-size: 2rem; }

  .container { padding: 0 var(--space-md); }
}

/* ─── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__aurora {
    animation: none;
    background-position: 50% 50%;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__float-heart {
    display: none;
  }

  .petal, .heart-particle {
    display: none;
  }
}
