/* ==========================================================================
   somegirlsname.com - Spooky Cute Link-in-Bio Website
   Last updated: October 14, 2025
   
   Table of Contents:
   1. CSS Custom Properties
   2. Base Styles & Reset
   3. Background Effects (Starfield & Animations)  
   4. Layout Components
   5. Typography
   6. Interactive Elements (Links & Buttons)
   7. Page-Specific Styles
   8. Animation Keyframes
   9. Responsive Design
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
  /* Colors - Spooky Cute Palette */
  --midnight: #151026;
  --twilight: #1F1735;
  --nebula: #3F2E63;
  --violet: #6F58A5;
  --lavender: #C9B9E6;
  --starlight: #EEE8F7;
  --pumpkin: #D96E33;
  --ember: #F6A04D;
  --fog: #A99BBC;
  --ink: #0B0B0F;

  /* Layout */
  --radius: 14px;

  /* Shadows & Effects */
  --shadow-soft: 0 8px 25px rgba(0, 0, 0, .4);
  --shadow-glow: 0 0 0 2px rgba(217, 110, 51, .3);
  --shadow-hover: 0 12px 35px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   2. Base Styles & Reset
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--twilight);
  color: var(--starlight);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   3. Background Effects (Starfield & Animations)
   ========================================================================== */
