@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --pink: #FF3D81;
  --yellow: #FFC738;
  --sky: #3DCBFF;
  --green: #4ADE80;
  --plum: #2B1B3D;
  --plum-light: #3D2A54;
  --cream: #FFF8ED;
  --ink: #241531;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--plum);
  color: var(--cream);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,199,56,0.10) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(61,203,255,0.10) 0, transparent 35%);
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  letter-spacing: 0.3px;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-size: 1.6rem;
  color: var(--yellow);
  transform: rotate(-2deg);
  display: inline-block;
}

.brand span { color: var(--pink); }

nav.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav.crumbs a, .logout-link {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--plum-light);
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

nav.crumbs a:hover, .logout-link:hover {
  transform: translateY(-2px) rotate(-1deg);
  border-color: var(--yellow);
}

/* Sticker tiles (hub) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.tile {
  background: var(--cream);
  color: var(--ink);
  border-radius: 26px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 10px 0 rgba(0,0,0,0.18);
  transform: rotate(var(--tilt, -1deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.tile:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 14px 0 rgba(0,0,0,0.2);
}

.tile .icon {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: 10px;
}

.tile h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.tile p {
  margin: 0;
  font-weight: 600;
  opacity: 0.75;
  font-size: 0.95rem;
}

.tile.pink  { --tilt: -2deg; border-bottom: 6px solid var(--pink); }
.tile.sky   { --tilt: 1.5deg; border-bottom: 6px solid var(--sky); }
.tile.green { --tilt: -1deg; border-bottom: 6px solid var(--green); }

/* Cards / lists */
.card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.badge {
  display: inline-block;
  font-family: 'Baloo 2', cursive;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  margin-bottom: 10px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  margin-bottom: 10px;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Buttons + forms */
button, .btn {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--pink);
  color: white;
  box-shadow: 0 5px 0 #c22962;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
button:hover, .btn:hover { transform: translateY(-2px); }
button:active, .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #c22962; }

input[type="text"], input[type="password"], textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--plum-light);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus, button:focus, a:focus {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* Login page */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 0 rgba(0,0,0,0.2);
  transform: rotate(-1deg);
}

.login-card .icon { font-size: 3rem; }

.login-card h1 {
  color: var(--pink);
  margin: 8px 0 4px;
}

.login-card p.sub {
  margin-top: 0;
  font-weight: 700;
  opacity: 0.7;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.error-msg {
  background: #ffe0e9;
  color: #b3134b;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 14px;
}

footer.credit {
  text-align: center;
  margin-top: 50px;
  opacity: 0.5;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
