/* Prepinac jazyku - vlajky v pravem hornim rohu kazde stranky */
/* Bez diakritiky v komentarich */

.lang-switch {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-switch .lang-flag {
  width: 30px;
  height: 24px;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.lang-switch .lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
}

.lang-switch .lang-flag:hover,
.lang-switch .lang-flag:focus-visible {
  opacity: 1;
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-switch .lang-flag.active {
  opacity: 1;
  border-color: var(--color-accent, #0abab5);
  box-shadow: 0 0 0 1px var(--color-accent, #0abab5) inset;
}

@media (max-width: 480px) {
  .lang-switch {
    top: 6px;
    right: 6px;
    gap: 3px;
    padding: 3px;
  }
  .lang-switch .lang-flag {
    width: 26px;
    height: 20px;
    padding: 3px 4px;
  }
}

@media (max-width: 360px) {
  .lang-switch .lang-flag {
    width: 22px;
    height: 18px;
    padding: 2px 3px;
  }
}

/* Aby prepinac nepretekal s textem na podstrankach */
body:not(.has-hero) .page {
  padding-top: 56px;
}
