/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
/* GTranslate - Globalni stilovi */
.gtranslate_wrapper {
  position: relative;
  z-index: 9999;
  min-height: 40px; /* Obavezno za mobilni prikaz */
}

.gt_container-flags {
  min-width: 150px;
  image-rendering: -webkit-optimize-contrast;
  transform: scale(1); /* Resetujemo scale za mobilne prikaze */
}

.gt_flag {
  background-size: contain !important;
  transition: transform 0.2s ease; /* Dodajemo animaciju za hover */
}

/* Mobilne prilagodbe */
@media (max-width: 767px) {
  .gtranslate_wrapper {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
    margin: -1.8rem 0 0.5rem;
    clear: both;
  }

  .gt_container-flags {
    display: flex !important;
    flex-wrap: nowrap; /* Menjamo u nowrap za horizontalni scroll */
    gap: 3px;
    overflow-x: auto !important;
    padding-bottom: 5px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .gt_flag {
    width: 24px !important;
    height: 24px !important;
    margin: 0 2px !important;
  }

  .gt_flag:hover {
    transform: scale(1.15); /* Hover efekat */
    z-index: 1;
  }

  /* Repozicioniranje ispod logotipa */
  #top-bar + #header {
    margin-top: 40px;
  }
}

/* Progresivno smanjenje za manje ekrane */
@media (max-width: 480px) {
  .gt_flag {
    width: 22px !important;
    height: 22px !important;
  }
}

@media (max-width: 380px) {
  .gt_container-flags {
    transform: scale(0.95); /* Finije smanjenje */
    margin-left: -5px;
  }

  .gt_flag {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 320px) {
  .gt_flag {
    width: 18px !important;
    height: 18px !important;
  }

  .gt_container-flags {
    gap: 1px;
  }
}

/* Scrollbar customizacija */
.gt_container-flags::-webkit-scrollbar {
  height: 2px;
  background: rgba(0,0,0,0.1);
}

.gt_container-flags::-webkit-scrollbar-thumb {
  background: #FF8600; /* Boja teme */
  border-radius: 2px;
}

/* Sakrivanje teksta za mobilne prikaze */
@media (hover: none) and (max-width: 767px) {
  .gt_container-flags a::after {
    display: none !important;
  }
}
.gt_container-flags {
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

