/* Little Light Learners - language UX (first-visit chooser + draggable button) */
/* Loaded by assets/lll-lang.js pages via <link>; markup is built by lll-lang.js. */

#lll-lang-btn {
  position: fixed;
  right: 12px;
  top: 55%;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #a78bfa;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
  font-family: inherit;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
#lll-lang-btn .lll-globe { font-size: 19px; line-height: 1; pointer-events: none; }
#lll-lang-btn .lll-code {
  font-size: 10px;
  font-weight: 800;
  color: #6d28d9;
  letter-spacing: .5px;
  margin-top: 1px;
  pointer-events: none;
}
#lll-lang-btn.lll-dragging { opacity: .85; cursor: grabbing; }

#lll-lang-panel {
  position: fixed;
  z-index: 9001;
  width: 220px;
  max-width: calc(100vw - 16px);
  background: #fff;
  border: 2px solid #a78bfa;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  padding: 6px;
  font-family: inherit;
  box-sizing: border-box;
}
#lll-lang-panel[hidden] { display: none; }

.lll-lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  margin: 4px 0;
  border: 2px solid #e9d5ff;
  border-radius: 999px;
  background: #faf5ff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #4c1d95;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.lll-lang-row:hover, .lll-lang-row:focus-visible { border-color: #a78bfa; background: #f3e8ff; }
.lll-lang-row.lll-current { border-color: #6d28d9; background: #ede9fe; }
.lll-lang-row .lll-flag { font-size: 22px; line-height: 1; }
.lll-lang-row .lll-spacer { flex: 1; }
.lll-lang-row .lll-check { color: #6d28d9; font-weight: 900; }
.lll-lang-row .lll-foryou-tag {
  background: #6d28d9;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

@keyframes lll-lang-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .0); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .45); }
}
.lll-lang-row.lll-foryou {
  border-color: #f59e0b;
  animation: lll-lang-pulse 1.1s ease-in-out 3;
}

#lll-lang-chooser {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: inherit;
}
#lll-lang-chooser[hidden] { display: none; }
@keyframes lll-chooser-pop {
  0% { opacity: 0; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1); }
}
.lll-chooser-card {
  background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 42%, #e0f2fe 100%);
  border: 5px solid #fcd34d;
  border-radius: 2rem;
  max-width: 350px;
  width: 100%;
  padding: 24px 16px 18px;
  text-align: center;
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  animation: lll-chooser-pop .3s ease;
}
.lll-chooser-card h2 {
  font-family: 'Fredoka One', 'Fredoka', sans-serif;
  color: #ff6b6b;
  font-size: 22px;
  margin: 0 30px 4px;
  line-height: 1.2;
}
.lll-chooser-sub {
  margin: 0 6px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.55;
}
.lll-chooser-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fcd34d;
  color: #92400e;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
  z-index: 2;
}
.lll-chooser-close:hover { transform: scale(1.08); }

/* Chooser orbit: 4 flag circles around a center globe, all inside the card. */
.lll-orbit {
  position: relative;
  height: 262px;
  margin-top: 4px;
}
.lll-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fcd34d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  line-height: 1;
  box-sizing: border-box;
}
@keyframes lll-orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.lll-orbit-item {
  position: absolute;
  width: 96px;
  text-align: center;
  animation: lll-orbit-float 3.8s ease-in-out infinite;
}
.lll-pos-tl { left: 0; top: 0; }
.lll-pos-tr { right: 0; top: 0; animation-delay: .7s; }
.lll-pos-bl { left: 0; bottom: 0; animation-delay: 1.4s; }
.lll-pos-br { right: 0; bottom: 0; animation-delay: 2.1s; }
.lll-orbit-circle {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #fde68a;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.lll-orbit-circle[data-lang="en"] { background: #eff6ff; }
.lll-orbit-circle[data-lang="es"] { background: #fff7ed; }
.lll-orbit-circle[data-lang="pt"] { background: #f0fdf4; }
.lll-orbit-circle[data-lang="fr"] { background: #faf5ff; }
.lll-orbit-circle:hover { transform: scale(1.06); }
.lll-orbit-circle:active { transform: scale(.93); }
.lll-orbit-circle.lll-current { border-color: #f59e0b; }
.lll-orbit-circle.lll-foryou {
  border-color: #f59e0b;
  animation: lll-lang-pulse 1.1s ease-in-out 3;
}
.lll-orbit-flag { font-size: 44px; line-height: 1; pointer-events: none; }
.lll-orbit-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  border: 2px solid #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lll-orbit-name {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 800;
  color: #4c1d95;
  line-height: 1.15;
}
.lll-orbit-item .lll-foryou-tag {
  background: #f59e0b;
  margin-top: 3px;
}
