/* ===== Globe Switcher ===== */

/* Globe button in header */
.globe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  margin: 0 0.25rem;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.globe-btn svg {
  width: 2.8em;
  height: 2.8em;
  color: var(--gold);
  filter: drop-shadow(0 0 3px rgba(212,165,32,0.5));
  transition: filter 0.3s;
}

.globe-btn:hover svg,
.globe-btn:focus svg {
  filter: drop-shadow(0 0 6px rgba(212,165,32,0.8));
}

/* Panel */
.globe-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0a2e1b 0%, #0d4a30 100%);
  border-left: 3px solid var(--gold);
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  z-index: 10000;
  padding: 1.5rem;
  font-family: inherit;
  color: var(--pearl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.globe-panel.open {
  display: block !important;
  transform: translateX(0);
}

/* Close button */
.globe-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--pearl);
  font-size: 1.6rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  font-family: inherit;
}

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

/* Section titles */
.globe-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212,165,32,0.3);
}

.globe-section-title:first-of-type {
  margin-top: 2.5rem;
}

/* Language buttons */
.globe-langs,
.globe-more-langs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.globe-lang-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.4rem;
  color: var(--pearl);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.globe-lang-btn:hover {
  background: rgba(212,165,32,0.12);
  border-color: var(--gold);
}

.globe-lang-btn.active {
  background: rgba(212,165,32,0.18);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* Expand button */
.globe-expand-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: none;
  border: 1px dashed rgba(212,165,32,0.4);
  border-radius: 0.4rem;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.globe-expand-btn:hover {
  border-color: var(--gold);
  background: rgba(212,165,32,0.08);
}

.globe-expand-btn.expanded {
  display: none;
}

/* Currency buttons */
.globe-currencies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.globe-currency-btn {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.4rem;
  color: var(--pearl);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.globe-currency-btn:hover {
  background: rgba(212,165,32,0.12);
  border-color: var(--gold);
}

.globe-currency-btn.active {
  background: rgba(212,165,32,0.18);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* Backdrop overlay */
.globe-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.globe-backdrop.open {
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .globe-panel {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
    border-top: 3px solid var(--gold);
  }

  .globe-btn {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
  }
}
