/*
Theme Name: Kiddze Verse
Theme URI: https://www.kiddzeverse.com
Author: Kiddze Verse
Author URI: https://www.kiddzeverse.com
Description: A magical, child-friendly WordPress theme for Kiddze Verse — cartoons, books, and creative content for kids aged 3-8. Pastel colors, soft UI, and playful design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kiddze-verse
Tags: children, education, entertainment, custom-logo, custom-menu, featured-images
*/

/* ===========================
   CSS Variables & Design System
   =========================== */
:root {
  --bg: hsl(40, 100%, 98%);
  --fg: hsl(280, 30%, 25%);
  --card: hsl(340, 60%, 98%);
  --card-fg: hsl(280, 30%, 25%);
  --primary: hsl(270, 60%, 70%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(340, 70%, 85%);
  --secondary-fg: hsl(340, 50%, 30%);
  --muted: hsl(260, 40%, 95%);
  --muted-fg: hsl(260, 20%, 50%);
  --accent: hsl(200, 80%, 85%);
  --accent-fg: hsl(200, 60%, 30%);
  --destructive: hsl(15, 80%, 75%);
  --border: hsl(280, 30%, 90%);
  --radius: 1rem;
  --font-sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Fredoka', 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --gradient-hero: linear-gradient(135deg, hsl(340, 70%, 95%) 0%, hsl(270, 60%, 95%) 50%, hsl(200, 80%, 95%) 100%);
  --gradient-button: linear-gradient(135deg, hsl(270, 60%, 70%) 0%, hsl(300, 60%, 75%) 100%);
  --shadow-sm: 0 2px 4px 0px hsla(270, 30%, 50%, 0.1);
  --shadow-md: 0 6px 12px -3px hsla(270, 30%, 50%, 0.12);
  --shadow-lg: 0 10px 20px -5px hsla(270, 30%, 50%, 0.15);
  --shadow-xl: 0 20px 40px -10px hsla(270, 30%, 50%, 0.2);
  --glow-primary: 0 0 30px hsla(270, 60%, 70%, 0.3);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===========================
   Header
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 80px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-fg);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.site-logo:hover .logo-icon { transform: scale(1.1); }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--fg);
}

.logo-text .highlight { color: var(--primary); }

/* Navigation */
.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: hsla(40, 100%, 98%, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 0.375rem 0.5rem;
    border: 1px solid hsla(280, 30%, 90%, 0.3);
    box-shadow: var(--shadow-sm);
  }
}

.main-nav .menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.main-nav .menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: all 0.3s;
}

.main-nav .menu li a:hover,
.main-nav .menu li.current-menu-item a,
.main-nav .menu li.current_page_item a {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

.header-cta { display: none; }

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid hsla(280, 30%, 90%, 0.5);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.3s;
}

.btn-contact:hover { background: hsla(40, 100%, 98%, 0.8); }

/* Mobile Nav */
.mobile-toggle {
  display: flex;
  padding: 0.5rem;
  border-radius: 9999px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-size: 1.5rem;
  transition: background 0.3s;
}

.mobile-toggle:hover { background: var(--muted); }

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.mobile-nav.active { display: block; }

.mobile-nav .menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav .menu li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: all 0.3s;
}

.mobile-nav .menu li a:hover,
.mobile-nav .menu li.current-menu-item a {
  background: hsla(270, 60%, 70%, 0.1);
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-hero {
  background: var(--gradient-button);
  color: var(--primary-fg);
  box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-hero-secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
  box-shadow: var(--shadow-md);
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.btn-full { width: 100%; }

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    padding: 7rem 1rem 7rem;
  }
}

.hero-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.6s ease-out;
}

