/* ==========================================================================
   THINKER JOY ENRICHMENT CENTRE — PLAYFUL KINDERGARTEN DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Quicksand:wght@500;600;700&display=swap');

:root {
  /* Cheerful Kindergarten Palette */
  --color-primary: #FF5E36;        /* Bubbly Coral */
  --color-primary-hover: #E8451B;
  --color-primary-light: #FFF0EB;
  --color-primary-border: #FFD4C7;
  
  --color-yellow: #FFB800;         /* Sunshine Gold */
  --color-yellow-light: #FFF8E1;
  --color-yellow-border: #FFE082;

  --color-blue: #29B6F6;           /* Sky Blue */
  --color-blue-hover: #0288D1;
  --color-blue-light: #E1F5FE;
  --color-blue-border: #B3E5FC;

  --color-green: #38C172;          /* Mint Green */
  --color-green-light: #E8F8F0;
  --color-green-border: #A3E9BE;

  --color-purple: #9333EA;         /* Magic Purple */
  --color-purple-light: #F3E8FF;
  --color-purple-border: #D8B4FE;

  --color-pink: #FF4081;           /* Candy Pink */
  --color-pink-light: #FCE4EC;

  --color-teal: #0D9488;
  --color-teal-light: #CCFBF1;

  --color-dark: #1E293B;           /* Readable Dark Slate */
  --color-text: #334155;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  --color-bg: #FFFDF9;            /* Warm Cream Background */
  --color-bg-alt: #F8FAFC;
  --color-bg-yellow: #FFFBEB;
  --color-bg-blue: #F0F9FF;
  --color-bg-green: #F0FDF4;
  --color-border: #E2E8F0;

  --color-whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Fredoka', 'Quicksand', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-fun: 'Quicksand', cursive, sans-serif;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Playful Cartoon Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-card: 0 10px 25px -5px rgba(255, 94, 54, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-bouncy: 0 8px 0px rgba(0,0,0,0.08);
  --shadow-pop-coral: 0 6px 0px #D84315;
  --shadow-pop-yellow: 0 6px 0px #C68A00;
  --shadow-pop-blue: 0 6px 0px #0288D1;
  --shadow-pop-green: 0 6px 0px #238C4E;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1240px;
  --container-pad: 1.5rem;
}

/* ==========================================================================
   RESETS & GLOBAL ELEMENTS
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(#FFD4C7 0.75px, transparent 0.75px), 
    radial-gradient(#FFE082 0.75px, var(--color-bg) 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  line-height: 1.65;
  font-weight: 500;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.7rem); }
h3 { font-size: clamp(1.4rem, 2vw + 0.5rem, 1.95rem); }
h4 { font-size: 1.3rem; font-weight: 700; }
h5 { font-size: 1.15rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
  font-size: 1.05rem;
}
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--color-dark); }

/* ==========================================================================
   LAYOUT & PLAYFUL CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow { max-width: 920px; }
.container-wide { max-width: 1360px; }

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-alt {
  background-color: #F8FBFF;
}

/* Grid & Flex Utilities */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 991px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  :root {
    --container-pad: 1.15rem;
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-wrap { flex-wrap: wrap; }

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--space-12);
  position: relative;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Playful Doodle Badge Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-yellow-light);
  color: #B45309;
  border: 2px dashed var(--color-yellow);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  box-shadow: 0 4px 0px rgba(255, 184, 0, 0.25);
  transform: rotate(-1deg);
  transition: transform var(--transition-bounce);
}
.badge-tag:hover {
  transform: rotate(2deg) scale(1.05);
}

.badge-tag.badge-coral {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 0px rgba(255, 94, 54, 0.25);
}

.badge-tag.badge-blue {
  background-color: var(--color-blue-light);
  color: #0288D1;
  border-color: var(--color-blue);
  box-shadow: 0 4px 0px rgba(41, 182, 246, 0.25);
}

.badge-tag.badge-green {
  background-color: var(--color-green-light);
  color: #15803D;
  border-color: var(--color-green);
  box-shadow: 0 4px 0px rgba(56, 193, 114, 0.25);
}

.badge-tag.badge-purple {
  background-color: var(--color-purple-light);
  color: #7E22CE;
  border-color: var(--color-purple);
  box-shadow: 0 4px 0px rgba(147, 51, 234, 0.25);
}

/* Washi Tape Accent on Cards */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 90px;
  height: 24px;
  background: rgba(255, 224, 130, 0.85);
  border-left: 3px dashed rgba(0,0,0,0.1);
  border-right: 3px dashed rgba(0,0,0,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 10;
  pointer-events: none;
}
.washi-tape.tape-coral { background: rgba(255, 204, 188, 0.85); }
.washi-tape.tape-blue { background: rgba(179, 229, 252, 0.85); }
.washi-tape.tape-green { background: rgba(200, 240, 215, 0.85); }
.washi-tape.tape-purple { background: rgba(233, 213, 255, 0.85); }

/* Playful Hand-drawn Underlines */
.doodle-underline {
  position: relative;
  display: inline-block;
}
.doodle-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 25 20, 50 10 T 100 10' fill='none' stroke='%23FF5E36' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.doodle-underline-yellow::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 25 0, 50 10 T 100 10' fill='none' stroke='%23FFB800' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.doodle-underline-blue::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 25 20, 50 10 T 100 10' fill='none' stroke='%2329B6F6' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Floating Doodle Stickers */
.floating-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: doodleBounce 5s ease-in-out infinite alternate;
}
@keyframes doodleBounce {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
  100% { transform: translateY(6px) rotate(-3deg); }
}

.text-primary { color: var(--color-primary) !important; }
.text-yellow { color: var(--color-yellow) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-green { color: var(--color-green) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
