/*
Theme Name: Wheel on the Bus
Description: A child-friendly WordPress theme designed for nursery rhyme and kids activity websites. Features built-in AdSense integration, mobile-responsive design, and SEO optimization perfect for parents of toddlers and preschoolers.
Author: Wheel on the Bus Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: wheelonthebus
Tags: kids, nursery-rhymes, education, mobile-first, adsense, colorful, family-friendly
*/

/* ==================== ROOT VARIABLES ==================== */
:root {
  /* Primary Brand Colors - Child-friendly but professional */
  --primary-blue: #4A90E2;           /* Trust, reliability */
  --primary-orange: #FF6B35;         /* Energy, warmth, CTA */
  --primary-green: #7ED321;          /* Growth, positive learning */
  --primary-yellow: #F5A623;         /* Joy, attention-grabbing */
  
  /* Supporting Colors */
  --soft-purple: #BD8FE6;            /* Creativity, imagination */
  --coral-pink: #FF8A80;             /* Gentle, nurturing */
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #E9ECEF;
  --text-gray: #495057;
  --dark-gray: #212529;
  
  /* AdSense Optimization Colors */
  --ad-bg: #F5F7FA;
  --ad-border: #E1E8ED;
  
  /* Typography */
  --font-primary: 'Comic Sans MS', cursive, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-headings: 'Nunito', 'Comic Sans MS', cursive, sans-serif;
  
  /* Font Sizes - Mobile First */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  
  /* Spacing Scale */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 0.75rem;    /* 12px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==================== BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--text-gray);
  background: linear-gradient(135deg, #FFE5B4 0%, #FFCCCB 50%, #E6E6FA 100%);
  background-attachment: fixed;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}

/* ==================== CONTAINER SYSTEM ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==================== HEADER STYLES ==================== */
.site-header {
  background: linear-gradient(135deg, #FFE066 0%, #FF6B6B 100%);
  padding: var(--space-lg) 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--space-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '🚌🎵🌈';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: var(--text-2xl);
  opacity: 0.3;
}

.site-title {
  color: var(--dark-gray);
  font-size: var(--text-4xl);
  margin: 0;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
  font-family: var(--font-headings);
  font-weight: 700;
}

.site-description {
  color: var(--text-gray);
  font-size: var(--text-lg);
  margin-top: var(--space-sm);
  font-weight: 600;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: var(--space-md);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-md);
}

.nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==================== MAIN CONTENT LAYOUT ==================== */
.site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin: var(--space-md);
}

@media (min-width: 768px) {
  .site-main {
    grid-template-columns: 2fr 1fr;
  }
}

/* ==================== CONTENT AREA ==================== */
.content-area {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

/* ==================== POST STYLES ==================== */
.post {
  margin-bottom: var(--space-2xl);
  border-bottom: 3px solid var(--light-gray);
  padding-bottom: var(--space-xl);
}

.post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.entry-title {
  color: var(--dark-gray);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-headings);
  line-height: 1.2;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: var(--primary-blue);
}

.entry-meta {
  color: var(--text-gray);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--light-gray);
  border-radius: var(--radius-md);
  display: inline-block;
}

.entry-content {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.entry-content h2 {
  color: var(--dark-gray);
  font-size: var(--text-2xl);
  margin: var(--space-xl) 0 var(--space-md) 0;
  font-family: var(--font-headings);
}

.entry-content h3 {
  color: var(--dark-gray);
  font-size: var(--text-xl);
  margin: var(--space-lg) 0 var(--space-sm) 0;
  font-family: var(--font-headings);
}

.entry-content p {
  margin-bottom: var(--space-md);
}

.entry-content ul, .entry-content ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.entry-content li {
  margin-bottom: var(--space-xs);
}

/* ==================== SIDEBAR STYLES ==================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-green);
}

.widget-title {
  color: var(--dark-gray);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-headings);
  font-weight: 600;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: var(--primary-blue);
}

/* ==================== ADSENSE STYLES ==================== */
.wheelonthebus-ad {
  text-align: center;
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-md);
  position: relative;
}

.wheelonthebus-ad::before {
  content: 'Advertisement';
  display: block;
  font-size: var(--text-xs);
  color: var(--text-gray);
  margin-bottom: var(--space-xs);
  opacity: 0.7;
}

.wheelonthebus-ad-header {
  margin: var(--space-md);
}

.wheelonthebus-ad-content {
  margin: var(--space-xl) 0;
}

.wheelonthebus-ad-sidebar {
  margin: var(--space-lg) 0;
}

.wheelonthebus-ad-footer {
  margin: var(--space-lg) var(--space-md);
}

/* Hide ads when printing */
@media print {
  .wheelonthebus-ad {
    display: none !important;
  }
}

/* ==================== FOOTER STYLES ==================== */
.site-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  margin: var(--space-xl) var(--space-md) var(--space-md);
  border-radius: var(--radius-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-headings);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.site-info {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-lg);
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 767px) {
  .site-title {
    font-size: var(--text-3xl);
  }
  
  .entry-title {
    font-size: var(--text-2xl);
  }
  
  .content-area {
    padding: var(--space-lg);
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ==================== ANIMATIONS ==================== */
@keyframes bounce {
  0%, 20%, 60%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  80% { transform: translateY(-5px); }
}

.bounce-animation {
  animation: bounce 2s infinite;
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary-green);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--text-xl);
  font-family: var(--font-headings);
  color: var(--dark-gray);
  margin: 0;
}

.card-content {
  color: var(--text-gray);
  line-height: 1.6;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }