@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

html {
  font-size: 20px;
}



/* === NAVBAR === */
.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 600;
  color: #222 !important;
  text-transform: uppercase;
  background-color: transparent !important;
  position: relative;
  padding: 10px 22px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 4px;
  background-color: #FF9100;
  border-radius: 10px 10px 0 0;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #FF9100 !important;
}

.navbar-nav .nav-link:hover::after {
  width: 60%;
}

.navbar-nav .nav-link.active {
  color: #FF9100 !important;
}

.navbar-nav .nav-link.active::after {
  width: 60%;
}



/* === LOGO === */
.project-logo {
  max-height: 120px !important;
  height: auto !important;
  width: auto !important;
  display: block;
  transform: translateY(-2px);
}

.navbar-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
}

/* === TOOLS (SEARCH + GLOBE) === */
.navbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 160px;
  position: relative;
}

/* === SEARCH BAR === */
.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  overflow: hidden;
  width: 44px; /* len ikona je viditeľná */
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 4px 10px;
  cursor: pointer;
  background: transparent;
}

.search-form.open {
  width: 240px; /* rozšíri sa po kliknutí */
  border-color: #FF9100;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-form input {
  display: none; /* skryté kým nie je open */
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  color: #27364B;
}

.search-form.open input {
  display: block;
}

.search-form input::placeholder {
  color: #999;
}

.search-form .btn {
  background: transparent !important;
  border: none !important;
  color: #27364B;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.search-form .btn:hover {
  color: #FF9100;
}

/* === ORANGE FOCUS === */
.search-form input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

/* === GLOBE ICON === */
.globe-icon {
  font-size: 2rem;
  color: #27364B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  top: -1px; /* jemné dorovnanie na výšku */
  transition: color 0.3s ease;
  transform: translateY(-20%);
}

.globe-icon:hover {
  color: #FF9100;
  transform: translateY(-20%);
}

/* === LANGUAGE POPUP === */
.language-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.language-popup {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  width: min(92vw, 380px);
}

.language-popup h3 {
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #27364B;
  text-align: center;
}

.language-popup .language-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.language-popup .language-options a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.language-popup .language-options a:hover {
  background: #f6f8fb;
  border-color: #FF9100;
}

.flag-icon {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .project-logo {
    max-height: 90px;
    transform: translateY(0);
  }

  .search-form.open {
    width: 100%;
  }
}
