/* small helpers; main styling uses Tailwind classes */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }


/* Theme Switch (Uiverse.io JustCode14) */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #2a2a2a;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}
.slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 8px -4px 0px 0px #fff;
}
.switch input:checked + .slider {
  background-color: #00a6ff;
}
.switch input:checked + .slider:before {
  transform: translateX(1.8em);
  box-shadow: inset 15px -4px 0px 15px #ffcf48;
}
.star {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  width: 5px;
  height: 5px;
  transition: all 0.4s;
}
.star_1 { left: 2.5em; top: 0.5em; }
.star_2 { left: 2.2em; top: 1.2em; }
.star_3 { left: 3em;   top: 0.9em; }
.switch input:checked ~ .slider .star { opacity: 0; }
.cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 0;
  transition: all 0.4s;
}
.switch input:checked ~ .slider .cloud { opacity: 1; }


/* Mobile Burger (Tailwind-independent) */
.app-burger {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 16px;
  z-index: 90;
  color: #121317;
}
.dark .app-burger { color: #ffffff; }

.app-burger__input {
  display: none;
}

.app-burger__icon {
  height: 3em;
  display: block;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.app-burger__line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.app-burger__line--top-bottom {
  stroke-dasharray: 12 63;
}

.app-burger__input:checked + .app-burger__icon {
  transform: rotate(-45deg);
}

.app-burger__input:checked + .app-burger__icon .app-burger__line--top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}


/* Mobile menu overlay (Tailwind-independent) */
.app-mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}
.app-mobilemenu.is-open {
  display: block;
}
.app-mobilemenu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.app-mobilemenu__panel {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.app-mobilemenu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.app-mobilemenu__link {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}
@media (min-width: 640px) {
  .app-mobilemenu__link { font-size: 32px; }
}
.app-mobilemenu__link:hover {
  opacity: 0.85;
}

/* Burger stays above overlay */
.app-burger { z-index: 90; }
