/**
 * Main Stylesheet
 * New Year's Countdown Wish Board
 */

/* Import CSS Variables */
@import url('variables.css');

/* ================================
   CSS Reset / Normalize
   ================================ */

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

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: var(--line-height-normal);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* ================================
   Base Styles
   ================================ */

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: var(--font-weight-normal);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

/* Landing page title - smaller for space theme */
.landing-section h1 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  text-shadow: 0 0 30px rgba(251, 192, 45, 0.4);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

/* ================================
   Layout
   ================================ */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding-mobile);
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ================================
   Utility Classes
   ================================ */

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Spacing */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* Display */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

/* Colors */
.text-accent {
  color: var(--color-accent-primary);
}

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

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

.bg-card {
  background-color: var(--color-card-bg);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--color-text-light);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ================================
   Responsive Typography
   ================================ */

/* Mobile (default - already set above) */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --font-size-base: 18px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .container {
    padding: 0 var(--content-padding-tablet);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 28px;
  }

  .container {
    padding: 0 var(--content-padding-desktop);
  }
}

/* Wide Screens */
@media (min-width: 1440px) {
  h1 {
    font-size: 36px;
  }
}

/* ================================
   Reduced Motion Support
   ================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================
   Landing Section Styles
   ================================ */

.landing-section {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Space gradient background */
  background:
    radial-gradient(ellipse at 20% 20%, var(--color-nebula-purple) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, var(--color-nebula-blue) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, var(--color-nebula-pink) 0%, transparent 60%),
    linear-gradient(180deg,
      var(--color-bg-dark) 0%,
      var(--color-bg-space-1) 25%,
      var(--color-bg-space-2) 50%,
      var(--color-bg-space-3) 75%,
      var(--color-bg-space-1) 100%
    );
  background-attachment: fixed;
}

/* Animated nebula clouds overlay */
.landing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% 70%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(65, 105, 225, 0.1) 0%, transparent 50%);
  animation: nebulaFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes nebulaFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(2%, -1%) scale(1.02);
    opacity: 1;
  }
  50% {
    transform: translate(-1%, 2%) scale(0.98);
    opacity: 0.9;
  }
  75% {
    transform: translate(-2%, -1%) scale(1.01);
    opacity: 1;
  }
}

.landing-section .container {
  position: relative;
  z-index: 20;
}

/* ================================
   Background Stars Layer
   ================================ */

.stars-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Small stars layer */
.stars-layer-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 10% 10%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 20% 30%, var(--color-star-blue) 100%, transparent),
    radial-gradient(1px 1px at 30% 15%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 40% 45%, var(--color-star-yellow) 100%, transparent),
    radial-gradient(1px 1px at 50% 25%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 60% 60%, var(--color-star-blue) 100%, transparent),
    radial-gradient(1px 1px at 70% 35%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 80% 70%, var(--color-star-pink) 100%, transparent),
    radial-gradient(1px 1px at 90% 20%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 15% 80%, var(--color-star-blue) 100%, transparent),
    radial-gradient(1px 1px at 25% 55%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 35% 90%, var(--color-star-yellow) 100%, transparent),
    radial-gradient(1px 1px at 45% 75%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 55% 85%, var(--color-star-blue) 100%, transparent),
    radial-gradient(1px 1px at 65% 40%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 75% 95%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 85% 50%, var(--color-star-pink) 100%, transparent),
    radial-gradient(1px 1px at 95% 65%, var(--color-star-white) 100%, transparent),
    radial-gradient(1px 1px at 5% 45%, var(--color-star-blue) 100%, transparent),
    radial-gradient(1px 1px at 12% 92%, var(--color-star-white) 100%, transparent);
  animation: twinkleStars 4s ease-in-out infinite;
}

