/* === PlayLab Theme - Main CSS === */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

:root {
  --red:    #E63329;
  --green:  #3AB54A;
  --blue:   #2176C8;
  --yellow: #F7B731;
  --orange: #F5821F;
  --white:  #FFFFFF;
  --light:  #F8F9FA;
  --dark:   #1A1A2E;
  --text:   #2d2d2d;
  --muted:  #6c757d;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  transition: color 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 3px;
  border-radius: 2px;
  background: var(--red);
  transition: width 0.25s;
}

.site-nav a:hover { color: var(--blue); }
.site-nav a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--blue);
  color: var(--white);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #fff9f0 0%, #f0f7ff 50%, #f0fff4 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(247,183,49,0.12);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(58,181,74,0.10);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero h1 span.red   { color: var(--red); }
.hero h1 span.green { color: var(--green); }
.hero h1 span.blue  { color: var(--blue); }

.hero p {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
}

.badge-pill.amazon {
  background: var(--yellow);
  color: #5a3800;
}

.badge-pill.quality {
  background: var(--green);
  color: var(--white);
}

.badge-pill.kids {
  background: var(--blue);
  color: var(--white);
}

/* === PRODUCTS SECTION === */
.products-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--dark);
  line-height: 1.2;
}

.section-header h2 em {
  font-style: normal;
  color: var(--blue);
}

/* Color stripe under section title */
.color-stripe {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.color-stripe span {
  width: 32px; height: 5px;
  border-radius: 3px;
}

.cs-red    { background: var(--red); }
.cs-yellow { background: var(--yellow); }
.cs-green  { background: var(--green); }
.cs-blue   { background: var(--blue); }

/* === PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* === PRODUCT CARD === */
.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.product-card.color-red   { border-top: 5px solid var(--red); }
.product-card.color-green { border-top: 5px solid var(--green); }
.product-card.color-blue  { border-top: 5px solid var(--blue); }
.product-card.color-yellow { border-top: 5px solid var(--yellow); }

.card-image-wrap {
  background: var(--light);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}

.card-image-wrap img {
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Star rating */
.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 16px;
  color: #ddd;
}

.star.filled { color: var(--yellow); }
.star.half   { color: var(--yellow); opacity: 0.5; }

.rating-num {
  font-weight: 800;
  font-size: 14px;
  color: var(--dark);
}

.rating-count {
  font-size: 13px;
  color: var(--muted);
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1;
}

/* Variation pills */
.card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.variant-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--light);
  color: var(--muted);
  border: 1.5px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.15s;
}

.variant-pill:hover,
.variant-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Amazon button */
.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: #5a3800;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  width: 100%;
}

.btn-amazon:hover {
  background: #e5a800;
  transform: scale(1.02);
}

.btn-amazon svg {
  width: 20px; height: 20px;
  fill: #5a3800;
  flex-shrink: 0;
}

/* === WHY PLAYLAB SECTION === */
.why-section {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  padding: 80px 24px;
  color: var(--white);
  text-align: center;
}

.why-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.why-section .section-tag { color: var(--yellow); }

.why-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}

.why-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.why-icon.red    { background: rgba(230,51,41,0.25); }
.why-icon.green  { background: rgba(58,181,74,0.25); }
.why-icon.blue   { background: rgba(33,118,200,0.25); }
.why-icon.yellow { background: rgba(247,183,49,0.25); }

.why-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--yellow); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* === MOBILE === */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-inner { padding: 0 16px; }
  .hero { padding: 48px 16px; }
  .products-section { padding: 48px 16px; }
  .why-section { padding: 48px 16px; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeUp 0.5s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }

/* === Language hidden === */
[data-lang] { display: none; }
[data-lang].active { display: block; }
[data-lang-inline] { display: none; }
[data-lang-inline].active { display: inline; }
