/* PuzzleBuddy Game Style CSS */
/* Matching the iOS app's child-friendly design language */

:root {
  /* Color Palette from the game */
  --primary-brown: #8B6B47;
  --primary-brown-dark: #6B5B37;
  --background-brown: #A0826D;
  --background-light: #F5E6D3;
  --text-white: #FFFFFF;
  --accent-pink: #FF6B9D;
  --accent-orange: #FFA500;
  --accent-cyan: #00CED1;
  --accent-blue: #4169E1;
  --overlay-dark: rgba(0, 0, 0, 0.4);
  --overlay-light: rgba(255, 255, 255, 0.9);
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --title-size: 2.5rem;
  --heading-size: 1.8rem;
  --text-size: 1.1rem;
  --small-text: 0.9rem;
  
  /* Design Elements */
  --border-radius: 20px;
  --border-radius-small: 12px;
  --border-width: 3px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-size);
  line-height: 1.6;
  color: var(--primary-brown-dark);
  background-color: var(--background-light);
  min-height: 100vh;
  padding: 20px;
  background-image: radial-gradient(circle at 50% 50%, var(--background-light), #E5D6C3);
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--overlay-light);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-strong);
  border: var(--border-width) solid var(--text-white);
}

/* Typography */
h1 {
  font-size: var(--title-size);
  font-weight: 800;
  color: var(--primary-brown);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

h2 {
  font-size: var(--heading-size);
  font-weight: 700;
  color: var(--primary-brown);
  margin-top: 35px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-pink);
  display: inline-block;
  width: 100%;
}

h2:first-of-type {
  margin-top: 20px;
}

p {
  margin-bottom: 15px;
  color: var(--primary-brown-dark);
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

li {
  background: white;
  border-radius: var(--border-radius-small);
  padding: 12px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--accent-orange);
  position: relative;
  padding-left: 45px;
}

li::before {
  content: "🧩";
  position: absolute;
  left: 15px;
  font-size: 1.2rem;
}

li strong {
  color: var(--accent-blue);
  font-weight: 700;
}

/* Links */
a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: var(--border-radius-small);
  padding: 2px 8px;
}

a:hover {
  background: var(--accent-blue);
  color: white;
  box-shadow: var(--shadow-soft);
}

/* Special Elements */
.effective-date {
  background: var(--accent-pink);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.intro-text {
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

/* Contact Section */
.contact-section {
  background: var(--accent-orange);
  color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 40px;
  box-shadow: var(--shadow-strong);
}

.contact-section h2 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.contact-section a {
  background: white;
  color: var(--accent-orange);
  padding: 10px 25px;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 10px;
  box-shadow: var(--shadow-soft);
}

.contact-section a:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-strong);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --title-size: 2rem;
    --heading-size: 1.5rem;
    --text-size: 1rem;
  }
  
  body {
    padding: 10px;
  }
  
  .container {
    padding: 25px;
  }
  
  li {
    padding-left: 40px;
  }
}

/* Fun Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

h1 {
  animation: bounce 2s ease-in-out infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}