/* Medium stars layer */
.stars-layer-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 15% 25%, var(--color-star-white) 100%, transparent),
    radial-gradient(2px 2px at 35% 65%, var(--color-star-blue) 100%, transparent),
    radial-gradient(2px 2px at 55% 15%, var(--color-star-yellow) 100%, transparent),
    radial-gradient(2px 2px at 75% 85%, var(--color-star-white) 100%, transparent),
    radial-gradient(2px 2px at 85% 45%, var(--color-star-pink) 100%, transparent),
    radial-gradient(2px 2px at 25% 75%, var(--color-star-white) 100%, transparent),
    radial-gradient(2px 2px at 45% 35%, var(--color-star-blue) 100%, transparent),
    radial-gradient(2px 2px at 65% 55%, var(--color-star-white) 100%, transparent),
    radial-gradient(2px 2px at 5% 65%, var(--color-star-yellow) 100%, transparent),
    radial-gradient(2px 2px at 95% 25%, var(--color-star-white) 100%, transparent);
  animation: twinkleStars 5s ease-in-out infinite 0.5s;
}

/* Large bright stars layer */
.stars-layer-3 {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(3px 3px at 20% 40%, var(--color-star-white) 50%, rgba(255,255,255,0.3) 100%),
    radial-gradient(3px 3px at 60% 20%, var(--color-star-blue) 50%, rgba(168,216,255,0.3) 100%),
    radial-gradient(3px 3px at 80% 60%, var(--color-star-yellow) 50%, rgba(255,248,220,0.3) 100%),
    radial-gradient(4px 4px at 40% 80%, var(--color-star-white) 50%, rgba(255,255,255,0.4) 100%),
    radial-gradient(3px 3px at 10% 70%, var(--color-star-pink) 50%, rgba(255,192,203,0.3) 100%);
  animation: twinkleStars 6s ease-in-out infinite 1s;
}

@keyframes twinkleStars {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ================================
   Shooting Stars
   ================================ */

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,1) 100%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transform: rotate(-45deg);
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.5);
}

.shooting-star::after {
  content: '';
  position: absolute;
  right: 0;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 4px rgba(255,255,255,0.8), 0 0 20px 6px rgba(255,215,0,0.4);
}

.shooting-star-1 {
  top: 10%;
  left: 10%;
  animation: shootingStar 8s ease-in-out infinite 2s;
}

.shooting-star-2 {
  top: 30%;
  left: 60%;
  animation: shootingStar 12s ease-in-out infinite 6s;
}

.shooting-star-3 {
  top: 60%;
  left: 20%;
  animation: shootingStar 15s ease-in-out infinite 10s;
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  1% {
    opacity: 1;
  }
  5% {
    opacity: 1;
    transform: rotate(-45deg) translate(300px, 300px);
  }
  6%, 100% {
    opacity: 0;
    transform: rotate(-45deg) translate(350px, 350px);
  }
}

/* ================================
   Planets
   ================================ */

.planets-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

/* Base planet styles */
.planet {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}

/* Planet surface texture overlay */
.planet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Atmospheric glow */
.planet::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  border-radius: 50%;
  pointer-events: none;
}

/* Large gas giant - top right (Jupiter-like) */
.planet-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -60px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(180deg,
      #d4a574 0%,
      #c4956a 15%,
      #e8cdb5 20%,
      #b8845a 25%,
      #a67449 35%,
      #d4a574 45%,
      #c4956a 55%,
      #8b5a3c 65%,
      #a67449 75%,
      #c4956a 85%,
      #d4a574 100%
    );
  box-shadow:
    inset -30px -20px 60px rgba(0,0,0,0.5),
    inset 15px 10px 40px rgba(255,255,255,0.1);
  animation: planetRotate 120s linear infinite, planetOrbit1 40s ease-in-out infinite;
}

.planet-1::before {
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    rgba(139, 90, 60, 0.3) 2px,
    transparent 4px,
    rgba(200, 150, 100, 0.2) 8px,
    transparent 12px
  );
  animation: atmosphereDrift 60s linear infinite;
}

.planet-1::after {
  background: radial-gradient(circle at 30% 30%, rgba(255,200,150,0.2) 0%, transparent 60%);
  box-shadow: 0 0 80px 20px rgba(212, 165, 116, 0.15);
}

