/* ========================================
   LANGUAGE SWITCHER CZ / SK
   ======================================== */

/* Hlavní styling - v .top-navigation-tools lišťe */
.custom-language-switcher {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  background: transparent;
  transition: all 0.3s ease;
  vertical-align: middle;
  margin-right: 15px;
}

/* Když je v .top-navigation-tools */
.top-navigation-tools .custom-language-switcher {
  margin-right: 20px;
  margin-left: 0;
}

.lang-option {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: 2px solid transparent;
}

.lang-option:hover {
  background: rgba(150, 150, 150, 0.15);
  text-decoration: none;
  transform: scale(1.05);
}

.lang-option.active {
  background: rgba(150, 150, 150, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(150, 150, 150, 0.3);
}

/* Oranžová vodorovná čárka pod aktivní vlajkou */
.lang-option.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #ff6600;
  border-radius: 2px;
}

.flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  transition: transform 0.3s ease;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-option:hover .flag-icon {
  transform: scale(1.1);
}

.lang-label {
  display: none !important; /* Jen vlajky, bez textu */
}

/* Responzivní úpravy */
@media (max-width: 768px) {
  .custom-language-switcher {
    gap: 6px;
  }

  .flag-icon {
    width: 20px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .custom-language-switcher {
    gap: 4px;
  }

  .flag-icon {
    width: 18px;
    height: 12px;
  }
}

/* Animace při přepnutí */
@keyframes langSwitch {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.lang-option.active .flag-icon {
  animation: langSwitch 0.4s ease;
}

/* Dark mode support - VYPNUTO */
@media (prefers-color-scheme: dark) {
  .custom-language-switcher {
    background: transparent !important;
  }

  .lang-option {
    background: transparent !important;
  }

  .lang-option:hover {
    background: transparent !important;
  }

  .lang-option.active {
    background: transparent !important;
  }
}

/* Tooltip efekt - VYPNUTÝ pro kompaktní verzi */
.top-navigation-contacts .lang-option::before {
  display: none !important;
}

.lang-option::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.lang-option:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}
