@import url("https://fonts.cdnfonts.com/css/trajan-pro");

/* Correct font family name */
* {
  font-family: "Trajan Pro", serif;
}

/* Navigation */
.navbar {
  padding: 12px 0;
  background-color: rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 8px 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--light-color);
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.logo-text {
  margin-left: 8px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Links */
.nav-link {
  color: var(--light-color) !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px !important;
  letter-spacing: 0.03em;
  text-transform: none;
  border-radius: 30px;
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: var(--secondary-color);
}

.btn-login,
.btn-logout {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  padding: 4px 10px !important;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color) !important;
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.btn-language {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.btn-language:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  min-width: 140px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  font-size: 0.85rem;
  padding: 6px 12px;
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

.flag-icon {
  width: 16px;
  height: 12px;
  border-radius: 2px;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .logo-text {
    font-size: 0.9rem;
  }
  .navbar-brand img {
    width: 40px;
    height: 40px;
  }
}

/* === Mobile polish: make actions look like normal items === */
@media (max-width: 991.98px) {
  /* Collapse panel look */
  .navbar-collapse.show {
    background: rgba(0, 0, 0, 0.92);
    margin: 8px -0.75rem 0;
    border-radius: 8px;
    padding: 8px 12px;
  }

  /* Regular nav items: compact, no decorative underline */
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    font-size: 0.95rem;
    letter-spacing: 0;
    border-radius: 0;
    position: static;
  }
  .navbar-nav .nav-link::after {
    display: none !important;
  }

  /* Login / Logout: remove button styling on mobile */
  .btn-login,
  .btn-logout {
    display: block;
    width: 100%;
    margin: 4px 0 2px;
    padding: 10px 0 !important;
    font-size: 0.95rem;
    border: 0 !important; /* no yellow box */
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--light-color) !important;
    text-align: left;
  }

  /* Language switcher: look like a plain list row */
  .language-switcher {
    width: 100%;
  }
  .btn-language {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
    font-size: 0.95rem;
    border: 0; /* remove gray pill */
    border-radius: 0;
    background: transparent;
  }

  /* Keep dropdown inside the panel, full width */
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .navbar-nav .dropdown-item {
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--light-color);
  }
  .navbar-nav .dropdown-item.active {
    background: transparent;
    color: var(--secondary-color);
  }

  /* Flag size + code visibility */
  .flag-icon {
    width: 18px;
    height: 13px;
    margin-right: 0.25rem;
  }
  /* If you want *flag-only* on mobile, uncomment: */
  /* .btn-language .lang-code { display: none; } */

  /* Smaller brand */
  .navbar-brand img {
    width: 36px;
    height: 36px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
}