/* Earth-like planet - bottom left */
.planet-2 {
  width: 90px;
  height: 90px;
  bottom: 12%;
  left: 6%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 45%),
    radial-gradient(ellipse 80% 40% at 50% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, #1e6f4a 0%, transparent 30%),
    radial-gradient(circle at 30% 70%, #1e6f4a 0%, transparent 25%),
    radial-gradient(circle at 70% 40%, #2d8659 0%, transparent 20%),
    linear-gradient(135deg, #1e88e5 0%, #1565c0 40%, #0d47a1 100%);
  box-shadow:
    inset -12px -10px 30px rgba(0,0,0,0.5),
    inset 8px 6px 20px rgba(255,255,255,0.15);
  animation: planetRotate 80s linear infinite reverse, planetOrbit2 35s ease-in-out infinite;
}

.planet-2::before {
  background:
    radial-gradient(ellipse 100% 20% at 50% 20%, rgba(255,255,255,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 80% 15% at 50% 80%, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.planet-2::after {
  background: radial-gradient(circle at 30% 30%, rgba(100,180,255,0.25) 0%, transparent 60%);
  box-shadow: 0 0 50px 10px rgba(30, 136, 229, 0.2);
}

/* Mars-like planet - left side */
.planet-3 {
  width: 130px;
  height: 130px;
  top: 18%;
  left: -35px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 55% 45%, rgba(120,60,30,0.4) 0%, transparent 25%),
    radial-gradient(circle at 40% 60%, rgba(100,50,25,0.3) 0%, transparent 20%),
    radial-gradient(circle at 70% 35%, rgba(80,40,20,0.35) 0%, transparent 22%),
    linear-gradient(135deg, #e57357 0%, #c94a32 40%, #8b3020 70%, #6b2318 100%);
  box-shadow:
    inset -18px -15px 40px rgba(0,0,0,0.55),
    inset 10px 8px 25px rgba(255,200,180,0.1);
  animation: planetRotate 100s linear infinite, planetOrbit3 45s ease-in-out infinite;
}

.planet-3::before {
  background:
    radial-gradient(circle at 45% 50%, rgba(60,30,15,0.3) 0%, transparent 35%),
    radial-gradient(circle at 65% 55%, rgba(80,40,20,0.25) 0%, transparent 28%);
}

.planet-3::after {
  background: radial-gradient(circle at 30% 30%, rgba(229,115,87,0.15) 0%, transparent 55%);
  box-shadow: 0 0 60px 15px rgba(201, 74, 50, 0.12);
}

/* Moon - bottom right */
.planet-4 {
  width: 45px;
  height: 45px;
  bottom: 22%;
  right: 12%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255,255,255,0.35) 0%, transparent 50%),
    radial-gradient(circle at 55% 60%, rgba(80,80,80,0.4) 0%, transparent 20%),
    radial-gradient(circle at 40% 45%, rgba(60,60,60,0.3) 0%, transparent 15%),
    radial-gradient(circle at 70% 35%, rgba(90,90,90,0.25) 0%, transparent 18%),
    linear-gradient(135deg, #d4d4d4 0%, #a8a8a8 40%, #787878 70%, #585858 100%);
  box-shadow:
    inset -6px -5px 18px rgba(0,0,0,0.45),
    inset 4px 3px 12px rgba(255,255,255,0.2);
  animation: planetOrbit4 25s ease-in-out infinite, moonPhase 8s ease-in-out infinite;
}

.planet-4::before {
  background:
    radial-gradient(circle at 50% 55%, rgba(40,40,40,0.4) 0%, transparent 25%),
    radial-gradient(circle at 35% 40%, rgba(50,50,50,0.3) 0%, transparent 18%),
    radial-gradient(circle at 65% 45%, rgba(45,45,45,0.25) 0%, transparent 15%);
  opacity: 0.6;
}

.planet-4::after {
  background: radial-gradient(circle at 35% 35%, rgba(200,200,200,0.1) 0%, transparent 50%);
  box-shadow: 0 0 30px 5px rgba(180, 180, 180, 0.1);
}

/* Saturn with rings - top left */
.planet-5 {
  width: 110px;
  height: 110px;
  top: 6%;
  left: 12%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,0.18) 0%, transparent 45%),
    linear-gradient(180deg,
      #f0d890 0%,
      #e8c878 20%,
      #d4b060 40%,
      #c8a050 50%,
      #d4b060 60%,
      #e0c070 80%,
      #f0d890 100%
    );
  box-shadow:
    inset -15px -12px 35px rgba(0,0,0,0.45),
    inset 8px 6px 22px rgba(255,255,255,0.12);
  animation: planetRotate 90s linear infinite, planetOrbit5 50s ease-in-out infinite, saturnWobble 20s ease-in-out infinite;
}

.planet-5::before {
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    rgba(180, 140, 60, 0.15) 3px,
    transparent 6px
  );
  animation: atmosphereDrift 45s linear infinite reverse;
}

/* Saturn rings - using a wrapper element approach */
.ring-container {
  position: absolute;
  top: 6%;
  left: 12%;
  width: 110px;
  height: 110px;
  pointer-events: none;
  animation: planetOrbit5 50s ease-in-out infinite, saturnWobble 20s ease-in-out infinite;
}

.saturn-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 50px;
  transform: translate(-50%, -50%) rotateX(75deg);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      transparent 35%,
      rgba(210, 180, 120, 0.1) 38%,
      rgba(200, 170, 110, 0.25) 42%,
      rgba(180, 150, 90, 0.15) 48%,
      transparent 50%,
      rgba(190, 160, 100, 0.2) 52%,
      rgba(210, 180, 120, 0.3) 58%,
      rgba(200, 170, 110, 0.2) 65%,
      rgba(180, 150, 90, 0.1) 72%,
      transparent 78%
    );
  box-shadow:
    0 0 20px 5px rgba(210, 180, 120, 0.1);
  animation: ringShimmer 8s ease-in-out infinite;
}

