/* =====================================================
   WILLA'S PAGE — style.css
   Palette: Pink #FF6B9D, Red #E53935, White #fff
   ===================================================== */

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

:root {
  --pink:   #FF6B9D;
  --pink2:  #FF4081;
  --red:    #E53935;
  --dark:   #1a1a1a;
  --white:  #ffffff;
  --light:  #FFF5F8;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, .hero-sub, .badge {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
}

/* =====================================================
   PASSWORD GATE
   ===================================================== */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--pink) 0%, var(--pink2) 55%, var(--red) 100%);
  padding: 1.5rem;
}

.pw-gate.unlocking { opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }

.pw-box {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  max-width: 360px;
  width: 100%;
}

.pw-emoji  { font-size: 3.5rem; margin-bottom: 0.5rem; animation: bounce 1.8s ease-in-out infinite; }
.pw-title  { font-size: 2rem; color: var(--dark); margin-bottom: 0.3rem; }
.pw-sub    { font-size: 0.95rem; color: #888; font-weight: 600; margin-bottom: 1.8rem; }
.pw-form   { display: flex; flex-direction: column; gap: 0.85rem; }

.pw-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 2px;
  transition: border-color 0.2s;
  outline: none;
}
.pw-input:focus { border-color: var(--pink); }
.pw-input.wrong { border-color: var(--red); }

.pw-btn {
  padding: 0.8rem;
  background: var(--pink2);
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(255,64,129,0.35);
}
.pw-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,64,129,0.4); }

.pw-error { display: none; margin-top: 0.5rem; color: var(--red); font-size: 0.9rem; font-weight: 700; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--pink) 0%, var(--pink2) 55%, var(--red) 100%);
  overflow: hidden;
  padding: 2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-emoji {
  font-size: clamp(4rem, 10vw, 7rem);
  display: block;
  margin-bottom: 0.5rem;
  animation: bounce 1.8s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--white);
  line-height: 1.1;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.12);
}

.hero-sub {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.hero-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.2rem;
  background: var(--white);
  color: var(--pink2);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }

/* ---- Floating art items ---- */
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.art-item {
  position: absolute;
  user-select: none;
  animation: float-art 4s ease-in-out infinite;
  opacity: 0.75;
}

@keyframes float-art {
  0%, 100% { transform: translateY(0)    rotate(0deg)  scale(1);    }
  50%       { transform: translateY(-18px) rotate(10deg) scale(1.08); }
}

.a1  { top:  8%; left:  4%;   font-size: 2.2rem; animation-duration: 3.5s; animation-delay: 0.0s; }
.a2  { top: 14%; left: 18%;   font-size: 1.6rem; animation-duration: 4.2s; animation-delay: 0.4s; }
.a3  { top:  5%; left: 36%;   font-size: 2.0rem; animation-duration: 3.8s; animation-delay: 0.8s; }
.a4  { top: 18%; right: 28%;  font-size: 2.4rem; animation-duration: 4.5s; animation-delay: 0.2s; }
.a5  { top:  9%; right: 10%;  font-size: 1.8rem; animation-duration: 3.2s; animation-delay: 1.0s; }
.a6  { top:  4%; right: 46%;  font-size: 1.5rem; animation-duration: 4.0s; animation-delay: 0.6s; }
.a7  { bottom: 28%; left:  7%;  font-size: 2.2rem; animation-duration: 4.3s; animation-delay: 0.3s; }
.a8  { bottom: 32%; left: 24%;  font-size: 1.7rem; animation-duration: 3.6s; animation-delay: 0.9s; }
.a9  { bottom: 22%; left: 44%;  font-size: 2.0rem; animation-duration: 4.1s; animation-delay: 0.1s; }
.a10 { bottom: 30%; right: 22%; font-size: 2.5rem; animation-duration: 3.9s; animation-delay: 0.7s; }
.a11 { bottom: 20%; right:  6%; font-size: 1.9rem; animation-duration: 4.4s; animation-delay: 0.4s; }
.a12 { top: 42%; left:  2%;     font-size: 2.1rem; animation-duration: 3.7s; animation-delay: 0.6s; }
.a13 { top: 36%; right:  3%;    font-size: 1.6rem; animation-duration: 4.2s; animation-delay: 0.2s; }
.a14 { top: 50%; left: 52%;     font-size: 2.3rem; animation-duration: 3.4s; animation-delay: 0.5s; }
.a15 { top: 28%; left: 62%;     font-size: 1.8rem; animation-duration: 4.0s; animation-delay: 1.1s; }
.a16 { bottom: 12%; left: 32%;  font-size: 2.0rem; animation-duration: 3.5s; animation-delay: 0.3s; }
.a17 { top: 22%; left: 48%;     font-size: 1.5rem; animation-duration: 4.6s; animation-delay: 0.7s; }
.a18 { bottom: 15%; right: 40%; font-size: 2.2rem; animation-duration: 3.8s; animation-delay: 0.0s; }

/* =====================================================
   SECTIONS — shared
   ===================================================== */
.section     { padding: 5rem 1.5rem; }
.section-alt { background: var(--light); }

.container { max-width: 960px; margin: 0 auto; }

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: var(--pink);
  border-radius: 3px;
  margin-top: 0.4rem;
}

