/* ── Uşaqlar üçün robototexnika səhifəsi (/robototexnika) ──
   Brend sistemi: Poppins, #5b03a3 / #8c00ff bənövşəyi, #8eff01 neon yaşıl,
   #e7dfe5 açıq fon, #090909 tünd fon. Uşaq üçün: daha yumru formalar, üzən dairələr. */

.robo-page {
  --robo-purple: #5b03a3;
  --robo-violet: #8c00ff;
  --robo-green: #8eff01;
  --robo-card: #ffffff;
  --robo-card-soft: #f6f1f7;
  --robo-ink: #111111;
  --robo-muted: #3b3737;
  --robo-line: rgba(91, 3, 163, 0.14);
  --robo-accent: #5b03a3;
  --robo-accent-soft: rgba(140, 0, 255, 0.1);
  /* robot illüstrasiyası */
  --robo-bot-body: #8c00ff;
  --robo-bot-body-dark: #5b03a3;
  --robo-bot-face: #ffffff;
  --robo-bot-eye: #1a0b2e;
  --robo-bot-glow: #8eff01;
  position: relative;
  overflow: hidden;
  overflow: clip;
  color: var(--robo-ink);
}

[data-theme="dark"] .robo-page {
  --robo-card: #120d18;
  --robo-card-soft: #1a1224;
  --robo-ink: #ffffff;
  --robo-muted: #d6d6d6;
  --robo-line: rgba(255, 255, 255, 0.1);
  --robo-accent: #8eff01;
  --robo-accent-soft: rgba(142, 255, 1, 0.1);
  --robo-bot-face: #e7dfe5;
  --robo-bot-eye: #090909;
}

/* ── Bölmə ritmi: ~48px mobil / ~80px desktop bölmələr arası ── */
.robo-section {
  position: relative;
  padding: 24px 0;
}
@media (min-width: 768px) {
  .robo-section { padding: 32px 0; }
}
@media (min-width: 1024px) {
  .robo-section { padding: 40px 0; }
}

.robo-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .robo-container { padding: 0 24px; }
}

.robo-h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--robo-ink);
}
@media (min-width: 768px) {
  .robo-h2 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .robo-h2 { font-size: 32px; }
}

.robo-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--robo-muted);
}
@media (min-width: 1024px) {
  .robo-lead { font-size: 16px; }
}

/* ── Üzən dekorativ dairələr ── */
.robo-blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  animation: robo-float 9s ease-in-out infinite;
}
.robo-blob--purple { background: radial-gradient(circle at 30% 30%, rgba(140, 0, 255, 0.35), rgba(140, 0, 255, 0) 70%); }
.robo-blob--green { background: radial-gradient(circle at 30% 30%, rgba(142, 255, 1, 0.35), rgba(142, 255, 1, 0) 70%); }
.robo-blob--ring { border: 3px dashed rgba(140, 0, 255, 0.25); background: transparent; }
.robo-blob--dot { background: var(--robo-green); opacity: 0.85; }
.robo-blob--dot-purple { background: var(--robo-violet); opacity: 0.8; }
[data-theme="dark"] .robo-blob--ring { border-color: rgba(142, 255, 1, 0.22); }
[data-theme="dark"] .robo-blob--green { opacity: 0.45; }
[data-theme="dark"] .robo-blob--purple { opacity: 0.75; }
.robo-blob--slow { animation-duration: 13s; }
.robo-blob--delay { animation-delay: -4s; }

@keyframes robo-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@keyframes robo-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes robo-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
@keyframes robo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ── Hero ── */
.robo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--robo-line);
  box-shadow: 0 4px 4px 0 rgba(140, 0, 255, 0.12);
  font-size: 13px;
  font-weight: 500;
  color: var(--robo-purple);
}
[data-theme="dark"] .robo-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--robo-green);
}
.robo-badge__icon {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--robo-green);
  color: #111;
}

.robo-hero-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--robo-ink);
}
@media (min-width: 640px) { .robo-hero-title { font-size: 36px; } }
@media (min-width: 1024px) { .robo-hero-title { font-size: 44px; } }