/* Distant ice giant - far right */
.planet-6 {
  width: 55px;
  height: 55px;
  top: 42%;
  right: 4%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
    linear-gradient(180deg,
      #7dd3fc 0%,
      #38bdf8 30%,
      #0ea5e9 50%,
      #0284c7 70%,
      #0369a1 100%
    );
  box-shadow:
    inset -8px -6px 20px rgba(0,0,0,0.4),
    inset 5px 4px 14px rgba(255,255,255,0.15);
  opacity: 0.6;
  filter: blur(0.5px);
  animation: planetRotate 70s linear infinite reverse, planetOrbit6 55s ease-in-out infinite;
}

.planet-6::before {
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    rgba(200, 230, 255, 0.2) 2px,
    transparent 4px
  );
}

.planet-6::after {
  background: radial-gradient(circle at 30% 30%, rgba(125, 211, 252, 0.2) 0%, transparent 50%);
  box-shadow: 0 0 35px 8px rgba(56, 189, 248, 0.15);
}

/* Planet animations */
@keyframes planetRotate {
  from { background-position: 0% center; }
  to { background-position: 200% center; }
}

@keyframes atmosphereDrift {
  from { transform: translateX(0); }
  to { transform: translateX(20px); }
}

@keyframes planetOrbit1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, 12px); }
  50% { transform: translate(5px, 8px); }
  75% { transform: translate(10px, -5px); }
}

@keyframes planetOrbit2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(12px, -8px); }
  66% { transform: translate(-6px, 10px); }
}

@keyframes planetOrbit3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, 6px); }
  50% { transform: translate(5px, -10px); }
  75% { transform: translate(-8px, 4px); }
}

@keyframes planetOrbit4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, -10px); }
}

@keyframes planetOrbit5 {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(8px, -6px); }
  60% { transform: translate(-5px, 8px); }
}

