/* Milly Zouley — self-hosted clone
   Design tokens ported from the original Lovable build's Tailwind config. */

:root {
  --radius: 1rem;
  --ink: #09040a;
  --ink-soft: #170d1a;
  --berry: #e2699d;
  --berry-deep: #a4406d;
  --shimmer: #a4d6ff;
  --shimmer-2: #bdbbff;

  --background: var(--ink);
  --foreground: #f1e7f4;
  --card: var(--ink-soft);
  --muted: #1c111e;
  --muted-foreground: #aa97ae;
  --border: #2a1b2e;
  --primary: var(--shimmer);
  --primary-foreground: var(--ink);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-sans: "Inter", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
}

a { color: inherit; }

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Twinkling star field */
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  display: block;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--shimmer), var(--shimmer-2));
  filter: blur(0.5px);
  box-shadow: 0 0 6px -1px var(--shimmer);
  opacity: 0.6;
  animation: twinkle 3s ease-in-out infinite;
}

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

/* Hero */
.hero {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  max-width: 48rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(3.5rem, 14vw, 8rem);
  margin: 0;
}

.title-link {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(120deg, var(--shimmer), var(--shimmer-2));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(164, 214, 255, 0.4)) drop-shadow(0 0 24px rgba(189, 187, 255, 0.28));
  transition: filter 0.2s;
}

.title-link:hover {
  filter: drop-shadow(0 0 10px rgba(164, 214, 255, 0.55)) drop-shadow(0 0 30px rgba(189, 187, 255, 0.38));
}

.social-links {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(23, 13, 26, 0.6);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.pill-link svg { color: var(--primary); width: 1rem; height: 1rem; }

.pill-link:hover {
  border-color: rgba(164, 214, 255, 0.6);
  color: var(--primary);
  box-shadow: 0 0 20px -5px var(--shimmer);
}

.contact-area {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--shimmer), var(--shimmer-2));
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--primary-foreground);
  box-shadow: 0 0 30px -5px rgba(164, 214, 255, 0.6);
  transition: transform 0.2s;
}

.btn-primary:hover { transform: scale(1.02); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-primary.full { width: 100%; }
.btn-primary svg { width: 1rem; height: 1rem; }

.contact-form {
  margin-top: 2rem;
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.contact-form.hidden { display: none; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(23, 13, 26, 0.6);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  outline: none;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(170, 151, 174, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(164, 214, 255, 0.7);
}

.contact-form textarea { resize: none; }

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.form-status.error { color: #f88; }
.form-status.success { color: var(--primary); }

.site-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(170, 151, 174, 0.6);
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--primary); }

/* Legal pages (Impressum / Datenschutz) */
.legal-main {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 42rem;
  padding: 4rem 1.5rem;
}

.back-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--primary); }

.legal-title {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3rem);
  background: linear-gradient(120deg, var(--shimmer), var(--shimmer-2));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(164, 214, 255, 0.4)) drop-shadow(0 0 24px rgba(189, 187, 255, 0.28));
}

.legal-prose {
  margin-top: 2.5rem;
  color: rgba(241, 231, 244, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-prose h2 {
  font-family: var(--font-display);
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin-bottom: 0.75rem; }
.legal-prose a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.legal-copyright {
  margin-top: 4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(170, 151, 174, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
}
