/* ============================================
   Cartoon Minimal App — styles.css
   Clean white background, bold black outlines,
   flat colors, playful rounded shapes.
   ============================================ */

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  font-family: 'Baloo 2', cursive, sans-serif;
  color: #1a1a1a;
  padding: 20px;
}

/* ---------- Main Card ---------- */
.app-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 4px solid #1a1a1a;
  border-radius: 40px;
  padding: 32px 24px;
  box-shadow: 8px 8px 0 #1a1a1a;
  text-align: center;
}

/* ---------- Header ---------- */
.app-header {
  margin-bottom: 28px;
}

.app-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 2px;
  line-height: 1.1;
}

.app-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #666666;
  background: #ffe066;
  display: inline-block;
  padding: 4px 16px;
  border: 3px solid #1a1a1a;
  border-radius: 30px;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ---------- Cartoon Stage ---------- */
.cartoon-stage {
  background: #f7f7f7;
  border: 3px solid #1a1a1a;
  border-radius: 32px;
  padding: 32px 20px 24px;
  margin-bottom: 28px;
}

/* ---------- Character (Face) ---------- */
.character {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  background: #ffd93d; /* sunny yellow */
  border: 4px solid #1a1a1a;
  border-radius: 50%;
  box-shadow: 6px 6px 0 rgba(26, 26, 26, 0.15);
  transition: transform 0.15s ease;
}

/* Eyes */
.eye {
  position: absolute;
  top: 55px;
  width: 20px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 50%;
  transition: height 0.2s ease, top 0.2s ease;
}

.eye-left {
  left: 42px;
}

.eye-right {
  right: 42px;
}

/* Blink state (applied via JS class) */
.character.blink .eye {
  height: 6px;
  top: 65px;
  border-radius: 10px;
}

/* Mouth */
.mouth {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 22px;
  border: 4px solid #1a1a1a;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0 0 40px 40px;
  transition: transform 0.2s ease;
}

/* Smile on hover (playful) */
.character:hover .mouth {
  transform: translateX(-50%) scaleY(1.2);
}

/* Cheeks */
.cheek {
  position: absolute;
  bottom: 48px;
  width: 26px;
  height: 14px;
  background: #ff8fa3; /* soft pink */
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  opacity: 0.85;
}

.cheek-left {
  left: 18px;
}

.cheek-right {
  right: 18px;
}

/* ---------- Status Message ---------- */
.status-message {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #ffffff;
  display: inline-block;
  padding: 8px 20px;
  border: 3px solid #1a1a1a;
  border-radius: 30px;
  margin-bottom: 16px;
  min-width: 140px;
  transition: background 0.2s ease;
}

/* ---------- Cartoon Button ---------- */
.cartoon-btn {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: #4ecdc4; /* teal */
  border: 4px solid #1a1a1a;
  border-radius: 40px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #1a1a1a;
  transition: all 0.1s ease;
  display: inline-block;
  letter-spacing: 1px;
}

.cartoon-btn:hover {
  background: #44b8b0;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

.cartoon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #1a1a1a;
}

.btn-label {
  display: inline-block;
  transition: transform 0.1s ease;
}

.cartoon-btn:active .btn-label {
  transform: scale(0.95);
}

/* ---------- Feature Row ---------- */
.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.feature-item {
  flex: 1;
  background: #ffffff;
  border: 3px solid #1a1a1a;
  border-radius: 24px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  background: #f0f0f0;
}

.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
  color: #1a1a1a;
}

/* Different flat accent colors per feature */
.feature-item:nth-child(1) .feature-icon {
  color: #ff6b6b;
}

.feature-item:nth-child(2) .feature-icon {
  color: #4ecdc4;
}

.feature-item:nth-child(3) .feature-icon {
  color: #ffd93d;
}

.feature-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* ---------- Responsive tweak ---------- */
@media (max-width: 380px) {
  .app-card {
    padding: 24px 16px;
    border-radius: 30px;
  }

  .character {
    width: 140px;
    height: 140px;
  }

  .eye {
    top: 48px;
    width: 18px;
    height: 22px;
  }

  .eye-left {
    left: 36px;
  }

  .eye-right {
    right: 36px;
  }

  .character.blink .eye {
    height: 5px;
    top: 57px;
  }

  .mouth {
    bottom: 36px;
    width: 50px;
    height: 18px;
  }

  .cheek {
    bottom: 42px;
    width: 22px;
    height: 12px;
  }

  .cheek-left {
    left: 14px;
  }

  .cheek-right {
    right: 14px;
  }
}