/* === Reset scroll chování a box model === */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  height: 5.5rem; /* přibližně 88px */
  padding: 0 1.5rem;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}


/* === Logo === */
header a[data-translate="logo_text"] {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

header strong {
  color: white;
}


.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem; /* výška hlavičky */
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 1rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  color: white;
  text-decoration: none;

  display: flex;
  align-items: center;
  height: 100%;
}



/* === Hamburger === */
#menu-toggle {
  position: absolute;
  right: 16px;
  top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}

/* Tři čárky */
#menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* === RESPONSIVITA === */
@media screen and (max-width: 480px) {
  .header-inner {
    flex-direction: column;
  }

  .logo {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

}
#menu-icon {
  width: 24px;
  height: 24px;
  stroke: white;
}

/* === Mobilní menu === */
#mobile-menu {
  position: absolute;
  top: 80px;
  right: 16px;
  width: 250px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;

  padding: 16px;
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.85); /* ✅ tmavé pozadí pro mobilní menu */
  backdrop-filter: blur(8px);      /* volitelné rozmazání pozadí */
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;

  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

#mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#mobile-menu a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  width: 60%;
  padding: 0.5rem 1rem;

  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: white;
  text-decoration: none;

  border: none; /* 🔄 žádný okraj */
  border-radius: 10px;
  background: transparent;

  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); /* ✅ bílá záře */
  transition: all 0.3s ease;
}

#mobile-menu a:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 1); /* větší glow při hoveru */
  transform: scale(1.05);
}

/* === Lang Switcher === */

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.lang-switcher button {
  background: rgba(53, 145, 185, 0);
  border: 1px solid white;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.lang-switcher button:hover {
 box-shadow: 0 0 12px rgba(255, 255, 255, 1); /* větší glow při hoveru */
  transform: scale(1.05);
}



/* === BREAKPOINTY === */

/* Malé telefony (např. iPhone SE) */
@media screen and (max-width: 480px) {
  #mobile-menu {
    width: 90vw;
    right: 5vw;
  }

  header a[data-translate="logo_text"] {
    font-size: 1.2rem;
  }

  #menu-icon {
    width: 20px;
    height: 20px;
  }
}

/* Tablety */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #mobile-menu {
    width: 300px;
  }
}

/* Laptopy / základní desktop */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
  #mobile-menu {
    width: 320px;
    font-size: 1.05rem;
  }
}

/* 1440px a větší (běžné FHD displeje) */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
  header a[data-translate="logo_text"] {
    font-size: 1.8rem;
  }

  #mobile-menu {
    width: 340px;
    font-size: 1.1rem;
  }
}

/* Full HD (1920px) */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
  header a[data-translate="logo_text"] {
    font-size: 2rem;
  }

  #mobile-menu {
    width: 380px;
    font-size: 1.15rem;
  }
}

/* 4K displeje (3840px a více) */
@media screen and (min-width: 2560px) {
  header a[data-translate="logo_text"] {
    font-size: 2.4rem;
  }

  #mobile-menu {
    width: 420px;
    font-size: 1.25rem;
    padding: 24px;
  }

  #menu-icon {
    width: 32px;
    height: 32px;
  }
}

/*login*/

.login-btn,
.logout-btn {
  margin-top: 0.2rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #1fd1f9, #1f8df9);
  color: white;
  font-weight: 500;
  cursor: pointer;
  min-width: auto;
}
