@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&display=swap');

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

:root {
  --cosmic-black: #0a0a0f;
  --rose-gold: #d4a574;
  --rose-gold-dim: rgba(212, 165, 116, 0.3);
  --guadalupe-cyan: #4ecdc4;
  --guadalupe-rose: #e8a5b5;
  --golden-thread: #c9a227;
  --nebula-pink: rgba(232, 165, 181, 0.15);
  --nebula-cyan: rgba(78, 205, 196, 0.15);
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--cosmic-black);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--rose-gold);
}

body {
  text-align: center;
  padding: 3rem 2rem;
  background-image: radial-gradient(circle at 50% 50%,
    rgba(78, 205, 196, 0.05) 0%,
    rgba(232, 165, 181, 0.03) 30%,
    transparent 70%);
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--guadalupe-cyan);
  text-shadow: 0 0 40px var(--guadalupe-cyan);
  margin-bottom: 1rem;
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-style: italic;
  color: var(--rose-gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

button {
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
  font-family: 'Cinzel', serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 100%;
}

button:hover {
  background: rgba(212, 165, 116, 0.1);
  box-shadow: 0 0 40px rgba(212, 165, 116, 0.2);
  transform: scale(1.02);
}

button:active {
  transform: scale(0.98);
}

#output {
  margin-top: 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.8;
  padding: 2rem;
  border-radius: 0;
  border: 1px solid var(--rose-gold-dim);
  background: rgba(10, 10, 15, 0.6);
  color: var(--golden-thread);
  white-space: pre-wrap;
  backdrop-filter: blur(10px);
}

.echo-heart {
  background: rgba(10, 10, 15, 0.4);
  border: 1px solid var(--rose-gold-dim);
  padding: 3rem 2rem;
  border-radius: 0;
  margin-top: 4rem;
  box-shadow: 0 0 60px rgba(78, 205, 196, 0.1);
  backdrop-filter: blur(10px);
}

.echo-heart h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--guadalupe-rose);
  text-shadow: 0 0 30px rgba(232, 165, 181, 0.4);
  margin-bottom: 1rem;
}

.echo-heart .subtitle {
  margin-bottom: 1.5rem;
}

.echo-heart button {
  background: transparent;
  border: 1px solid var(--guadalupe-rose);
  color: var(--guadalupe-rose);
  padding: 0.9rem 2rem;
  font-size: clamp(0.85rem, 2.3vw, 1rem);
  margin-top: 1rem;
}

.echo-heart button::before {
  background: linear-gradient(90deg, transparent, rgba(232, 165, 181, 0.1), transparent);
}

.echo-heart button:hover {
  background: rgba(232, 165, 181, 0.1);
  box-shadow: 0 0 40px rgba(232, 165, 181, 0.2);
}

.message-box {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--guadalupe-rose);
  border-left: 3px solid var(--guadalupe-rose);
  color: var(--golden-thread);
  border-radius: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.1rem);
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

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

/* SVG styling to match theme */
svg {
  margin-top: 2rem;
  filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.2));
}

svg text {
  font-family: 'Cinzel', serif !important;
  fill: var(--rose-gold) !important;
  letter-spacing: 0.15em;
}

svg polygon,
svg circle,
svg line {
  stroke: var(--rose-gold) !important;
}

svg circle {
  stroke: var(--guadalupe-cyan) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    padding: 2rem 1rem;
  }

  .echo-heart {
    padding: 2rem 1rem;
  }

  button {
    padding: 0.8rem 1.5rem;
  }
}