@media (min-width: 1024px) {
  .hero-content { text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(270, 60%, 70%, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  align-self: center;
}

@media (min-width: 1024px) {
  .hero-badge { align-self: flex-start; }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
}

@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-title .highlight { color: var(--primary); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-subtitle { margin: 0; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
}

@media (min-width: 1024px) {
  .hero-cta { justify-content: flex-start; }
}

.hero-image {
  flex: 1;
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-image-glow {
  position: absolute;
  inset: -1rem;
  background: hsla(270, 60%, 70%, 0.2);
  border-radius: 2rem;
  filter: blur(2rem);
  animation: floatSlow 6s ease-in-out infinite;
}

.hero-image img {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.hero-float-1, .hero-float-2 {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero-float-1 {
  top: -1rem; right: -1rem;
  width: 4rem; height: 4rem;
  background: var(--accent);
  font-size: 1.5rem;
  animation: bounceGentle 3s ease-in-out infinite;
}

.hero-float-2 {
  bottom: -1rem; left: -1rem;
  width: 3.5rem; height: 3.5rem;
  background: var(--secondary);
  font-size: 1.25rem;
  animation: floatSlow 4s ease-in-out 0.5s infinite;
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.hero-wave svg { width: 100%; height: auto; display: block; }

/* ===========================
   Services Section
   =========================== */
.services-section {
  padding: 5rem 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(200, 80%, 85%, 0.5);
  color: var(--accent-fg);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.service-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: all 0.5s;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: hsla(270, 60%, 70%, 0.3);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.service-icon-youtube { background: hsla(15, 80%, 75%, 0.2); }
.service-icon-books { background: var(--secondary); }

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.service-card h3 + p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.service-card > p {
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

/* Language grid */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(260, 40%, 95%, 0.5);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.3s;
}

.service-card:hover .lang-item { background: var(--muted); }

.lang-flag { font-size: 1.125rem; }

/* Book categories preview */
.book-cats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.book-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.book-cat-thumb {
  width: 5rem; height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.book-cat-item:hover .book-cat-thumb {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.book-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }

.book-cat-item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-align: center;
}

/* ===========================
   About Section
   =========================== */
.about-section {
  padding: 5rem 0;
  background: var(--gradient-hero);
}

.about-intro {
  max-width: 56rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-intro h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .about-intro h2 { font-size: 2.25rem; } }

.about-intro p {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: hsla(340, 60%, 98%, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: hsla(270, 60%, 70%, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: hsla(270, 60%, 70%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.about-trust {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ===========================
   Channels Page
   =========================== */
.page-hero {
  background: var(--gradient-hero);
  padding: 4rem 0 6rem;
  margin-top: -80px;
  padding-top: calc(80px + 4rem);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }

.page-hero p {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 42rem;
  margin: 0 auto;
}

.channels-grid, .books-grid {
  display: grid;
  gap: 1.5rem;
  padding: 4rem 0;
}

@media (min-width: 640px) { .channels-grid, .books-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .channels-grid, .books-grid { grid-template-columns: repeat(3, 1fr); } }

.channel-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.channel-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: hsla(270, 60%, 70%, 0.3);
  transform: translateY(-4px);
}

.channel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.channel-flag {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.channel-yt { color: var(--destructive); font-size: 1.25rem; }

.channel-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.channel-lang {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.channel-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

/* ===========================
   Books Page
   =========================== */
.book-card {
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.book-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: hsla(270, 60%, 70%, 0.3);
  transform: translateY(-4px);
}

.book-cover {
  aspect-ratio: 4/5;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.book-card:hover .book-cover img { transform: scale(1.05); }

.book-info {
  padding: 1.5rem;
}

.book-category {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.book-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Category pills */
.category-pills {
  padding: 2rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 40;
}

.pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--muted);
  color: var(--muted-fg);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.pill:hover, .pill.active {
  background: var(--primary);
  color: var(--primary-fg);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  padding: 4rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .cta-section h2 { font-size: 1.875rem; } }

.cta-section p {
  color: var(--muted-fg);
  max-width: 32rem;
  margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-brand { align-items: flex-start; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-align: center;
  max-width: 20rem;
}

@media (min-width: 768px) { .footer-brand p { text-align: left; } }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--primary); }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) { .footer-contact { align-items: flex-end; } }

.footer-contact a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.3s;
}

.footer-contact a:hover { color: var(--primary); }

.footer-contact .lang-note {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.footer-bottom .copyright {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ===========================
   404
   =========================== */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.25rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
}

/* ===========================
   WordPress Content Styles
   =========================== */
.entry-content h1, .entry-content h2, .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content p { margin-bottom: 1rem; }

.entry-content img {
  border-radius: 1rem;
  margin: 1.5rem 0;
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out both; }

/* ===========================
   Elementor Compatibility
   =========================== */

/* Full-width Elementor pages — remove container constraints */
.elementor-page .entry-content,
.elementor-page .elementor-front-page,
.elementor-page .elementor-fullwidth {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Ensure Elementor sections go edge-to-edge */
.elementor-page .elementor-section.elementor-section-stretched {
  max-width: 100%;
}

/* Fix Elementor inner-section inside theme */
.elementor-page .elementor-inner {
  max-width: 100%;
}

/* Prevent theme container from constraining Elementor */
.elementor-page .container {
  max-width: 100%;
  padding: 0;
}

/* Canvas template — complete reset */
body.elementor-canvas {
  background: var(--bg);
  margin: 0;
  padding: 0;
}

body.elementor-canvas #kiddze-canvas-content {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* Full Width template */
.elementor-fullwidth {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Elementor widgets inside theme — inherit fonts */
.elementor-widget .elementor-heading-title {
  font-family: var(--font-display);
}

.elementor-widget .elementor-text-editor,
.elementor-widget .elementor-text-editor p {
  font-family: var(--font-sans);
}

/* Elementor buttons — match theme style */
.elementor-widget .elementor-button {
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s;
}

/* Elementor image widget — match theme border-radius */
.elementor-widget .elementor-image img {
  border-radius: var(--radius);
}

/* Elementor icon box — match theme feature cards */
.elementor-widget .elementor-icon-box-icon {
  border-radius: 0.75rem;
}

/* Fix Elementor editor z-index conflicts with theme header */
.elementor-editor-active .site-header {
  z-index: 99;
}

/* Elementor editor panel should be above theme elements */
.elementor-editor-active #elementor-panel {
  z-index: 10000;
}

/* Ensure Elementor navigator stays accessible */
.elementor-editor-active .dialog-widget {
  z-index: 10001;
}

/* Navigation menu widget compatibility */
.elementor-widget-nav-menu .elementor-nav-menu a {
  font-family: var(--font-sans);
  font-weight: 500;
}

/* Elementor section backgrounds work normally — theme does not interfere */

/* Theme color CSS variables available to Elementor Global Colors */
/* Users can reference: var(--primary), var(--secondary), var(--accent), etc. */

/* Responsive adjustments for Elementor */
@media (max-width: 767px) {
  .elementor-page main {
    margin-top: 80px;
  }
}

/* Elementor popup compatibility */
.elementor-popup-modal {
  z-index: 10002;
}

/* WooCommerce Elementor widgets (if installed later) */
.elementor-widget-woocommerce-products .product {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
