/* ============================================================
   Geotehnologija.mk — MK/EN прекинувач за јазик (споделен на сите страници)
   ============================================================ */

/* Спречи FOUC кај корисниците што претходно избрале EN */
html.geot-switching body {
  opacity: 0;
  animation: geotReveal 0.4s ease 1.1s forwards;
}

@keyframes geotReveal {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.geot-switching body {
    animation: none;
    opacity: 1;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.lang-switch .ls-btn {
  appearance: none;
  border: 0;
  outline: none;
  background: transparent;
  color: #cfe0f2;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.lang-switch .ls-btn:hover:not(.active) {
  color: #ffffff;
}

.lang-switch .ls-btn.active {
  background: #ffffff;
  color: #123a7a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

/* Админ копче (горе десно, на сите портал-страници) */
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f0d36d;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.admin-link:hover {
  background: linear-gradient(135deg, #d4af37, #8e6b12);
  color: #ffffff;
  transform: translateY(-1px);
}

/* AI Професор копче (отворено, без најава — на сите страници) */
.prof-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(47, 128, 237, 0.14);
  border: 1px solid rgba(77, 168, 255, 0.42);
  color: #9ed4ff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.prof-link:hover {
  background: linear-gradient(135deg, #2f80ed, #7b61ff);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.35);
}

/* ---------- Мобилен режим (споделено на сите страници) ---------- */
body {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 720px) {
  /* Хоризонтално лизгачка навигација без скролбар */
  .site-header .nav,
  .site-header .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding-bottom: 3px;
  }

  .site-header .nav::-webkit-scrollbar,
  .site-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav a,
  .site-header .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Header-контролите на свои редови */
  .header-right {
    width: 100%;
    justify-content: center;
  }

  .header-right .nav,
  .header-right .site-nav {
    order: -1;
  }

  .lang-switch,
  .admin-link,
  .prof-link {
    flex: 0 0 auto;
  }

  .lang-switch .ls-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .admin-link {
    padding: 8px 14px;
  }

  .prof-link {
    padding: 8px 14px;
  }
}

@media (max-width: 640px) {
  .lang-switch .ls-btn {
    padding: 8px 12px;
  }

  .admin-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .prof-link {
    padding: 8px 12px;
    font-size: 12px;
  }
}