/*
   LPS and Pals / shared/style.css
   Shared across public pages and dashboard
*/

/* Variables */
:root {
  --pink:       #ffdbdc;
  --green:      #d9e4d3;
  --yellow:     #fff4c0;
  --lilac:      #f3daff;
  --pink-acc:   #f4a0a6;
  --green-acc:  #8fad87;
  --yellow-acc: #e0c940;
  --lilac-acc:  #c48ee0;
  --text:       #3d2e45;
  --muted:      #9b8aa5;
  --white:      #fffcff;
}

body.dark {
  --pink:       #3a2a2c;
  --green:      #2d3a2c;
  --yellow:     #3a3725;
  --lilac:      #32263a;
  --pink-acc:   #ff8f96;
  --green-acc:  #9fd49a;
  --yellow-acc: #ffe066;
  --lilac-acc:  #d4a5ff;
  --text:       #f4ecf8;
  --muted:      #b8a9c2;
  --white:      #1b1720;
}

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

/* Skip link: hidden until keyboard focus (Tab), like common search UIs */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus-visible {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 18px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  top: 16px;
  left: 16px;
  z-index: 10000;
  background: var(--text);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid var(--lilac-acc);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  outline: 3px solid var(--yellow-acc);
  outline-offset: 2px;
}

/* Base */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.no-anim * {
  transition: none !important;
  animation: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.insta-link:focus-visible {
  outline: 3px solid var(--lilac-acc);
  outline-offset: 3px;
}

/* Top colour stripe */
.stripe { display: flex; height: 8px; position: relative; z-index: 2; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--pink-acc); }
.stripe span:nth-child(2) { background: var(--yellow-acc); }
.stripe span:nth-child(3) { background: var(--green-acc); }
.stripe span:nth-child(4) { background: var(--lilac-acc); }

/* Background blobs */
.bg-patchwork {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.patch {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.patch-1 { width: 500px; height: 500px; background: var(--pink);   top: -150px; left: -150px; }
.patch-2 { width: 400px; height: 400px; background: var(--lilac);  top: 0;      right: -100px; }
.patch-3 { width: 450px; height: 450px; background: var(--yellow); bottom: -100px; left: 5%; }
.patch-4 { width: 380px; height: 380px; background: var(--green);  bottom: -80px; right: 0; }

/* Theme toggle button */
.theme-toggle {
  background: var(--white);
  border: 2px solid var(--lilac-acc);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--lilac-acc);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, background-color 0.25s, color 0.25s;
}
.theme-toggle:hover { transform: translateY(-2px); }

/* Shared card style */
.card {
  background: var(--white);
  border-radius: 20px;
  border: 2.5px solid rgba(61,46,69,.08);
  box-shadow: 0 4px 24px rgba(61,46,69,.06);
  transition: background-color 0.25s;
}

/* Logo text */
.logo-text {
  font-family: 'Fredoka One', cursive;
  color: var(--text);
  line-height: 1;
}
.logo-text .amp  { color: var(--pink-acc); }
.logo-text .pals { color: var(--lilac-acc); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  border: 2.5px solid var(--yellow-acc);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a5800;
  animation: badge-wobble 2.5s ease-in-out infinite;
}
@keyframes badge-wobble {
  0%, 100% { transform: rotate(-1.5deg); }
  50%       { transform: rotate(1.5deg); }
}

/* Animations */
@keyframes float-pet {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50%       { opacity: 0.65; transform: scale(1.15) rotate(20deg); }
}
@keyframes swatch-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .char-circle:hover {
    transform: none !important;
  }
  .badge {
    animation: none !important;
  }
}

/* Footer */
footer {
  padding: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
