/* =============================================================
   LARELAPA KIDS THEME v1.0 - Ages 5-10
   Bright, playful, safe, and engaging for children
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── Design tokens for kids ─────────────────────────────── */
:root {
  /* SUPER VIBRANT, playful primary colors */
  --kids-red:        #FF1744;
  --kids-orange:     #FF6D00;
  --kids-yellow:     #FFFF00;
  --kids-lime:       #00E676;
  --kids-cyan:       #00B0FF;
  --kids-purple:     #D500F9;
  --kids-pink:       #F50057;
  --kids-teal:       #1DE9B6;
  
  /* Background colors - soft and friendly */
  --kids-bg-light:   #FFFEF5;
  --kids-bg-soft:    #FFF9E6;
  --kids-surface:    #FFFFFF;
  
  /* Text colors - dark and readable */
  --kids-text-dark:  #2C2C2C;
  --kids-text-light: #5A5A5A;
  
  /* Borders and effects */
  --kids-border:     3px;
  --kids-radius:     20px;
  --kids-radius-lg:  28px;
  --kids-shadow:     0 8px 20px rgba(0, 0, 0, 0.12);
  --kids-shadow-hv:  0 12px 32px rgba(0, 0, 0, 0.18);
  --kids-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Global Base ────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  background: var(--kids-bg-light) !important;
  color: var(--kids-text-dark);
  font-size: 18px;
  line-height: 1.6;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ── Remove unnecessary elements ────────────────────────── */
.bs-head-detail,
.bs-header-main,
.mainfeatured,
.breadcrumb,
.bs-widget-title,
.widget-title {
  display: none !important;
}

.site-content {
  padding-top: 0 !important;
}

/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */

.lara-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: var(--kids-shadow);
  background: linear-gradient(135deg, var(--kids-purple) 0%, var(--kids-pink) 50%, var(--kids-cyan) 100%) !important;
  padding: 0.75rem 0 !important;
}

.lara-navbar {
  background: transparent !important;
  min-height: auto !important;
  padding: 0 !important;
  align-items: center;
}

.lara-brand-wrap,
.lara-brand-wrap:hover {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  color: #fff !important;
}

.lara-brand-wrap img,
.lara-brand-wrap .custom-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.lara-brand-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Menu */
.lara-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lara-nav-list > li {
  position: relative;
}

.lara-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
  transform: scale(1);
}

.lara-nav-list > li > a:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile menu toggle */
.navbar-toggler {
  border: 3px solid #fff !important;
  padding: 0.75rem 1rem !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5) !important;
}

/* =============================================================
   MAIN CONTENT AREA
   ============================================================= */

.container,
.container-fluid {
  padding: 2rem 1rem !important;
}

main {
  min-height: calc(100vh - 200px);
}

/* =============================================================
   CARDS & CONTENT BOXES
   ============================================================= */

.bs-blog-post,
.lara-oc-card,
.card,
article {
  background: var(--kids-surface) !important;
  border: var(--kids-border) solid #FFD93D !important;
  border-radius: var(--kids-radius-lg) !important;
  box-shadow: var(--kids-shadow) !important;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.bs-blog-post:hover,
.lara-oc-card:hover,
article:hover,
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--kids-shadow-hv) !important;
  border-color: var(--kids-orange) !important;
}

/* Card borders - colorful variety */
.bs-blog-post:nth-child(1) { border-color: var(--kids-red) !important; }
.bs-blog-post:nth-child(2) { border-color: var(--kids-orange) !important; }
.bs-blog-post:nth-child(3) { border-color: var(--kids-yellow) !important; }
.bs-blog-post:nth-child(4) { border-color: var(--kids-lime) !important; }
.bs-blog-post:nth-child(5) { border-color: var(--kids-cyan) !important; }
.bs-blog-post:nth-child(6) { border-color: var(--kids-purple) !important; }

