/**
 * Rainbow Kids World - Custom Theme Stylesheet
 */

/* 1. Global Custom Property Variables */
:root {
  --color-sky-blue: #0ea5e9;
  --color-pink: #ec4899;
  --color-yellow: #eab308;
  --color-orange: #f97316;
  --color-purple: #a855f7;
  --color-cream: #fefcf3;
  --color-text-dark: #1e293b;
  
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

body.rainbow-theme {
  background-color: var(--color-cream);
  font-family: var(--font-body);
  color: var(--color-text-dark);
  overflow-x: hidden;
}

.font-heading {
  font-family: var(--font-heading) !important;
}

.font-body {
  font-family: var(--font-body) !important;
}

/* Brand Colors Utilities */
.text-brand { color: var(--color-sky-blue) !important; }
.bg-brand { background-color: var(--color-sky-blue) !important; }
.bg-brand-light { background-color: #e0f2fe !important; }
.bg-warning-light { background-color: #fef9c3 !important; }
.btn-brand {
  background-color: var(--color-pink);
  color: white;
  border: 2px solid var(--color-pink);
}
.btn-brand:hover {
  background-color: #db2777;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}
.btn-outline-brand {
  border: 2px solid var(--color-sky-blue);
  color: var(--color-sky-blue);
}
.btn-outline-brand:hover {
  background-color: var(--color-sky-blue);
  color: white;
}

/* Top Bar & Header styling */
.top-bar {
  background: linear-gradient(135deg, var(--color-sky-blue), var(--color-purple));
  font-family: var(--font-heading);
}

.navbar-brand img {
  animation: logo-bounce 4s ease-in-out infinite;
}

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

.nav-link {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.2s ease-in-out;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-pink) !important;
  background-color: #fce7f3;
}

/* 2. Interactive Floating Background Elements */
.cloud {
  background: white;
  border-radius: 100px;
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}
.cloud::after, .cloud::before {
  content: '';
  background: white;
  position: absolute;
  border-radius: 100px;
}
.cloud-1 {
  width: 150px;
  height: 50px;
  top: 15%;
  left: -200px;
  animation: floatCloud 45s linear infinite;
}
.cloud-1::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.cloud-1::after { width: 80px; height: 80px; top: -40px; left: 60px; }

.cloud-2 {
  width: 220px;
  height: 70px;
  top: 45%;
  left: -300px;
  animation: floatCloud 60s linear infinite 5s;
}
.cloud-2::before { width: 90px; height: 90px; top: -50px; left: 30px; }
.cloud-2::after { width: 110px; height: 110px; top: -60px; left: 80px; }

.cloud-3 {
  width: 130px;
  height: 40px;
  top: 75%;
  left: -150px;
  animation: floatCloud 35s linear infinite 10s;
}
.cloud-3::before { width: 50px; height: 50px; top: -25px; left: 20px; }
.cloud-3::after { width: 60px; height: 60px; top: -30px; left: 50px; }

@keyframes floatCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 350px)); }
}

/* 3. Hero / Slider Section */
.hero-slider-item {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 50px 50px;
  overflow: hidden;
}

.hero-slider-item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(14, 165, 233, 0.4);
}

.hero-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  border: 4px solid var(--color-yellow);
}

/* 4. Page View Components Styles */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 6px;
  background-color: var(--color-yellow);
  bottom: -10px;
  left: 20%;
  border-radius: 3px;
}

.card {
  border-radius: 24px !important;
  transition: all 0.3s ease-in-out;
  border: 3px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Interactive Card borders */
.hw-card { border-color: #e0f2fe; }
.hw-card:hover { border-color: var(--color-sky-blue); }

.event-card { border-color: #fce7f3; }
.event-card:hover { border-color: var(--color-pink); }

.facility-card { border-color: #fef9c3; }
.facility-card:hover { border-color: var(--color-yellow); }

.achievement-card { border-color: #f3e8ff; }
.achievement-card:hover { border-color: var(--color-purple); }

/* Birthday item design */
.birthday-item {
  background-color: white;
  border-radius: 20px;
  border: 2px dashed var(--color-pink);
  transition: all 0.2s ease-in-out;
}
.birthday-item:hover {
  background-color: #fdf2f8;
  transform: scale(1.03);
}

/* Mega/Dropdown Menu */
.dropdown-menu {
  background-color: var(--color-cream);
  border: 3px solid var(--color-sky-blue) !important;
}
.dropdown-item {
  font-family: var(--font-heading);
  transition: all 0.2s;
}
.dropdown-item:hover {
  background-color: var(--color-sky-blue);
  color: white;
  padding-left: 1.5rem;
}

/* Sparkle Cursor Particles */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 99999;
  mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 20%, var(--color-yellow) 80%);
}

/* Footer Styling */
footer {
  background-color: #f3f4f6;
  border-top: 4px solid var(--color-sky-blue);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-icon:hover {
  transform: scale(1.15) rotate(15deg);
}

/* CSS Waves */
.principal-img-frame {
  border: 6px solid white;
  outline: 4px solid var(--color-pink);
}


/* 5. Custom Themed Cursor */
body.rainbow-theme, body.rainbow-theme a, body.rainbow-theme button { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E🌈%3C/text%3E%3C/svg%3E") 16 16, auto !important; }