.section-lead { font-size: 1.1rem; color: #666; margin-bottom: 2rem; font-weight: 600; }

/* =====================================================
   ABOUT
   ===================================================== */
.about-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--pink);
}

.about-photo {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid var(--pink);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  display: block;
}

.about-bio { flex: 1 1 260px; }
.about-bio p { font-size: 1.05rem; line-height: 1.7; }

.badge {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--pink);
  color: var(--white);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
}

.school-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 1rem;
  background: #1B3A6B;
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.school-link:hover { background: #0d2448; }

.fave-list {
  flex: 1 1 200px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fave-list li   { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; font-weight: 600; }
.fave-list .icon { font-size: 1.4rem; width: 2rem; text-align: center; }

/* =====================================================
   SWIMMING
   ===================================================== */
.swim-banner {
  position: relative;
  background: linear-gradient(180deg, #0277BD 0%, #0288D1 60%, #29B6F6 100%);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 2.2rem 2rem;
  margin-bottom: 2rem;
  min-height: 130px;
}

.wave-wrap { position: absolute; bottom: 0; left: 0; right: 0; height: 50px; }

.wave {
  position: absolute;
  bottom: -10px;
  left: -50%;
  width: 200%;
  height: 60px;
  background: rgba(255,255,255,0.12);
  border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%;
  animation: wave-roll 4s ease-in-out infinite;
}
.w2 { animation-delay: 1.3s; background: rgba(255,255,255,0.08); animation-duration: 5s; }
.w3 { animation-delay: 2.6s; background: rgba(255,255,255,0.06); animation-duration: 6s; }

@keyframes wave-roll {
  0%, 100% { transform: translateX(0)   scaleY(1); }
  50%       { transform: translateX(5%) scaleY(1.15); }
}

.swim-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.swim-shark {
  font-size: 4rem;
  animation: swim-wiggle 2s ease-in-out infinite;
}

@keyframes swim-wiggle {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50%       { transform: translateX(10px) rotate(3deg); }
}

.swim-text h3   { font-size: 1.5rem; color: white; margin-bottom: 0.3rem; }
.swim-text p    { color: rgba(255,255,255,0.88); font-weight: 600; font-size: 1rem; }

/* =====================================================
   STATS (shared by swimming + basketball)
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--pink);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.stat-card:hover { transform: scale(1.04); }

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
}

.mascot-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark);
  color: var(--pink);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
}
.mascot-emoji { font-size: 2rem; }

/* =====================================================
   PAINT APP
   ===================================================== */
.paint-app {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--pink);
}

.paint-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: #fff0f6;
  border-bottom: 2px solid var(--pink);
}

.tool-group       { display: flex; flex-direction: column; gap: 0.45rem; }
.tool-label       { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: #bbb; }

/* Color swatches */
.color-swatches { display: flex; flex-wrap: wrap; gap: 6px; max-width: 200px; }

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  outline: none;
}
.color-swatch:hover   { transform: scale(1.2); }
.color-swatch.selected { border-color: var(--dark); transform: scale(1.15); box-shadow: 0 0 0 2px white inset; }

/* Brush size buttons */
.brush-btns { display: flex; gap: 6px; align-items: center; }

.brush-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.brush-btn.active  { border-color: var(--pink); background: #fff0f6; }
.brush-btn:hover   { border-color: var(--pink2); }

.brush-dot         { border-radius: 50%; background: #333; display: block; }
.brush-dot.bs      { width:  5px; height:  5px; }
.brush-dot.bm      { width: 15px; height: 15px; }
.brush-dot.bl      { width: 28px; height: 28px; }

/* Stamp buttons */
.stamp-btns { display: flex; flex-wrap: wrap; gap: 5px; }

.stamp-btn {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.stamp-btn:hover       { transform: scale(1.18); border-color: var(--pink2); }
.stamp-btn.active-tool { border-color: var(--pink); background: #fff0f6; }

/* Action buttons */
.tool-actions { flex-direction: row; align-items: flex-end; gap: 6px; }

.paint-action-btn {
  padding: 0.5rem 0.95rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.paint-action-btn:hover       { border-color: var(--pink); background: #fff0f6; }
.paint-action-btn.active-tool { border-color: var(--red);  background: #ffe8e8; color: var(--red); }

/* Canvas */
.paint-canvas-wrap {
  width: 100%;
  background: white;
  cursor: crosshair;
  line-height: 0;
}

#paint-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark);
  color: var(--pink);
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  line-height: 1.8;
}
.footer-tag { font-size: 1rem; opacity: 0.75; }

/* =====================================================
   SCROLL FADE-IN
   ===================================================== */
.js .fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX( 8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX( 5px); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
  .about-card      { flex-direction: column; padding: 1.5rem; align-items: center; }
  .about-photo img { width: 140px; height: 140px; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
  .mascot-callout       { font-size: 1rem; }
  .hero-btn             { font-size: 1rem; padding: 0.75rem 1.8rem; }
  .paint-toolbar        { gap: 0.85rem; }
  .color-swatches       { max-width: 160px; }
  .swim-inner           { flex-direction: column; text-align: center; }
}