@keyframes planetOrbit6 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-10px, 8px); }
  80% { transform: translate(6px, -6px); }
}

@keyframes moonPhase {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

@keyframes saturnWobble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}

@keyframes ringShimmer {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

/* ================================
   Countdown Timer Styles
   ================================ */

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.countdown__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown__number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-primary);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  line-height: 1;
  margin-bottom: var(--space-xs);
  min-width: 2ch;
  text-align: center;
  text-shadow: 0 0 20px rgba(251, 192, 45, 0.5);
}

.countdown__label {
  font-size: var(--font-size-sm);
  color: var(--color-neutral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-weight-medium);
}

/* Separator between segments */
.countdown__separator {
  font-size: var(--font-size-2xl);
  color: var(--color-highlight);
  font-weight: var(--font-weight-bold);
  align-self: center;
  margin-top: -12px;
  opacity: 0.7;
}

/* Responsive countdown sizing */
@media (max-width: 767px) {
  .countdown {
    gap: var(--space-sm);
  }

  .countdown__segment {
    min-width: 40px;
  }

  .countdown__number {
    font-size: var(--font-size-2xl);
  }

  .countdown__separator {
    font-size: var(--font-size-xl);
    margin-top: -8px;
  }
}

@media (min-width: 1024px) {
  .countdown {
    gap: var(--space-lg);
  }

  .countdown__segment {
    min-width: 60px;
  }

  .countdown__number {
    font-size: var(--font-size-4xl);
  }

  .countdown__separator {
    font-size: var(--font-size-2xl);
  }
}

/* ================================
   Form Styles
   ================================ */

.form {
  max-width: var(--form-max-width);
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

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

.form__label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.form__textarea,
.form__input {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--color-neutral);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form__input {
  height: 48px;
}

.form__textarea:focus,
.form__input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.form__textarea::placeholder,
.form__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Character Counter */
.form__counter {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-neutral);
  transition: color var(--transition-base);
}

.form__counter--warning {
  color: var(--color-warning);
}

.form__counter--error {
  color: var(--color-error);
}

/* Form Button */
.form__button {
  width: 100%;
  max-width: 300px;
  height: 56px;
  margin: var(--space-xl) auto 0;
  padding: 0 var(--space-xl);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-bg-dark);
  background-color: var(--color-accent-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: block;
}

.form__button:hover:not(:disabled) {
  background-color: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form__button:active:not(:disabled) {
  transform: translateY(0);
}

.form__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form__button--loading {
  position: relative;
  color: transparent;
}

.form__button--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid var(--color-bg-dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error Messages */
.form__error {
  display: none;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-error);
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 3px solid var(--color-error);
  border-radius: var(--radius-sm);
}

.form__error--visible {
  display: block;
}

/* Success Message */
.form__success {
  display: none;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
  color: var(--color-bg-dark);
  background-color: var(--color-highlight);
  border-radius: var(--radius-md);
  animation: slideInFromBottom var(--transition-slow) ease-out;
}

.form__success--visible {
  display: block;
}

/* Helper Text */
.form__helper {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-neutral);
}

/* Status Message (for existing email) */
.form__status {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  color: #ffa500;
  background-color: rgba(255, 165, 0, 0.1);
  border-left: 3px solid #ffa500;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
}

/* ================================
   Message Board Styles
   ================================ */

/* Message Card */
.message-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-neutral);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.message-card--new {
  animation: slideInFromBottom var(--transition-slow) ease-out;
}

.message-card__text {
  flex: 1;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: var(--space-md);
}

.message-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
}

.message-card__user {
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral);
}

.message-card__timestamp {
  color: rgba(255, 255, 255, 0.5);
}

/* Empty State - Hidden since we show text on button hover instead */
.message-board__empty {
  display: none !important;
}

.message-board__empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.message-board__empty-text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

/* Loading State */
.message-board__loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-light);
  z-index: 15;
  background-color: transparent;
  border-radius: var(--radius-lg);
}