/* =============================================================
   TYPOGRAPHY
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', sans-serif;
  color: var(--kids-text-dark);
  font-weight: 700;
  margin: 1rem 0;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 0 var(--kids-yellow);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  text-shadow: 2px 2px 0 var(--kids-cyan);
}

h3 {
  font-size: 1.6rem;
  text-shadow: 1px 1px 0 var(--kids-pink);
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--kids-text-light);
  margin-bottom: 1rem;
}

/* =============================================================
   BUTTONS
   ============================================================= */

button,
a.btn,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700;
  padding: 1rem 2rem !important;
  border: 3px solid !important;
  border-radius: 18px !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  transform: scale(1);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

button:hover,
a.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2) !important;
}

button:active,
a.btn:active,
.wp-block-button__link:active {
  transform: scale(0.98) translateY(2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Primary button - Red */
.btn-primary,
button.primary,
.wp-block-button__link {
  background: var(--kids-red) !important;
  color: #fff !important;
  border-color: #D63447 !important;
}

.btn-primary:hover {
  background: #E63456 !important;
}

/* Secondary button - Purple */
.btn-secondary,
button.secondary {
  background: var(--kids-purple) !important;
  color: #fff !important;
  border-color: #8B3FD0 !important;
}

/* Success button - Lime Green */
.btn-success {
  background: var(--kids-lime) !important;
  color: #fff !important;
  border-color: #5AAD65 !important;
}

/* Info button - Cyan */
.btn-info {
  background: var(--kids-cyan) !important;
  color: #fff !important;
  border-color: #3D7BE8 !important;
}

/* =============================================================
   LINKS & INTERACTIVE
   ============================================================= */

a {
  color: var(--kids-purple);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--kids-orange);
  text-decoration: underline;
}

/* Underline animation */
a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--kids-yellow);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* =============================================================
   FORMS
   ============================================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border: 3px solid #FFD93D;
  border-radius: 15px;
  background: #FFFEF5;
  color: var(--kids-text-dark);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--kids-cyan);
  box-shadow: 0 0 0 4px rgba(77, 150, 255, 0.2);
}

/* =============================================================
   POST/ARTICLE STYLING
   ============================================================= */

.bs-blog-post .title,
.post-title,
.entry-title {
  font-size: 1.5rem;
  color: var(--kids-text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bs-blog-post a,
article a {
  color: var(--kids-purple);
}

.post-excerpt,
.entry-excerpt {
  font-size: 1rem;
  color: var(--kids-text-light);
  line-height: 1.7;
}

/* Thumbnail/Featured Image */
.bs-blog-post img,
.lara-oc-img,
.post-thumbnail img {
  border-radius: 15px;
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1) saturate(1.1);
  transition: filter 0.3s ease;
}

.bs-blog-post:hover img,
article:hover img {
  filter: brightness(1.05) saturate(1.2);
}

/* =============================================================
   SIDEBAR & WIDGETS
   ============================================================= */

.sidebar-left,
.sidebar-right,
aside {
  margin-top: 2rem;
}

.bs-widget,
.widget {
  background: var(--kids-surface) !important;
  border: 3px solid var(--kids-orange) !important;
  border-radius: var(--kids-radius-lg) !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: var(--kids-shadow-soft) !important;
}

.widget-title {
  display: block !important;
  font-size: 1.4rem;
  color: var(--kids-text-dark);
  font-weight: 700;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 3px solid var(--kids-lime) !important;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.75rem 0;
  border-bottom: 2px dotted #FFD93D;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  font-size: 1rem;
  display: block;
  padding: 0.5rem 0;
}

/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  background: linear-gradient(135deg, var(--kids-purple) 0%, var(--kids-pink) 100%) !important;
  color: #fff;
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
}

.footer h3,
.footer h4 {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer a {
  color: #FFD93D;
}

.footer a:hover {
  color: var(--kids-cyan);
}

.bs-footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 3px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 1rem;
}