.robo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  background: var(--robo-card);
  color: var(--robo-purple);
  border: 1.5px solid rgba(140, 0, 255, 0.25);
  white-space: nowrap;
}
.robo-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--robo-violet);
}
.robo-chip:nth-child(even)::before { background: var(--robo-green); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
[data-theme="dark"] .robo-chip {
  color: #fff;
  border-color: rgba(142, 255, 1, 0.3);
}

.robo-hero-art {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.robo-hero-art__disc {
  position: absolute;
  inset: 6%;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #efe4f6 45%, #decaeb 100%);
  box-shadow: 0 20px 50px -10px rgba(140, 0, 255, 0.35), inset 0 -10px 30px rgba(91, 3, 163, 0.12);
}
[data-theme="dark"] .robo-hero-art__disc {
  background: radial-gradient(circle at 35% 30%, #2a1446 0%, #1a0d2e 55%, #0f0819 100%);
  box-shadow: 0 20px 60px -10px rgba(140, 0, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.robo-hero-art__photo {
  position: absolute;
  inset: 6%;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(140, 0, 255, 0.4);
  border: 6px solid #fff;
}
[data-theme="dark"] .robo-hero-art__photo { border-color: #1a1224; }
.robo-hero-art__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.robo-hero-art__bot {
  position: absolute;
  inset: 12% 14% 8%;
  animation: robo-bob 5s ease-in-out infinite;
}
.robo-hero-art__bot svg { width: 100%; height: 100%; overflow: visible; }
.robo-eye { transform-box: fill-box; transform-origin: center; animation: robo-blink 4.5s infinite; }
.robo-led { animation: robo-pulse 1.8s ease-in-out infinite; }

/* Hero şəkli ətrafındakı kiçik "stiker" kartlar */
.robo-sticker {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: var(--robo-card);
  box-shadow: 0 8px 24px -6px rgba(91, 3, 163, 0.3);
  border: 1px solid var(--robo-line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--robo-ink);
  white-space: nowrap;
  animation: robo-float 7s ease-in-out infinite;
}
.robo-sticker__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .robo-sticker { font-size: 11.5px; padding: 6px 10px 6px 6px; }
  .robo-sticker__icon { width: 26px; height: 26px; }
}

/* ── İkon nişanları ── */
.robo-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.robo-icon svg { width: 26px; height: 26px; }
.robo-icon--purple { background: linear-gradient(135deg, #8c00ff 0%, #5b03a3 100%); color: #fff; box-shadow: 0 6px 14px -4px rgba(140, 0, 255, 0.55); }
.robo-icon--green { background: #8eff01; color: #111; box-shadow: 0 6px 14px -4px rgba(98, 180, 0, 0.55); }
.robo-icon--soft { background: var(--robo-accent-soft); color: var(--robo-accent); }

/* ── Kartlar ── */
.robo-card {
  position: relative;
  background: var(--robo-card);
  border-radius: 26px;
  border: 1px solid var(--robo-line);
  box-shadow: 0 4px 4px 0 rgba(140, 0, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.robo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -6px rgba(140, 0, 255, 0.4);
}
[data-theme="dark"] .robo-card {
  box-shadow: 0 4px 4px 0 rgba(140, 0, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .robo-card:hover {
  box-shadow: 0 10px 30px -6px rgba(142, 255, 1, 0.25);
}

.robo-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .robo-benefits { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .robo-benefits { grid-template-columns: repeat(4, 1fr); } }

.robo-benefit {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.robo-benefit::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  background: var(--robo-accent-soft);
}
.robo-benefit h3 { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--robo-ink); }
.robo-benefit p { font-size: 14px; line-height: 1.65; color: var(--robo-muted); }

/* ── Proqramlar ── */
.robo-programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
@media (max-width: 639.98px) {
  .robo-programs { grid-template-columns: 1fr; gap: 16px; }
}
.robo-program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
}
.robo-program__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
}
.robo-program__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639.98px) {
  .robo-program__media { aspect-ratio: 16 / 8; }
}
.robo-program__art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.robo-program__art svg { width: 36%; max-width: 110px; height: auto; position: relative; z-index: 1; }
.robo-program__art::before,
.robo-program__art::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
}
.robo-program__art::before { width: 70%; aspect-ratio: 1; left: -18%; top: -28%; background: rgba(255, 255, 255, 0.14); }
.robo-program__art::after { width: 40%; aspect-ratio: 1; right: -10%; bottom: -16%; background: rgba(255, 255, 255, 0.1); }
.robo-art-1 { background: linear-gradient(135deg, #8c00ff 0%, #5b03a3 100%); color: #fff; }
.robo-art-2 { background: linear-gradient(135deg, #a8ff3e 0%, #6fd400 100%); color: #1a0b2e; }
.robo-art-3 { background: linear-gradient(135deg, #27154c 0%, #5b03a3 100%); color: #8eff01; }
.robo-art-4 { background: linear-gradient(135deg, #decaeb 0%, #b98ee0 100%); color: #5b03a3; }
.robo-art-2::before, .robo-art-2::after { background: rgba(255, 255, 255, 0.25); }

.robo-age {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #8eff01;
  color: #111;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.robo-program__body {
  padding: 16px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.robo-program__body h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--robo-ink); }
.robo-program__body p { font-size: 14px; line-height: 1.65; color: var(--robo-muted); }
.robo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.robo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--robo-card-soft);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--robo-ink);
}
.robo-meta svg { width: 15px; height: 15px; color: var(--robo-violet); }
[data-theme="dark"] .robo-meta svg { color: var(--robo-green); }
.robo-program__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  height: 44px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--robo-purple);
  background: var(--robo-accent-soft);
  border: 1.5px solid rgba(140, 0, 255, 0.2);
  transition: background 0.3s ease, color 0.3s ease;
}
.robo-program__link:hover { background: #8c00ff; color: #fff; }
[data-theme="dark"] .robo-program__link { color: #8eff01; border-color: rgba(142, 255, 1, 0.25); }
[data-theme="dark"] .robo-program__link:hover { background: #8eff01; color: #111; }

/* ── Addımlar ── */
.robo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}
@media (min-width: 640px) { .robo-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) {
  .robo-steps { grid-template-columns: repeat(4, 1fr); }
  .robo-steps::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 34px;
    border-top: 3px dashed rgba(140, 0, 255, 0.3);
    z-index: 0;
  }
  [data-theme="dark"] .robo-steps::before { border-top-color: rgba(142, 255, 1, 0.25); }
}
.robo-step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .robo-step { flex-direction: column; align-items: center; text-align: center; }
}
.robo-step__num {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8c00ff 0%, #5b03a3 100%);
  box-shadow: 0 0 0 6px var(--robo-page-bg, #e7dfe5), 0 8px 20px -4px rgba(140, 0, 255, 0.55);
}
.robo-step:nth-child(even) .robo-step__num { background: #8eff01; color: #111; box-shadow: 0 0 0 6px var(--robo-page-bg, #e7dfe5), 0 8px 20px -4px rgba(98, 180, 0, 0.5); }
[data-theme="dark"] .robo-step__num { --robo-page-bg: #090909; }
.robo-step h3 { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--robo-ink); margin-bottom: 6px; }
.robo-step p { font-size: 14px; line-height: 1.6; color: var(--robo-muted); }

/* ── Qalereya ── */
.robo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
}
.robo-gallery--feature .robo-gallery__item:first-child { grid-column: span 2; }
@media (min-width: 768px) {
  .robo-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
  .robo-gallery--feature .robo-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
}
.robo-gallery__item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 4px 0 rgba(140, 0, 255, 0.2);
}
.robo-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.robo-gallery__item:hover img { transform: scale(1.05); }
.robo-gallery__caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a0b2e;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="dark"] .robo-gallery__caption { background: rgba(9, 9, 9, 0.8); color: #fff; }
.robo-gallery__art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.robo-gallery__art svg { width: 34%; max-width: 110px; height: auto; position: relative; z-index: 1; }
.robo-gallery--feature .robo-gallery__item:first-child .robo-gallery__art svg { width: 30%; max-width: 160px; }
.robo-gallery__art::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 9999px;
  right: -25%;
  top: -30%;
  background: rgba(255, 255, 255, 0.14);
}

/* ── Son CTA zolağı ── */
.robo-cta {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #27154c 0%, #3a0d6e 50%, #181127 100%);
  box-shadow: 0 8px 30px rgba(34, 7, 76, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 20px;
  color: #fff;
}
@media (min-width: 768px) { .robo-cta { padding: 48px 56px; } }
.robo-cta h2 { font-size: 24px; line-height: 1.3; font-weight: 600; color: #fff; }
@media (min-width: 768px) { .robo-cta h2 { font-size: 28px; } }
@media (min-width: 1024px) { .robo-cta h2 { font-size: 32px; } }
.robo-cta p { font-size: 15px; line-height: 1.7; color: #d0daf5; }

/* Böyük, "şirin" CTA düyməsi (brendin konik-gradient haşiyəli pill düyməsi əsasında) */
.robo-btn-inner {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .robo-blob,
  .robo-hero-art__bot,
  .robo-sticker,
  .robo-eye,
  .robo-led { animation: none !important; }
}

/* Robot illüstrasiyasının rəngləri (tema ilə dəyişir) */
.rb-b { fill: var(--robo-bot-body); }
.rb-bd { fill: var(--robo-bot-body-dark); }
.rb-f { fill: var(--robo-bot-face); }
.rb-e { fill: var(--robo-bot-eye); }
.rb-g { fill: var(--robo-bot-glow); }
.rb-s-bd { stroke: var(--robo-bot-body-dark); }
.rb-s-e { stroke: var(--robo-bot-eye); }
