/* ============================================
   Apple-style Language Banner — lang-banner.css
   ============================================ */

#lang-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1d1d1f;
  border-bottom: 0.5px solid #3a3a3c;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  min-height: 52px;
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: #f5f5f7;
  box-sizing: border-box;
  animation: lbSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes lbSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

#lang-banner.lb-hiding {
  animation: lbSlideUp 0.3s cubic-bezier(0.55, 0, 1, 0.45) both;
}

@keyframes lbSlideUp {
  to { transform: translateY(-100%); opacity: 0; }
}

.lb-text {
  flex: 1;
  color: #f5f5f7;
  line-height: 1.45;
}

.lb-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #2c2c2e;
  border: 0.5px solid #48484a;
  border-radius: 980px;
  padding: 0 32px 0 12px;
  height: 34px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lb-check {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex-shrink: 0;
  color: #f5f5f7;
}

.lb-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #f5f5f7;
  cursor: pointer;
  outline: none;
}

/* Oprava barvy option v některých prohlížečích */
.lb-select option {
  background: #2c2c2e;
  color: #f5f5f7;
}

.lb-chevron {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #aeaeb2;
  width: 10px;
  height: 10px;
}

.lb-btn {
  background: #f5f5f7;
  color: #1d1d1f;
  border: none;
  border-radius: 980px;
  padding: 0 18px;
  height: 34px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.lb-btn:hover {
  background: #e0e0e2;
}

.lb-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aeaeb2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.15s ease;
  padding: 0;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Odsazení obsahu webu, aby banner nepřekrýval hlavičku */
body.lang-banner-visible {
  padding-top: 52px;
}

/* Responzivní — na mobilu skryj text */
@media (max-width: 680px) {
  .lb-text {
    display: none;
  }
  #lang-banner {
    gap: 10px;
    padding: 0 14px;
  }
}
