/* Modern, Beautiful Styles for Kidz-Y1 GitHub Pages */

:root {
  --primary-color: #FFD700;
  --secondary-color: #FF6B6B;
  --accent-color: #4ECDC4;
  --text-color: #2C3E50;
  --bg-color: #FFFFFF;
  --card-bg: #F8F9FA;
  --border-color: #E1E8ED;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-color);
  margin-top: -50px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 2rem 120px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin: 0;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* Sections */
section {
  margin: 0.25rem 0;
  padding: 0.25rem 0;
}

section h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

section h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

section h4 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 0.5rem 0;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid var(--border-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--text-color);
}

.feature-card p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Installation Steps */
.install-steps {
  margin-top: 1.5rem;
}

.install-step {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.install-step p {
  margin-bottom: 0.5rem;
  width: 100%;
}

.install-image {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Screenshots Section */
.images-section {
  margin: 0;
}

.screenshots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.screenshot-card {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
}

.screenshot-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.screenshot-caption {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  color: #666;
}

/* Code Blocks */
.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0.5rem 0;
  box-shadow: var(--shadow);
}

.code-block.small {
  padding: 1rem;
  font-size: 0.9rem;
}

.code-block pre {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  line-height: 1.5;
}

.code-block code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.95rem;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0.5rem 0;
}

.info-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
}

.info-card h4 {
  color: var(--accent-color);
  margin-top: 0;
}

/* Footer Section */
.footer-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 3rem;
  text-align: center;
}

.heart-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  display: inline-block;
}

.heart-footer p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 1rem;
    margin-top: -30px;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .features-grid,
  .screenshots-grid,
  .info-cards {
    grid-template-columns: 1fr;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
