/* =============================================
   Dragon Dojo — GTranslate Widget Styles
   gtranslate.io · float.js · flag_style: "3d"
   ============================================= */

/* ── CSS Variables (mirrors site tokens) ── */
:root {
  --dd-bg:    #0a0808;
  --dd-bg-s:  #0e0b0b;
  --dd-bg-c:  #141010;
  --dd-text:  #ede8e8;
  --dd-muted: #8a8080;
  --dd-red:   #c02020;
  --dd-border: rgba(237,232,232,0.10);
}
body.dd-light {
  --dd-bg:    #f5f2f2;
  --dd-bg-s:  #ece9e9;
  --dd-bg-c:  #ffffff;
  --dd-text:  #1a1010;
  --dd-muted: #6a5f5f;
  --dd-border: rgba(26,16,16,0.10);
}

/* ── Wrapper positioning ── */
.gtranslate_wrapper {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
}

/* The float switcher writes "position:fixed;bottom:20px;left:20px" as an inline
   style, which sits on top of the cookie button (bottom:16px, 33px tall, so it
   reaches 49px). Lift the switcher clear of it — !important is needed to beat
   the inline style. Keep in step with .dd-cookie-btn in site.css. */
#gt_float_wrapper {
  bottom: 61px !important;
}

/* ── Float switcher shell ── */
.gt_float_switcher {
  font-family: 'Barlow', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}

/* ── Selected / trigger button ── */
.gt_float_switcher .gt-selected {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 13px 7px 10px !important;
  background: var(--dd-bg-c) !important;
  border: 1px solid var(--dd-border) !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28) !important;
}
.gt_float_switcher .gt-selected:hover {
  border-color: var(--dd-red) !important;
  background: var(--dd-bg-s) !important;
}

/* ── Language code label ── */
.gt_float_switcher .gt-lang-code {
  color: var(--dd-text) !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
}

/* ── Chevron arrow ── */
.gt_float_switcher .gt_float_arrow {
  border-color: var(--dd-red) transparent transparent transparent !important;
  margin-left: 2px !important;
}
.gt_float_switcher.open .gt_float_arrow {
  border-color: transparent transparent var(--dd-red) transparent !important;
}

/* ── Dropdown panel ── */
.gt_float_switcher .gt-drop-down,
.gt_float_switcher .gt-switcher-drop {
  background: var(--dd-bg-c) !important;
  border: 1px solid var(--dd-border) !important;
  border-radius: 3px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.42) !important;
  overflow: hidden !important;
  margin-bottom: 6px !important;
  bottom: 100% !important;
  left: 0 !important;
  min-width: 160px !important;
}

/* ── Dropdown items ── */
.gt_float_switcher .gt-drop-down a,
.gt_float_switcher .gt-switcher-drop a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 14px !important;
  color: var(--dd-text) !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
  border-bottom: 1px solid var(--dd-border) !important;
}
.gt_float_switcher .gt-drop-down a:last-child,
.gt_float_switcher .gt-switcher-drop a:last-child {
  border-bottom: none !important;
}
.gt_float_switcher .gt-drop-down a:hover,
.gt_float_switcher .gt-switcher-drop a:hover {
  background: var(--dd-bg-s) !important;
  color: var(--dd-red) !important;
}

/* ── Active / current language ── */
.gt_float_switcher .gt-drop-down a.gt-selected-lang,
.gt_float_switcher .gt-switcher-drop a.gt-selected-lang {
  color: var(--dd-red) !important;
  background: var(--dd-bg-s) !important;
}

/* ── Remove GTranslate branding bar ── */
.gt_float_switcher .gt-drop-down .gt-branding,
.gt_float_switcher .gt-switcher-drop .gt-branding {
  display: none !important;
}

/* ── Flag sizing ── */
.gt_float_switcher img {
  width: 20px !important;
  height: 15px !important;
  object-fit: cover !important;
  border-radius: 1px !important;
  flex-shrink: 0 !important;
}
