/* ===================================================
   WAIFU KNIFU — shared styles (nav, footer, palette, base)
   Kawaii / dreamy / PS2-bootscreen inspired: soft pastel
   gradients, glossy "bubble" UI, floating orbs, bubbly type.
   Page-specific styles live in each page's own <style> block.
   =================================================== */

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

:root {
  --pink-light: #FFE3F1;
  --pink: #FF9AD1;
  --pink-hot: #FF5CAE;
  --lavender: #E4D6FF;
  --sky: #CDEBFF;
  --cream: #FFF9FC;
  --dark: #4A2E44;
  --mid: #8C6B87;
  --white-glow: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--dark);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 35%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(160deg, var(--sky) 0%, var(--lavender) 45%, var(--pink-light) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Floating dreamy orbs — a nod to the PS2 boot-screen bubbles */
.bubble-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 70%);
  opacity: 0.7;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-115vh) translateX(30px); opacity: 0; }
}

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem auto 0;
  padding: 0.7rem 1.6rem;
  max-width: 900px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,235,248,0.75) 100%);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 24px rgba(255, 140, 200, 0.25);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--pink-hot), #B78CFF 60%, #7FCFFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-sparkle { font-size: 1.1rem; filter: drop-shadow(0 1px 2px rgba(255,92,174,0.4)); }

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--mid);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-hot);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(255,140,200,0.3);
}

@media (max-width: 640px) {
  .navbar { flex-direction: column; padding: 0.9rem 1.2rem; border-radius: 28px; }
  .nav-links { gap: 0.3rem; }
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pink-hot);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mid);
}

/* Reusable glossy "bubble" button, used across pages */
.bubble-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #FF9DD6 0%, var(--pink-hot) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 0 rgba(255,255,255,0.4) inset,
    0 6px 16px rgba(255, 92, 174, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bubble-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 0 rgba(255,255,255,0.4) inset,
    0 10px 22px rgba(255, 92, 174, 0.55);
}

.bubble-btn-alt {
  background: linear-gradient(180deg, #9DB8FF 0%, #5C7CFF 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 0 rgba(255,255,255,0.4) inset,
    0 6px 16px rgba(92, 124, 255, 0.45);
}

.bubble-btn-alt:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 0 rgba(255,255,255,0.4) inset,
    0 10px 22px rgba(92, 124, 255, 0.55);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.card-actions .bubble-btn {
  width: 100%;
  justify-content: center;
}

/* ===================================================
   INDIVIDUAL PRODUCT PAGES
   Used by product-template.php and any page copied from it.
   Alternating image-left/text-right, text-left/image-right
   blocks — add .reverse to a .feature-block to flip it.
   =================================================== */

.product-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 1.5rem 1rem;
}

.product-hero-label {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-hot);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.product-hero-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(90deg, var(--pink-hot), #B78CFF 55%, #5FC4FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.product-hero-sub {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.7;
}

.products-wrap {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 34px rgba(200, 140, 220, 0.28);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 42px rgba(200, 140, 220, 0.36);
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.image-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 20px;
  background: #fff;
  border: 2px dashed var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.6rem;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-placeholder span {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
}

.feature-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-hot);
  margin-bottom: 0.6rem;
}

.feature-text h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 0.9rem;
}

.feature-text p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--mid);
}

@media (max-width: 720px) {
  .feature-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem; }
  .feature-block.reverse { direction: ltr; }
}