/* Full starfield background effect - dense random distribution */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Large bright stars */
    radial-gradient(2px 2px at 8% 12%, rgba(238, 232, 247, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 23% 34%, rgba(201, 185, 230, 0.8), transparent),
    radial-gradient(2px 2px at 67% 28%, rgba(238, 232, 247, 0.85), transparent),
    radial-gradient(2.2px 2.2px at 89% 45%, rgba(201, 185, 230, 0.9), transparent),
    radial-gradient(2px 2px at 15% 67%, rgba(238, 232, 247, 0.8), transparent),
    radial-gradient(2.3px 2.3px at 58% 76%, rgba(201, 185, 230, 0.85), transparent),
    radial-gradient(2px 2px at 91% 15%, rgba(238, 232, 247, 0.9), transparent),
    radial-gradient(2.1px 2.1px at 41% 7%, rgba(201, 185, 230, 0.8), transparent),

    /* Medium stars */
    radial-gradient(1.5px 1.5px at 5% 56%, rgba(238, 232, 247, 0.7), transparent),
    radial-gradient(1.3px 1.3px at 19% 83%, rgba(201, 185, 230, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 37% 19%, rgba(238, 232, 247, 0.75), transparent),
    radial-gradient(1.6px 1.6px at 52% 41%, rgba(201, 185, 230, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 71% 63%, rgba(238, 232, 247, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 84% 8%, rgba(201, 185, 230, 0.7), transparent),
    radial-gradient(1.3px 1.3px at 96% 74%, rgba(238, 232, 247, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 12% 29%, rgba(201, 185, 230, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 76% 91%, rgba(238, 232, 247, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 34% 89%, rgba(201, 185, 230, 0.65), transparent),

    /* Small scattered stars */
    radial-gradient(0.8px 0.8px at 3% 22%, rgba(238, 232, 247, 0.6), transparent),
    radial-gradient(0.6px 0.6px at 14% 48%, rgba(201, 185, 230, 0.5), transparent),
    radial-gradient(0.7px 0.7px at 28% 65%, rgba(238, 232, 247, 0.55), transparent),
    radial-gradient(0.9px 0.9px at 43% 11%, rgba(201, 185, 230, 0.65), transparent),
    radial-gradient(0.5px 0.5px at 59% 87%, rgba(238, 232, 247, 0.4), transparent),
    radial-gradient(0.8px 0.8px at 72% 33%, rgba(201, 185, 230, 0.6), transparent),
    radial-gradient(0.6px 0.6px at 88% 58%, rgba(238, 232, 247, 0.5), transparent),
    radial-gradient(0.7px 0.7px at 97% 25%, rgba(201, 185, 230, 0.55), transparent),
    radial-gradient(0.9px 0.9px at 11% 79%, rgba(238, 232, 247, 0.65), transparent),
    radial-gradient(0.5px 0.5px at 26% 4%, rgba(201, 185, 230, 0.45), transparent),
    radial-gradient(0.8px 0.8px at 38% 52%, rgba(238, 232, 247, 0.6), transparent),
    radial-gradient(0.6px 0.6px at 54% 18%, rgba(201, 185, 230, 0.5), transparent),
    radial-gradient(0.7px 0.7px at 69% 73%, rgba(238, 232, 247, 0.55), transparent),
    radial-gradient(0.9px 0.9px at 81% 95%, rgba(201, 185, 230, 0.65), transparent),
    radial-gradient(0.5px 0.5px at 93% 42%, rgba(238, 232, 247, 0.45), transparent);

  background-size: 100vw 100vh;
  animation: gentle-sparkle 12s ease-in-out infinite;
  pointer-events: none;
  z-index: -2;
}

/* Second layer with different timing */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Second layer stars - different positions and sizes */
    radial-gradient(1.8px 1.8px at 13% 21%, rgba(238, 232, 247, 0.8), transparent),
    radial-gradient(1.1px 1.1px at 29% 47%, rgba(201, 185, 230, 0.7), transparent),
    radial-gradient(2px 2px at 46% 14%, rgba(238, 232, 247, 0.9), transparent),
    radial-gradient(1.3px 1.3px at 62% 71%, rgba(201, 185, 230, 0.6), transparent),
    radial-gradient(0.9px 0.9px at 78% 38%, rgba(238, 232, 247, 0.85), transparent),
    radial-gradient(1.7px 1.7px at 87% 85%, rgba(201, 185, 230, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 6% 79%, rgba(238, 232, 247, 0.7), transparent),
    radial-gradient(0.8px 0.8px at 31% 52%, rgba(201, 185, 230, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 49% 92%, rgba(238, 232, 247, 0.6), transparent),
    radial-gradient(1px 1px at 73% 17%, rgba(201, 185, 230, 0.95), transparent),
    radial-gradient(0.7px 0.7px at 94% 61%, rgba(238, 232, 247, 0.8), transparent),

    /* Additional smaller stars for density */
    radial-gradient(0.5px 0.5px at 9% 35%, rgba(238, 232, 247, 0.6), transparent),
    radial-gradient(0.6px 0.6px at 22% 68%, rgba(201, 185, 230, 0.5), transparent),
    radial-gradient(0.4px 0.4px at 35% 2%, rgba(238, 232, 247, 0.7), transparent),
    radial-gradient(0.7px 0.7px at 48% 59%, rgba(201, 185, 230, 0.55), transparent),
    radial-gradient(0.5px 0.5px at 61% 26%, rgba(238, 232, 247, 0.65), transparent),
    radial-gradient(0.8px 0.8px at 74% 93%, rgba(201, 185, 230, 0.6), transparent),
    radial-gradient(0.6px 0.6px at 86% 7%, rgba(238, 232, 247, 0.5), transparent),
    radial-gradient(0.4px 0.4px at 99% 44%, rgba(201, 185, 230, 0.7), transparent),
    radial-gradient(0.7px 0.7px at 17% 81%, rgba(238, 232, 247, 0.55), transparent),
    radial-gradient(0.5px 0.5px at 39% 16%, rgba(201, 185, 230, 0.65), transparent);

  background-size: 100vw 100vh;
  animation: gentle-sparkle-offset 15s ease-in-out infinite;
  animation-delay: -5s;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   4. Layout Components
   ========================================================================== */
/* Mobile-first header design */
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28vh;
  padding: 1.5rem 1rem;
  overflow: hidden;
  text-align: center;
}

/* Enhanced stars background effect */
.stars-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(238, 232, 247, 0.8), transparent 50%),
    radial-gradient(1px 1px at 80% 20%, rgba(238, 232, 247, 0.6), transparent 50%),
    radial-gradient(1px 1px at 40% 70%, rgba(238, 232, 247, 0.7), transparent 50%),
    radial-gradient(2px 2px at 90% 80%, rgba(238, 232, 247, 0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 75%, rgba(201, 185, 230, 0.6), transparent 50%),
    radial-gradient(1px 1px at 65% 45%, rgba(201, 185, 230, 0.4), transparent 50%);
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Floating bats animation */
.floating-bats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bat {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.bat-img {
  width: 100%;
  height: auto;
  opacity: inherit;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Even but random distribution across the header */
.bat-1 {
  top: 18%;
  left: 12%;
  width: 34px;
  height: 34px;
  opacity: 1;
  animation-delay: 0s;
  transform: rotate(-12deg) scaleX(-1);
  /* Flipped horizontally */
}

.bat-2 {
  top: 55%;
  left: 78%;
  width: 46px;
  height: 46px;
  opacity: 1;
  animation-delay: 2s;
  transform: rotate(8deg);
}

.bat-3 {
  top: 35%;
  left: 45%;
  width: 38px;
  height: 38px;
  opacity: 1;
  animation-delay: 4s;
  transform: rotate(-5deg) scaleX(-1);
  /* Flipped horizontally */
}

.bat-4 {
  top: 72%;
  left: 15%;
  width: 42px;
  height: 42px;
  opacity: 1;
  animation-delay: 1.5s;
  transform: rotate(18deg);
}

.bat-5 {
  top: 25%;
  left: 82%;
  width: 36px;
  height: 36px;
  opacity: 1;
  animation-delay: 3.5s;
  transform: rotate(-15deg) scaleX(-1);
  /* Flipped horizontally */
}

/* Floating ghosts animation */
.floating-ghosts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.ghost {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: float-up 12s linear infinite;
}

.ghost-1 {
  left: 20%;
  animation-delay: -0s;
  font-size: 1.8rem;
}

.ghost-2 {
  left: 60%;
  animation-delay: -4s;
  font-size: 2.2rem;
}

.ghost-3 {
  left: 85%;
  animation-delay: -8s;
  font-size: 2rem;
}

.titlewrap {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   5. Typography
   ========================================================================== */
h1 {
  font-family: "Noot", "Creepster", "DM Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: var(--frost);
  text-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  color: var(--lavender);
  font-weight: 500;
  font-size: clamp(1rem, 4vw, 1.2rem);
  opacity: 0.9;
}

/* Mobile-first container */
.container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 1rem 40%;
  flex-grow: 1;
  display: flex;
  align-items: stretch;
}

.links {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  flex-grow: 1;
  min-height: 300px;
}

/* Tablet and up */
@media (min-width: 768px) {
  .container {
    max-width: 500px;
    padding: 0 2rem 8rem;
  }

  .links {
    gap: 1.25rem;
  }

  .site-header {
    min-height: 32vh;
    padding: 2rem 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 600px;
  }

  .links {
    gap: 1.5rem;
  }
}

/* ==========================================================================
   6. Interactive Elements (Links & Buttons)
   ========================================================================== */
/* Spooky cute glass-morphism buttons */
.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 1.8rem;
  background:
    linear-gradient(135deg, rgba(238, 232, 247, 0.1), rgba(201, 185, 230, 0.05)),
    rgba(255, 255, 255, 0.03);
  color: var(--starlight);
  text-decoration: none;
  border: 1px solid rgba(201, 185, 230, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(238, 232, 247, 0.2);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  overflow: hidden;
}

/* Ripple effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(238, 232, 247, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.link-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(238, 232, 247, 0.4));
  text-align: center;
  line-height: 1.1;
}

.fa-twitch {
  font-size: 1.3rem;
  line-height: 1.3rem;
}

.link:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(135deg, rgba(238, 232, 247, 0.15), rgba(201, 185, 230, 0.08)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 185, 230, 0.5);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(111, 88, 165, 0.3),
    inset 0 1px 0 rgba(238, 232, 247, 0.3);
}

.link:hover::before {
  left: 100%;
}

.link:focus-visible {
  outline: none;
  border-color: var(--lavender);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(201, 185, 230, 0.4),
    inset 0 1px 0 rgba(238, 232, 247, 0.2);
}

.link:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.05s ease;
}

/* Primary button styling for Twitch */
.link.primary {
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.8), rgba(191, 148, 255, 0.6)),
    rgba(145, 70, 255, 0.1);
  border-color: rgba(191, 148, 255, 0.7);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(145, 70, 255, 0.4),
    inset 0 1px 0 rgba(191, 148, 255, 0.3);
}

.link.primary:hover {
  background:
    linear-gradient(135deg, rgba(145, 70, 255, 0.9), rgba(191, 148, 255, 0.7)),
    rgba(145, 70, 255, 0.15);
  border-color: rgba(191, 148, 255, 0.9);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(145, 70, 255, 0.6),
    0 0 60px rgba(191, 148, 255, 0.3),
    inset 0 1px 0 rgba(191, 148, 255, 0.4);
}

.link.primary .link-icon {
  filter: drop-shadow(0 0 12px rgba(145, 70, 255, 0.6));
}

.footer {
  text-align: center;
  padding: 1rem;
  color: var(--fog);
  margin-top: auto;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==========================================================================
   7. Page-Specific Styles
   ========================================================================== */
/* Commands Page */
.commands-page {
  padding: 1rem;
}

.commands-section {
  max-width: 800px;
  margin: 0 auto;
  flex-grow: 1;
}

.commands-title {
  font-family: "Noot", "Creepster", "DM Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--starlight);
  text-align: center;
  margin: 1rem 0 2rem 0;
  text-shadow: 0 0 20px rgba(238, 232, 247, 0.3);
}

.commands-heading {
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--lavender);
  text-align: center;
  margin: 1rem 0 0.8rem 0;
}

.commands-heading:first-of-type {
  margin-top: 0;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.command-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}

.command-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.command-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--starlight);
  margin: 0;
  font-family: 'Courier New', monospace;
}

.command-card p {
  margin: 0;
  color: var(--fog);
  font-size: 0.85rem;
  line-height: 1.3;
}

.requirement {
  display: inline-block;
  background: rgba(111, 88, 165, 0.25);
  color: var(--lavender);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  border: 1px solid rgba(111, 88, 165, 0.4);
}

.back-link {
  margin-bottom: 1rem;
  text-align: center;
}

.back-link .link {
  display: inline-flex;
  margin: 0;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
}

/* Animations */

/* ==========================================================================
   8. Animation Keyframes
   ========================================================================== */
@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(5deg);
  }

  50% {
    transform: translateY(-20px) rotate(-5deg);
  }

  75% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0px);
    opacity: 0;
  }

  15% {
    opacity: 0.12;
  }

  30% {
    transform: translateY(70vh) translateX(10px);
    opacity: 0.08;
  }

  50% {
    transform: translateY(50vh) translateX(20px);
    opacity: 0.15;
  }

  70% {
    transform: translateY(30vh) translateX(5px);
    opacity: 0.1;
  }

  85% {
    opacity: 0.05;
  }

  100% {
    transform: translateY(-10vh) translateX(-10px);
    opacity: 0;
  }
}

@keyframes gentle-sparkle {
  0% {
    opacity: 0.1;
  }

  20% {
    opacity: 0.9;
  }

  40% {
    opacity: 0.3;
  }

  60% {
    opacity: 1;
  }

  80% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.1;
  }
}

@keyframes gentle-sparkle-offset {
  0% {
    opacity: 0.8;
  }

  25% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.95;
  }

  75% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.8;
  }
}

/* ==========================================================================
   9. Responsive Design
   ========================================================================== */
/* Mobile optimizations */
@media (max-width: 480px) {
  .site-header {
    min-height: 25vh;
    padding: 1.2rem 1rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .tagline {
    font-size: clamp(0.9rem, 5vw, 1rem);
  }

  .link {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }

  .link-icon {
    font-size: 1.1rem;
  }

  /* Maintain varied bat sizes on mobile */
  .bat-1 {
    width: 28px;
    height: 28px;
  }

  .bat-2 {
    width: 38px;
    height: 38px;
  }

  .bat-3 {
    width: 32px;
    height: 32px;
  }

  .bat-4 {
    width: 36px;
    height: 36px;
  }

  .bat-5 {
    width: 30px;
    height: 30px;
  }
}