/* =============================================================
   ANIMATIONS & INTERACTIONS
   ============================================================= */

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* Fun hover effects */
.bs-blog-post {
  animation: none;
}

.bs-blog-post:hover {
  animation: wobble 0.6s ease;
}

button:hover::before,
a.btn:hover::before {
  content: '';
}

/* =============================================================
   KIDS GAMES SECTION
   ============================================================= */

.kids-games-section {
  background: var(--kids-bg-light);
  padding: 2rem 0;
}

.games-header {
  border-radius: 20px;
  box-shadow: var(--kids-shadow-hv);
  margin: 0 1rem;
}

.games-header h1 {
  animation: bounce 0.6s ease infinite;
}

.game-card {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--kids-shadow-hv) !important;
}

/* Game Board Styles */
#tictactoe-board,
#memory-board,
#number-board,
#color-options,
#maths-options {
  animation: fadeIn 0.4s ease;
}

.tictactoe-cell:hover,
.memory-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tictactoe-cell:active,
.memory-card:active {
  transform: scale(0.95);
}

/* Game Buttons */
#tictactoe-reset,
#memory-reset,
#word-submit,
#number-reset,
#color-reset,
#maths-reset {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#tictactoe-reset:hover,
#memory-reset:hover,
#word-submit:hover,
#number-reset:hover,
#color-reset:hover,
#maths-reset:hover {
  transform: scale(1.05);
  box-shadow: var(--kids-shadow-hv);
}

#tictactoe-reset:active,
#memory-reset:active,
#word-submit:active,
#number-reset:active,
#color-reset:active,
#maths-reset:active {
  transform: scale(0.98);
}

/* Input Styles */
#word-guess {
  transition: all 0.2s ease;
  box-shadow: var(--kids-shadow-soft);
}

#word-guess:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.5);
  transform: scale(1.02);
}

/* Status Messages */
#tictactoe-status,
#word-clue,
#color-name,
#maths-problem,
#color-task,
#number-challenge {
  animation: pulse 1s ease infinite;
}

/* Responsive Games */
@media (max-width: 768px) {
  .game-card {
    padding: 1.5rem !important;
  }
  
  #tictactoe-board,
  #memory-board {
    gap: 8px;
  }
  
  .tictactoe-cell,
  .memory-card {
    height: 70px !important;
    font-size: 1.5rem !important;
  }
  
  #number-board,
  #color-options,
  #maths-options {
    gap: 8px;
  }
}

/* Celebration animations */
@keyframes tada {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.15) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.game-card.win {
  animation: tada 0.6s ease;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow effect for games */
.game-card {
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .tictactoe-cell,
  .memory-card,
  .game-card,
  #tictactoe-reset,
  #memory-reset,
  #word-submit,
  #number-reset,
  #color-reset,
  #maths-reset {
    animation: none !important;
    transition: none !important;
  }
}
  content: '✨';
  margin-right: 0.5rem;
}

/* =============================================================
   RESPONSIVE & MOBILE
   ============================================================= */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  
  p { font-size: 1rem; }
  
  .lara-brand-name { font-size: 1.4rem; }
  
  .lara-nav-list > li > a {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
  
  button,
  a.btn,
  .wp-block-button__link,
  input[type="submit"] {
    font-size: 1rem !important;
    padding: 0.8rem 1.5rem !important;
  }
  
  .bs-blog-post,
  .lara-oc-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  
  p { font-size: 0.95rem; }
  
  .lara-brand-name { font-size: 1.1rem; }
  
  button,
  a.btn,
  .wp-block-button__link {
    font-size: 0.9rem !important;
    padding: 0.7rem 1.2rem !important;
  }
  
  .container,
  .container-fluid {
    padding: 1rem 0.75rem !important;
  }
}

/* =============================================================
   UTILITIES
   ============================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Hidden elements for kids theme */
.breadcrumb { display: none !important; }
.entry-meta { font-size: 0.95rem; }
.comment-form { margin-top: 2rem; }