.message-board__loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--color-neutral);
  border-top-color: var(--color-accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


/* ================================
   Share Wish Button Styles
   ================================ */

.share-button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  position: relative;
}

/* Hover text above button */
.share-hover-text {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  text-align: center;
  max-width: 400px;
}

.share-hover-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-primary);
  margin: 0 0 var(--space-xs) 0;
}

.share-hover-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-neutral);
  margin: 0;
}

/* Show text on button hover */
.share-button-container:hover .share-hover-text {
  opacity: 1;
  transform: translateY(0);
}

.share-wish-button {
  padding: 12px 32px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-bg-dark);
  background-color: var(--color-accent-primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.5px;
}

.share-wish-button:hover {
  background-color: var(--color-highlight);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.share-wish-button:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

/* ================================
   Modal Styles
   ================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-accent-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  z-index: 1001;
  animation: slideInFromBottom 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: var(--color-neutral);
  background-color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1;
}

.modal__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  transform: rotate(90deg);
}

/* ================================
   Star Board Styles
   ================================ */

.star-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.star-board .star {
  pointer-events: auto;
}

.star {
  position: absolute;
  width: 45px;
  height: 45px;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8))
          drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
  animation: wishStarTwinkle 3s ease-in-out infinite;
}

/* Wish stars glow with different colors for variety */
.star:nth-child(3n) {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8))
          drop-shadow(0 0 25px rgba(255, 165, 0, 0.4));
}

.star:nth-child(3n+1) {
  filter: drop-shadow(0 0 12px rgba(255, 230, 150, 0.8))
          drop-shadow(0 0 25px rgba(255, 200, 100, 0.4));
}

.star:nth-child(3n+2) {
  filter: drop-shadow(0 0 12px rgba(255, 200, 100, 0.8))
          drop-shadow(0 0 25px rgba(255, 180, 50, 0.4));
}

.star:hover {
  transform: scale(1.4) rotate(15deg);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1))
          drop-shadow(0 0 40px rgba(255, 215, 0, 0.7))
          drop-shadow(0 0 60px rgba(255, 180, 0, 0.4));
  z-index: 100;
}

@keyframes wishStarTwinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 0.85;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  75% {
    opacity: 0.9;
    transform: scale(0.98);
  }
}

/* Stagger animations for visual interest */
.star:nth-child(odd) {
  animation-delay: 0.5s;
}

.star:nth-child(even) {
  animation-delay: 1.5s;
}

.star:nth-child(3n) {
  animation-duration: 4s;
}

.star img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  pointer-events: none;
}

/* Star Tooltip */
.star__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: #000000;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: normal;
  max-width: 300px;
  width: max-content;
  max-width: min(300px, 80vw);
  word-wrap: break-word;
  overflow-wrap: break-word;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  border: 1px solid var(--color-accent-primary);
  box-shadow: var(--shadow-lg);
  z-index: 10001;
  line-height: 1.5;
}

.star:hover .star__tooltip {
  opacity: 1;
}

/* Arrow for tooltip - positioned dynamically */
.star__tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
}

/* When tooltip is above the star */
.star__tooltip[data-position="top"]::after {
  top: 100%;
  border-top-color: var(--color-accent-primary);
}

/* When tooltip is below the star */
.star__tooltip[data-position="bottom"]::after {
  bottom: 100%;
  border-bottom-color: var(--color-accent-primary);
}

/* Twinkle Animation */
@keyframes twinkle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================
   Print Styles
   ================================ */

@media print {
  body {
    background-color: white;
    color: black;
  }

  .no-print {
    display: none;
  }
}

/* ================================
   Toast Notification
   ================================ */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 500px;
  background: var(--color-error);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.3s ease-in-out;
  z-index: 10000;
  font-family: var(--font-family);
}

.toast--show {
  transform: translateX(0);
}

.toast__content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast__message {
  flex: 1;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

/* Responsive */
@media (max-width: 768px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}

/* ================================
   New Year Celebration
   ================================ */

.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 20000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Fireworks */
.fireworks-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: firework 2s ease-out infinite;
}

