/* ═══════════════════════════════════════════════════
   GeoShell Navbar — Bílá hlavička
   Sjednocená s forum.geocaching.cz a Moje mapy
   ═══════════════════════════════════════════════════ */

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

/* ── Header ── */
.gs-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gs-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Accent proužek pod hlavičkou ── */
.gs-header-accent {
  height: 3px;
  background: linear-gradient(90deg, #EE7F01 0%, #EE7F01 60%, #254F53 100%);
}

/* ── Logo ── */
.gs-header-logo {
  flex-shrink: 0;
  line-height: 0;
  display: block;
}

.gs-header-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* ── Navigace ── */
.gs-header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.gs-header-nav a {
  color: #5E7678;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gs-header-nav a:hover {
  color: #1B2D2F;
  background: #F5F3EF;
}

.gs-header-nav a.is-active {
  color: #EE7F01;
  font-weight: 600;
  background: #FFF4E8;
}

/* ── Actions ── */
.gs-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search */
.gs-header-search {
  display: flex;
  align-items: center;
  background: #F5F3EF;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.gs-header-search:focus-within {
  background: #fff;
  border-color: #E4E2DD;
  box-shadow: 0 0 0 3px rgba(238, 127, 1, 0.08);
}

.gs-header-search input {
  background: none;
  border: none;
  color: #1B2D2F;
  font-size: 13px;
  padding: 8px 0 8px 14px;
  width: 150px;
  outline: none;
  font-family: inherit;
}

.gs-header-search input::placeholder {
  color: #99ADAF;
}

.gs-header-search button {
  background: none;
  border: none;
  color: #99ADAF;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.gs-header-search button:hover {
  color: #EE7F01;
}

/* GC Rádce — kompaktní kompas */
.gs-header-radce {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EE7F01;
  color: #fff !important;
  text-decoration: none !important;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.gs-header-radce:hover {
  background: #D97200;
}

.gs-header-radce svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Hamburger ── */
.gs-header-burger {
  display: none;
  background: none;
  border: none;
  color: #254F53;
  padding: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 8px;
  transition: background 0.15s;
}

.gs-header-burger:hover {
  background: #F5F3EF;
}

.gs-header-burger svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 900px) {
  .gs-header-search input {
    width: 100px;
  }
  .gs-header-nav a {
    padding: 7px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .gs-header-inner {
    padding: 0 12px;
    height: 52px;
    gap: 8px;
    position: relative;
  }

  /* Hamburger vlevo */
  .gs-header-burger {
    display: flex;
    align-items: center;
    order: 1;
    padding: 8px;
    flex-shrink: 0;
  }

  /* Logo uprostřed — menší */
  .gs-header-logo {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .gs-header-logo img {
    height: 34px;
  }

  /* Actions vpravo */
  .gs-header-actions {
    order: 3;
    gap: 6px;
  }

  /* Search — SCHOVAT na mobilu */
  .gs-header-search {
    display: none;
  }

  /* GC Rádce — jen ikona, menší */
  .gs-radce-label {
    display: none;
  }

  .gs-header-radce {
    padding: 7px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gs-header-radce svg {
    width: 18px;
    height: 18px;
  }

  /* Login — jen ikona */
  .gs-login-label {
    display: none;
  }

  .gs-header-login {
    padding: 7px;
    border-radius: 50%;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobilní menu */
  .gs-header-nav {
    display: none;
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 8px 0;
    z-index: 9998;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #EE7F01, #254F53) 1;
  }

  .gs-header-nav.is-open {
    display: flex;
  }

  .gs-header-nav a {
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 0;
    border-bottom: 1px solid #F0EEE9;
  }

  .gs-header-nav a.is-active {
    color: #EE7F01;
    background: #FFF8F0;
    font-weight: 600;
    border-left: 3px solid #EE7F01;
    padding-left: 17px;
  }

  body.gs-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .gs-header-logo img {
    height: 32px;
  }
}

@media (max-width: 380px) {
  .gs-header-logo img {
    height: 30px;
  }

  .gs-header-radce {
    width: 30px;
    height: 30px;
    padding: 5px;
  }

  .gs-header-login {
    width: 30px;
    height: 30px;
    padding: 5px;
  }
}

/* ── Login / Avatar ── */
.gs-header-user {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.gs-header-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 2px solid #E4E2DD;
  transition: border-color 0.15s;
}

.gs-header-user:hover .gs-header-avatar {
  border-color: #EE7F01;
}

.gs-header-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5E7678;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #E4E2DD;
  transition: all 0.15s;
}

.gs-header-login:hover {
  color: #1B2D2F;
  border-color: #99ADAF;
  background: #F5F3EF;
}

.gs-header-login svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .gs-login-label {
    display: none;
  }
  .gs-header-login {
    padding: 6px;
    border-radius: 50%;
    border: none;
  }
}
