/* SharedShelf Website Styles
   Aesthetic: Modern Library — warmth meets contemporary elegance */

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

:root {
  --wood-dark: #1a1210;
  --wood-medium: #3d2a1e;
  --wood-light: #5c4033;
  --gold: #d4a84b;
  --gold-bright: #f4c964;
  --gold-soft: #c9a227;
  --cream: #faf6f0;
  --cream-warm: #f0e6d8;
  --text-light: #faf6f0;
  --text-muted: rgba(250, 246, 240, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background-color: var(--wood-dark);
  color: var(--text-light);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================
   Animated Library Background
   ========================================== */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Warm chandelier glow - animated via CSS */
    radial-gradient(ellipse 60% 40% at 50% 10%, rgba(255, 190, 100, 0.35) 0%, transparent 50%),
    /* Subtle side lighting */
    radial-gradient(ellipse 30% 50% at 10% 50%, rgba(255, 180, 80, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 30% 50% at 90% 50%, rgba(255, 180, 80, 0.1) 0%, transparent 50%),
    /* Depth vignette */
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%),
    /* Library image */
    url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
  z-index: -3;
  animation: lightFlicker 8s ease-in-out infinite;
}

@keyframes lightFlicker {
  0%, 100% { filter: brightness(1) saturate(1); }
  15% { filter: brightness(1.06) saturate(1.05); }
  30% { filter: brightness(0.94) saturate(0.97); }
  45% { filter: brightness(1.03) saturate(1.02); }
  60% { filter: brightness(0.96) saturate(0.98); }
  75% { filter: brightness(1.05) saturate(1.04); }
  90% { filter: brightness(0.98) saturate(1); }
}

/* Warm overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 42, 30, 0.4) 0%,
    rgba(26, 18, 16, 0.7) 100%
  );
  z-index: -2;
  pointer-events: none;
}

/* ==========================================
   Floating Dust Particles
   ========================================== */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(255, 210, 130, 1) 0%, rgba(255, 220, 150, 0.6) 40%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 200, 100, 0.4);
  animation: floatParticle linear infinite;
}

.particle:nth-child(1) { left: 10%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 24s; animation-delay: -5s; }
.particle:nth-child(3) { left: 40%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: -8s; }
.particle:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 26s; animation-delay: -3s; }
.particle:nth-child(5) { left: 70%; animation-duration: 21s; animation-delay: -6s; }
.particle:nth-child(6) { left: 85%; width: 3px; height: 3px; animation-duration: 23s; animation-delay: -12s; }
.particle:nth-child(7) { left: 15%; width: 5px; height: 5px; animation-duration: 28s; animation-delay: -10s; }
.particle:nth-child(8) { left: 60%; animation-duration: 22s; animation-delay: -15s; }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
    transform: translateY(90vh) translateX(10px) scale(1);
  }
  50% {
    transform: translateY(50vh) translateX(-20px) scale(0.8);
  }
  95% {
    opacity: 1;
    transform: translateY(10vh) translateX(15px) scale(0.6);
  }
  100% {
    transform: translateY(-5vh) translateX(0) scale(0);
    opacity: 0;
  }
}

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

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-light);
  text-shadow:
    0 2px 40px rgba(212, 168, 75, 0.4),
    0 4px 60px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

h3 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gold-bright);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ==========================================
   Main Content
   ========================================== */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin-bottom: 2.5rem;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 168, 75, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 168, 75, 0.15);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 100px rgba(212, 168, 75, 0.25);
    transform: translateY(-5px);
  }
}

.hero-icon:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(212, 168, 75, 0.3);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--cream-warm);
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================
   Features Section
   ========================================== */

.features {
  padding: 3rem 0;
  width: 100%;
  max-width: 1100px;
}

.feature-list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(26, 18, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 75, 0.15);
  border-radius: 4px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.15s; }
.feature:nth-child(2) { animation-delay: 0.3s; }
.feature:nth-child(3) { animation-delay: 0.45s; }

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: all 0.4s ease;
}

.feature:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 75, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.feature:hover::before {
  opacity: 1;
  width: 60px;
}

.feature h3 {
  margin-bottom: 1rem;
}

.feature p {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 0;
  line-height: 1.7;
  color: var(--cream-warm);
}

/* ==========================================
   Beta Section
   ========================================== */

.beta {
  margin-top: 2.5rem;
  padding: 3rem;
  text-align: center;
  max-width: 550px;
  background: rgba(26, 18, 16, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 75, 0.2);
  border-radius: 4px;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.6s forwards;
}

.beta h2 {
  margin-bottom: 1rem;
}

.beta > p {
  font-size: 1.05rem;
  max-width: 420px;
  margin: 0 auto 1.75rem;
  opacity: 0.8;
  color: var(--cream-warm);
}

.beta-email {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood-dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.25);
}

.beta-email:hover {
  color: var(--wood-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 75, 0.4);
}

.beta-email:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.beta-cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood-dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.25);
}

.beta-cta:hover {
  color: var(--wood-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 75, 0.4);
}

.platform-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ==========================================
   Footer
   ========================================== */

footer {
  margin-top: auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

footer .legal-links {
  margin-bottom: 1rem;
}

footer .legal-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 1.25rem;
  color: var(--cream-warm);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

footer .legal-links a:hover {
  opacity: 1;
  color: var(--gold);
}

footer p {
  font-size: 0.85rem;
  color: var(--cream-warm);
  opacity: 0.5;
  margin-bottom: 0;
}

footer p a {
  color: var(--cream-warm);
  opacity: 1;
}

footer p a:hover {
  color: var(--gold);
}

/* ==========================================
   Legal Pages
   ========================================== */

.legal-header {
  background: var(--wood-dark);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.15);
}

.legal-header a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.legal-header a:hover {
  opacity: 1;
}

.legal-content {
  background: var(--cream);
  color: var(--wood-dark);
  flex: 1;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--wood-medium);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--wood-medium);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(61, 42, 30, 0.15);
}

.legal-content p,
.legal-content li {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--wood-dark);
  opacity: 0.8;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
}

.legal-content a {
  color: var(--wood-medium);
  text-decoration: underline;
  text-decoration-color: rgba(61, 42, 30, 0.3);
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--gold-soft);
  text-decoration-color: var(--gold-soft);
}

.legal-footer {
  background: var(--wood-dark);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
}

.legal-footer p {
  font-size: 0.85rem;
  color: var(--cream-warm);
  opacity: 0.5;
  margin: 0;
}

.legal-footer a {
  color: var(--cream-warm);
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  .feature-list {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    width: 100%;
    max-width: 400px;
  }

  h1 {
    font-size: 3rem;
  }

  .beta {
    margin: 2rem 1rem;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .feature {
    padding: 2rem 1.5rem;
    min-width: unset;
  }

  .beta-email {
    padding: 0.9rem 2rem;
  }

  footer .legal-links a {
    margin: 0 0.75rem;
    font-size: 0.75rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }
}

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