.firework:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.firework:nth-child(2) {
  top: 30%;
  left: 70%;
  animation-delay: 0.5s;
}

.firework:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-delay: 1s;
}

.firework:nth-child(4) {
  top: 50%;
  left: 80%;
  animation-delay: 1.5s;
}

.firework:nth-child(5) {
  top: 70%;
  left: 50%;
  animation-delay: 0.7s;
}

@keyframes firework {
  0% {
    opacity: 1;
    box-shadow: 
      0 0 0 0 #ff0080,
      0 0 0 0 #ffd700,
      0 0 0 0 #00ff80,
      0 0 0 0 #00d4ff,
      0 0 0 0 #ff6b00;
    transform: scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    box-shadow: 
      0 -150px 0 20px #ff0080,
      106px -106px 0 20px #ffd700,
      150px 0 0 20px #00ff80,
      106px 106px 0 20px #00d4ff,
      0 150px 0 20px #ff6b00,
      -106px 106px 0 20px #ff0080,
      -150px 0 0 20px #ffd700,
      -106px -106px 0 20px #00ff80;
    transform: scale(0);
  }
}

/* Confetti */
.confetti-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10%;
  animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* Celebration Message */
.celebration-message {
  position: relative;
  text-align: center;
  z-index: 10;
  padding: var(--space-xl);
  animation: celebration-appear 1s ease-out;
}

@keyframes celebration-appear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.celebration-title {
  font-size: 6rem;
  font-weight: bold;
  color: white;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 215, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-md);
  animation: title-pulse 2s ease-in-out infinite;
  line-height: 1.2;
}

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

.celebration-year {
  font-size: 8rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 
    0 0 30px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.6),
    0 6px 12px rgba(0, 0, 0, 0.4);
  margin: var(--space-lg) 0;
  animation: year-glow 1.5s ease-in-out infinite;
  line-height: 1;
}

@keyframes year-glow {
  0%, 100% {
    text-shadow: 
      0 0 30px rgba(255, 215, 0, 0.8),
      0 0 60px rgba(255, 215, 0, 0.6),
      0 6px 12px rgba(0, 0, 0, 0.4);
  }
  50% {
    text-shadow: 
      0 0 50px rgba(255, 215, 0, 1),
      0 0 100px rgba(255, 215, 0, 0.8),
      0 6px 12px rgba(0, 0, 0, 0.4);
  }
}

.celebration-subtitle {
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: var(--space-lg);
  animation: subtitle-fade 2s ease-in-out infinite;
}

@keyframes subtitle-fade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.celebration-close {
  position: relative;
  z-index: 10;
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: #667eea;
  background: white;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: button-bounce 2s ease-in-out infinite;
}

.celebration-close:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

@keyframes button-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .celebration-title {
    font-size: 3rem;
  }
  
  .celebration-year {
    font-size: 5rem;
  }
  
  .celebration-subtitle {
    font-size: 1.2rem;
  }
  
  .celebration-close {
    font-size: var(--font-size-base);
    padding: var(--space-sm) var(--space-lg);
  }
}

.celebration-overlay--hidden {
  display: none !important;
}

/* ============================================
   POSTCARD OVERLAY
   ============================================ */

.postcard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
  z-index: 25000;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: postcard-fade-in 0.5s ease-out;
}

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

.postcard-overlay--hidden {
  display: none !important;
}

.postcard-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  animation: postcard-slide-up 0.6s ease-out;
}

@keyframes postcard-slide-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.postcard-card {
  width: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: var(--space-2xl);
  border: 2px solid rgba(255, 215, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Decorative border pattern */
.postcard-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  pointer-events: none;
}

/* Decorative corner stars */
.postcard-card::after {
  content: '✨';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.6;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.postcard-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 3px double rgba(212, 175, 55, 0.4);
}

.postcard-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #c9302c;
  text-shadow:
    2px 2px 0 #fff,
    4px 4px 0 rgba(201, 48, 44, 0.2);
  margin: 0;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
  animation: postcard-title-glow 2s ease-in-out infinite;
}

