/* =============================================================
   CueArr — Cookie consent banner + language switcher styles
   ============================================================= */

/* ---------- Cookie consent banner (bottom of screen) ---------- */
#cuearr-consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(180deg, #f5e5be, #e6d29b);
  color: #1a0e04;
  border: 1px solid #a89575;
  border-radius: 6px;
  box-shadow:
    0 4px 0 #a89575,
    0 24px 60px rgba(0,0,0,0.7);
  padding: 1.2rem 1.4rem;
  font-family: "IM Fell English", "Georgia", serif;
  animation: cuearr-consent-in 0.45s cubic-bezier(0.34, 1.4, 0.6, 1);
}
@keyframes cuearr-consent-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
#cuearr-consent-banner .cuearr-consent__inner {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 720px) {
  #cuearr-consent-banner .cuearr-consent__inner {
    grid-template-columns: 60px 1fr;
    grid-template-areas: "seal body" "actions actions";
    gap: 0.8rem 1rem;
  }
  #cuearr-consent-banner .cuearr-consent__seal    { grid-area: seal; }
  #cuearr-consent-banner .cuearr-consent__body    { grid-area: body; }
  #cuearr-consent-banner .cuearr-consent__actions { grid-area: actions; }
}
#cuearr-consent-banner .cuearr-consent__seal {
  width: 60px; height: 60px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
  transform: rotate(-8deg);
}
#cuearr-consent-banner .cuearr-consent__seal svg { width: 100%; height: 100%; }
#cuearr-consent-banner .cuearr-consent__body h3 {
  font-family: "Cinzel Decorative", "Georgia", serif;
  font-weight: 900;
  font-size: 1.1rem; color: #1a0e04;
  margin: 0 0 0.3rem;
}
#cuearr-consent-banner .cuearr-consent__body p {
  font-size: 0.92rem; line-height: 1.5;
  color: #3a2411; margin: 0;
}
#cuearr-consent-banner .cuearr-consent__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: flex-end;
}
#cuearr-consent-banner .cuearr-consent__btn {
  font-family: "Cinzel Decorative", "Georgia", serif;
  font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  background: rgba(160,30,40,0.1);
  border: 1.5px solid #a01e28;
  color: #a01e28;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}
#cuearr-consent-banner .cuearr-consent__btn:hover {
  background: #a01e28; color: #f0dfb3; transform: translateY(-1px);
}
#cuearr-consent-banner .cuearr-consent__btn--primary {
  background: linear-gradient(180deg, #ffcd6b, #c98f3d 55%, #7a5416);
  border-color: #3a2510;
  color: #1a0e04;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 0 #5a3f0b;
}
#cuearr-consent-banner .cuearr-consent__btn--primary:hover {
  background: linear-gradient(180deg, #ffdf8f, #ffcd6b 55%, #c98f3d);
  color: #1a0e04;
}
#cuearr-consent-banner .cuearr-consent__btn--ghost {
  background: transparent;
  border-color: rgba(58,36,17,0.5);
  color: #3a2411;
}
#cuearr-consent-banner .cuearr-consent__btn--ghost:hover {
  background: #3a2411; color: #f0dfb3; border-color: #3a2411;
}

/* ---------- Language switcher (flag chip + dropdown) ---------- */
.cuearr-lang-picker {
  position: relative;
  display: inline-block;
}
/* Hide the default disclosure triangle from <details><summary> */
.cuearr-lang-picker > summary::-webkit-details-marker { display: none; }
.cuearr-lang-picker > summary { list-style: none; }

/* The always-visible chip */
.cuearr-lang-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.5rem 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(201,143,61,0.4);
  background: rgba(255,205,107,0.08);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.cuearr-lang-chip:hover {
  background: rgba(255,205,107,0.16);
  border-color: rgba(255,205,107,0.6);
}
.cuearr-lang-picker[open] > .cuearr-lang-chip {
  background: rgba(255,205,107,0.18);
  border-color: rgba(255,205,107,0.7);
}
.cuearr-lang-chip:focus-visible {
  outline: 2px solid var(--brass-hot, #ffcd6b);
  outline-offset: 2px;
}
.cuearr-lang-chip__flag {
  display: inline-flex; align-items: center;
  line-height: 1;
  /* Emoji fallback (used by Jolly Roger — country flags override with SVG below) */
  font-size: 1.15rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.cuearr-lang-chip__flag svg {
  height: 16px; width: auto;
  display: block;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}
.cuearr-lang-chip__caret {
  font-size: 0.7rem; color: var(--brass-hot, #ffcd6b);
  transition: transform 0.15s ease;
}
.cuearr-lang-picker[open] > .cuearr-lang-chip .cuearr-lang-chip__caret {
  transform: rotate(180deg);
}

/* Dropdown menu */
.cuearr-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px;
  margin: 0; padding: 0.35rem 0;
  list-style: none;
  background: #0a1728;
  border: 1px solid rgba(201,143,61,0.5);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  z-index: 100;
}
.cuearr-lang-menu__item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  font-family: "IM Fell English", "Georgia", serif;
  font-size: 0.95rem;
  color: #efdcb2;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.cuearr-lang-menu__item:hover {
  background: rgba(255,205,107,0.10);
  color: var(--brass-hot, #ffcd6b);
}
.cuearr-lang-menu__item.is-current {
  color: var(--brass-hot, #ffcd6b);
  background: rgba(255,205,107,0.06);
  font-weight: 700;
}
.cuearr-lang-menu__item.is-current::after {
  content: "✓";
  margin-left: auto;
  color: var(--brass-hot, #ffcd6b);
}
.cuearr-lang-menu__flag {
  display: inline-flex; align-items: center;
  line-height: 1;
  font-size: 1.05rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.cuearr-lang-menu__flag svg {
  height: 14px; width: auto;
  display: block;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.cuearr-lang-menu__name { flex: 1; }

/* Menu inside a mobile hamburger: drop the absolute position so it flows */
.mobile-menu .cuearr-lang-picker {
  display: block;
}
.mobile-menu .cuearr-lang-menu {
  position: static;
  min-width: 0;
  margin-top: 0.4rem;
  box-shadow: none;
  background: rgba(255,255,255,0.03);
}