@keyframes postcard-title-glow {
  0%, 100% {
    text-shadow:
      2px 2px 0 #fff,
      4px 4px 0 rgba(201, 48, 44, 0.2),
      0 0 10px rgba(201, 48, 44, 0.3);
  }
  50% {
    text-shadow:
      2px 2px 0 #fff,
      4px 4px 0 rgba(201, 48, 44, 0.2),
      0 0 20px rgba(201, 48, 44, 0.5),
      0 0 30px rgba(255, 215, 0, 0.3);
  }
}

.postcard-year {
  font-size: 4rem;
  font-weight: bold;
  color: #d4af37;
  margin: 0;
  margin-bottom: var(--space-xs);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(212, 175, 55, 0.5);
  letter-spacing: 4px;
}

.postcard-subtitle {
  font-size: 1.3rem;
  color: #555;
  font-style: italic;
  margin: 0;
}

.postcard-messages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  max-height: 500px;
  overflow-y: auto;
  padding: var(--space-lg);
  background: rgba(248, 249, 250, 0.5);
  border-radius: 10px;
  margin-bottom: var(--space-lg);
}

/* Custom scrollbar for messages */
.postcard-messages::-webkit-scrollbar {
  width: 10px;
}

.postcard-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.postcard-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #d4af37, #c9302c);
  border-radius: 10px;
}

.postcard-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ffd700, #c9302c);
}

.postcard__message-card {
  background: white;
  padding: var(--space-md);
  border-radius: 8px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  animation: postcard-card-appear 0.4s ease-out backwards;
}

.postcard__message-card:nth-child(1) { animation-delay: 0.05s; }
.postcard__message-card:nth-child(2) { animation-delay: 0.1s; }
.postcard__message-card:nth-child(3) { animation-delay: 0.15s; }
.postcard__message-card:nth-child(4) { animation-delay: 0.2s; }
.postcard__message-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes postcard-card-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.postcard__message-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(212, 175, 55, 0.4);
}

.postcard__message-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  font-style: italic;
}

.postcard__message-date {
  font-size: 0.75rem;
  color: #999;
  font-style: normal;
  margin-left: 0.5rem;
}

.postcard__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: #999;
  font-style: italic;
}

.postcard-footer {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 3px double rgba(212, 175, 55, 0.4);
  color: #666;
  font-size: 1rem;
  font-style: italic;
}

.postcard-footer p {
  margin: 0;
}

/* Action Buttons Container */
.postcard-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Download Button - Fun and minimalistic */
.postcard-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.postcard-download::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.postcard-download:hover::before {
  width: 300px;
  height: 300px;
}

.postcard-download:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.postcard-download:active {
  transform: translateY(0) scale(0.98);
}

.postcard-download:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.download-icon {
  font-size: 1.2rem;
  display: inline-flex;
  animation: download-bounce 2s ease-in-out infinite;
}

.download-text {
  position: relative;
  z-index: 1;
}

@keyframes download-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Close Button - Simple and minimalistic */
.postcard-close {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.postcard-close:hover {
  color: #333;
  border-color: #ccc;
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.postcard-close:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .postcard-overlay {
    padding: var(--space-md);
  }

  .postcard-card {
    padding: var(--space-lg);
  }

  .postcard-title {
    font-size: 2.5rem;
  }

  .postcard-year {
    font-size: 3rem;
  }

  .postcard-subtitle {
    font-size: 1rem;
  }

  .postcard-messages {
    grid-template-columns: 1fr;
    max-height: 400px;
    padding: var(--space-md);
  }

  .postcard-actions {
    flex-direction: column;
    width: 100%;
  }

  .postcard-download,
  .postcard-close {
    font-size: var(--font-size-base);
    padding: 10px 20px;
    width: 100%;
    max-width: 280px;
  }
}
