/* Frozenfrog (Warcraft) page in the Wellyssar style: 3px corners, icy glass,
   the stage panel inside the map, live pins, a compact radio and a light theme
   (dark stays the default). Loaded after the template's own Frozenfrog styles. */

/* ---- Header: the same 36x40 icon buttons as on the Lineage 2 site ---- */
body.warcraft-page #header .site-theme-toggle {
  display: inline-grid !important;
  place-items: center;
  width: 36px !important;
  height: 40px !important;
  padding: 0 !important;
  font-size: 0 !important;
  color: inherit;
}

body.warcraft-page #header .site-theme-toggle .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.warcraft-page #header .wy-wow-theme .theme-moon,
html[data-site-theme='light'] body.warcraft-page #header .wy-wow-theme .theme-sun {
  display: none;
}

html[data-site-theme='light'] body.warcraft-page #header .wy-wow-theme .theme-moon {
  display: block;
}

body.warcraft-page #header .seasonal-toggle[aria-pressed='false'] .icon {
  opacity: 0.45;
}

/* ---- Map: the stage panel lives inside it ---- */
.ff-portal-caption,
.ff-portal-leader {
  display: none !important;
}

.ff-atlas {
  padding: 6px !important;
  border: 1px solid #9fd8ff40 !important;
  border-radius: 3px;
  background: linear-gradient(160deg, #16364a, #0b1d2b 60%, #102a3a) !important;
  box-shadow: 0 18px 40px -18px #000000cc, inset 0 1px 0 #d6f0ff1f !important;
}

.ff-atlas::before,
.ff-atlas::after {
  display: none !important;
}

.ff-atlas-viewport {
  border: 0 !important;
  border-radius: 2px;
  cursor: grab;
}

.ff-atlas-viewport:active {
  cursor: grabbing;
}

.ff-atlas-tint {
  box-shadow: inset 0 0 60px 10px #061a2a73 !important;
}

.ff-world-switch {
  overflow: hidden;
  border: 1px solid #9fd8ff4d !important;
  border-radius: 3px;
  background: #0b1d2bd9 !important;
  backdrop-filter: blur(8px);
}

.ff-world-switch button {
  background: transparent !important;
  color: #cfe4ee !important;
}

.ff-world-switch button[aria-pressed='true'] {
  background: #9fd8ff26 !important;
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 #9fd8ff !important;
}

.ff-route-progress {
  border: 1px solid #9fd8ff4d !important;
  border-radius: 3px;
  background: #0b1d2bd9 !important;
  color: #e4f6ff !important;
}

.ff-stage-nav button {
  border-radius: 3px !important;
}

/* Pins: they react, the chosen one breathes, the active road moves. */
.ff-waypoint {
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ff-waypoint:hover,
.ff-waypoint:focus-visible {
  transform: translate(-50%, -50%) scale(1.2);
}

.ff-waypoint[data-status='selected'] {
  border-color: #d6f0ff !important;
  background: radial-gradient(circle at 36% 24%, #3f7590, #12324a 75%) !important;
  box-shadow: 0 0 0 4px #9fd8ff33, 0 0 18px #9fd8ffaa, 0 3px 5px #07151d !important;
}

.ff-waypoint[data-status='selected']::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px solid #bfe9ff;
  border-radius: 50%;
  pointer-events: none;
  animation: wy-ff-pulse 1.9s ease-out infinite;
}

@keyframes wy-ff-pulse {
  from { opacity: 0.85; transform: scale(0.8); }
  to { opacity: 0; transform: scale(1.75); }
}

.ff-atlas-route-active {
  stroke: #bfe9ff !important;
  animation: wy-ff-march 1.4s linear infinite;
}

.ff-atlas-route-next {
  animation: wy-ff-march 2.4s linear infinite;
}

@keyframes wy-ff-march {
  to { stroke-dashoffset: -16; }
}

/* Hover card over a pin (made by site-skin.js). */
.wy-ff-tip {
  position: absolute;
  z-index: 20;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid #9fd8ff59;
  border-radius: 3px;
  background: #0b1d2bf2;
  color: #e4f6ff;
  font: 700 12px/1.35 var(--font-ui, Arial, sans-serif);
  box-shadow: 0 10px 24px -10px #000000cc;
  transform: translate(-50%, calc(-100% - 18px));
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.wy-ff-tip.on {
  opacity: 1;
}

/* Stage panel: glass card in the map on wide screens, under it on narrow ones. */
.ff-stage-reading {
  padding: 16px 18px !important;
  border: 1px solid #9fd8ff40;
  border-radius: 3px;
  background: linear-gradient(160deg, #10293bee, #0a1d2bf2);
  box-shadow: 0 18px 40px -16px #000000cc, inset 0 1px 0 #d6f0ff1f;
}

.ff-stage-reading .ff-mobile-stage {
  margin-bottom: 14px !important;
}

.ff-stage-reading .ff-mobile-stage select {
  min-height: 44px !important;
  padding: 10px 44px 10px 14px !important;
  border: 1px solid #9fd8ff4d !important;
  border-radius: 3px !important;
  background: #0b1d2b !important;
  color: #e4f6ff !important;
}

.ff-stage-reading h3 {
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.15 !important;
}

/* Wide screens: the stage panel is a column right of the map, the same height,
   joined to the map frame. Narrow screens: it hangs under the map. */
@media (min-width: 1000px) {
  .ff-progression-grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 28%, 380px) !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  .ff-atlas {
    border-radius: 3px 0 0 3px;
  }

  .ff-stage-reading {
    position: relative;
    margin-left: -1px;
    border-radius: 0 3px 3px 0;
    overflow: auto;
    scrollbar-width: thin;
  }
}

/* ---- Radio: compact, centred ---- */
.ff-radio-band .poster-shell {
  display: flex;
  justify-content: center;
}

.ff-radio-band .radio-panel {
  width: 100%;
  max-width: 780px;
}

/* ======================= Light theme (by choice) ======================= */
html[data-site-theme='light'] body.warcraft-page,
html[data-site-theme='light'] body.warcraft-page #main-container {
  background: #eef5f9 !important;
  color: #13293a;
}

html[data-site-theme='light'] body.warcraft-page #header,
html[data-site-theme='light'] body.warcraft-page header.warcraft-header {
  background: linear-gradient(180deg, #f6fafcf2, #e8f1f7eb) !important;
  border-bottom: 1px solid #4d86a840 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 22px -14px #1d3d5280 !important;
}

html[data-site-theme='light'] body.warcraft-page #header::after {
  background-color: #4d86a8 !important;
  opacity: 0.18 !important;
}

html[data-site-theme='light'] body.warcraft-page #header :is(.ff-resources > a, .site-theme-toggle, .lang-btn, .language-code, .world-toggle) {
  color: #13293a !important;
}

html[data-site-theme='light'] body.warcraft-page #header .ff-community {
  background: #dcecf5 !important;
  border-color: #4d86a866 !important;
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-welcome {
  background: #e3eef5 !important;
}

html[data-site-theme='light'] .ff-welcome .frozenfrog-shade {
  background: linear-gradient(90deg, #f1f7fbf5 0%, #eef5f9e0 42%, #eef5f94d 72%, #eef5f900) !important;
}

html[data-site-theme='light'] .ff-welcome :is(.ff-kicker, .ff-state) {
  color: #24678c !important;
}

html[data-site-theme='light'] .ff-welcome h2,
html[data-site-theme='light'] .roadmap-heading h2 {
  color: #10283a !important;
  text-shadow: 0 1px 0 #ffffffb3 !important;
}

html[data-site-theme='light'] .ff-lead,
html[data-site-theme='light'] .roadmap-heading p {
  color: #1d3446 !important;
  text-shadow: 0 0 10px #f1f7fbe6 !important;
}

html[data-site-theme='light'] .ff-radio-band {
  background: #e6f0f6 !important;
}

html[data-site-theme='light'] body.warcraft-page #main-container .ff-radio-band .radio-panel {
  background: #f8fbfdf0 !important;
  border-color: #4d86a840 !important;
  color: #13293a !important;
}

html[data-site-theme='light'] body.warcraft-page .ff-radio-band :is(.radio-track h2, .radio-title, .radio-station-current, .radio-station-caption) {
  color: #10283a !important;
}

html[data-site-theme='light'] body.warcraft-page .ff-radio-band :is(p, small, .radio-state, .radio-track-meta) {
  color: #2b4354 !important;
}

html[data-site-theme='light'] .ff-roadmap {
  background: linear-gradient(180deg, #eef5f9f7, #eef5f9e8 50%, #eef5f9f7), url('../images/frozenfrog/backgrounds/lich-king.webp') center / cover no-repeat, #eef5f9 !important;
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-roadmap .ff-kicker {
  color: #24678c !important;
}

html[data-site-theme='light'] .ff-atlas {
  border-color: #4d86a840 !important;
  background: linear-gradient(160deg, #ffffff, #e3eef5) !important;
  box-shadow: 0 18px 40px -22px #1d3d5299 !important;
}

html[data-site-theme='light'] :is(.ff-world-switch, .ff-route-progress) {
  border-color: #4d86a859 !important;
  background: #f8fbfdeb !important;
}

html[data-site-theme='light'] .ff-world-switch button {
  color: #2b4354 !important;
}

html[data-site-theme='light'] .ff-world-switch button[aria-pressed='true'] {
  background: #4d86a826 !important;
  color: #10283a !important;
  box-shadow: inset 0 -2px 0 #24678c !important;
}

html[data-site-theme='light'] .ff-route-progress {
  color: #10283a !important;
}

html[data-site-theme='light'] .ff-progression {
  --ff-copy: #13293a;
  --ff-muted: #2b4354;
  color: #13293a;
}

html[data-site-theme='light'] .ff-stage-reading {
  border-color: #4d86a840;
  background: linear-gradient(160deg, #fbfdfef2, #eef5f9f2);
  box-shadow: 0 18px 40px -22px #1d3d5299, inset 0 1px 0 #ffffff;
  color: #13293a;
}

html[data-site-theme='light'] .ff-stage-reading :is(h3, .ff-stage-content, .ff-stage-content p, .ff-stage-content li, .ff-info-date b) {
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-stage-reading :is(.ff-stage-kicker, .ff-mobile-stage, .ff-info-date span) {
  color: #24678c !important;
}

html[data-site-theme='light'] .ff-stage-reading .ff-mobile-stage select {
  border-color: #4d86a866 !important;
  background: #ffffff !important;
  color: #10283a !important;
}

html[data-site-theme='light'] .ff-stage-select-field::after {
  border-color: #24678c !important;
}

html[data-site-theme='light'] .ff-stage-nav :is(button, span) {
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-stage-nav button {
  border-color: #4d86a859 !important;
  background: #f8fbfd !important;
}

html[data-site-theme='light'] .wy-ff-tip {
  border-color: #4d86a859;
  background: #f8fbfdf5;
  color: #10283a;
}

html[data-site-theme='light'] .ff-team-card {
  background: linear-gradient(90deg, #f4f9fcf5, #f4f9fce6 70%, #f4f9fc88), url('../images/frozenfrog/backgrounds/frost-mage.webp') 70% 30% / cover no-repeat !important;
  border-color: #4d86a859 !important;
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-team-invite :is(h2, p, strong, small) {
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-team-invite {
  background: #e6f0f6 !important;
}

html[data-site-theme='light'] .ff-footer {
  background: #dfeaf1 !important;
  color: #2b4354 !important;
}

html[data-site-theme='light'] .ff-footer :is(p, small) {
  color: #2b4354 !important;
}

/* Radio centred under the hero; no dark text shadow on titles in the light theme. */
.ff-radio-band .radio-section {
  display: flex;
  justify-content: center;
}

.ff-radio-band .radio-panel {
  margin-inline: auto !important;
}

html[data-site-theme='light'] body.warcraft-page :is(.ff-stage-reading h3, .ff-radio-band .radio-track h2, .ff-radio-band h2, .roadmap-heading h2, .ff-team-invite h2) {
  text-shadow: none !important;
}
/* Phones: the panel hangs right under the map, as one block with its frame. */
@media (max-width: 999px) {
  .ff-progression-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .ff-stage-reading {
    margin-top: -1px;
    border-top: 0 !important;
    border-radius: 0 0 3px 3px;
  }
}

/* Stage details: level, raids and bosses readable in both themes. */
.ff-stage-reading .ff-location-link {
  padding: 3px 8px;
  border: 1px solid #9fd8ff4d;
  border-radius: 3px;
  background: #9fd8ff14;
  text-decoration: none;
}

.ff-stage-reading .ff-location-link:hover {
  border-color: #bfe9ff;
  background: #9fd8ff2e;
}

html[data-site-theme='light'] .ff-stage-reading .ff-stage-level {
  color: #24678c !important;
}

html[data-site-theme='light'] .ff-stage-reading :is(h4, .ff-stage-content h4) {
  color: #10283a !important;
}

html[data-site-theme='light'] .ff-stage-reading .ff-location-link {
  border-color: #4d86a866;
  background: #4d86a814;
  color: #1d5a7e !important;
}

html[data-site-theme='light'] .ff-stage-reading .ff-location-link:hover {
  border-color: #24678c;
  background: #4d86a826;
}

/* The open stage list: light rows in the light theme. */
html[data-site-theme='light'] .ff-stage-reading select option {
  background: #ffffff !important;
  color: #10283a !important;
}
/* Audit (rendered, both themes). */
html[data-site-theme='light'] .ff-welcome .ff-state {
  color: #17465f !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px #f1f7fbe6 !important;
}

html[data-site-theme='light'] .ff-welcome .ff-state > span {
  background: #24678c !important;
}

/* Cookie banner on the Warcraft page, light theme. */
html[data-site-theme='light'] body.warcraft-page .cookie-dialog :is(p, label, span, small, .cookie-required-label, .cookie-storage-warning, .cookie-title, .cookie-heading, h2, h3) {
  color: #13293a !important;
}

html[data-site-theme='light'] body.warcraft-page .cookie-dialog :is(.cookie-policy-link, .cookie-close) {
  color: #1d5a7e !important;
}

html[data-site-theme='light'] body.warcraft-page .cookie-dialog .cookie-choice:not(.cookie-choice-primary):not(.cookie-save) {
  color: #13293a !important;
  background: #f8fbfd !important;
}

/* Radio: the chosen station keeps dark ink on its light chip (dark theme). */
body.warcraft-page .ff-radio-band .radio-station-option:is(:hover, [aria-pressed='true'], .active) :is(.radio-station-option-name, span, small) {
  color: #102b3c !important;
}

/* Radio history and station lists: light boxes in the light theme. */
html[data-site-theme='light'] body.warcraft-page .ff-radio-band :is(.radio-history, .radio-stations, .radio-quality-menu) {
  background: #f8fbfdf5 !important;
  border-color: #4d86a859 !important;
}

html[data-site-theme='light'] body.warcraft-page .ff-radio-band :is(.radio-history, .radio-stations, .radio-quality-menu) :is(p, span, small, button, li, a) {
  color: #13293a !important;
}

/* Credits link in the footer. */
html[data-site-theme='light'] body.warcraft-page :is(.ff-footer, footer) a {
  color: #7a4d14 !important;
}

/* Light theme: sections in slightly different ice tones, with visible dividers. */
html[data-site-theme='light'] .ff-radio-band {
  background: #dfeaf2 !important;
  border-top: 1px solid #4d86a833;
  border-bottom: 1px solid #4d86a833;
}

html[data-site-theme='light'] .ff-roadmap {
  border-bottom: 1px solid #4d86a833;
}

html[data-site-theme='light'] .ff-team-invite {
  background: #dfeaf2 !important;
  border-bottom: 1px solid #4d86a833;
}

html[data-site-theme='light'] .ff-team-card {
  border: 1px solid #4d86a859 !important;
  box-shadow: 0 14px 32px -20px #1d3d5299 !important;
}

html[data-site-theme='light'] .ff-team-contact {
  border: 1px solid #4d86a866 !important;
  background: #f8fbfd !important;
  color: #13293a !important;
}

html[data-site-theme='light'] .ff-footer {
  background: #d2e1eb !important;
  border-top: 1px solid #4d86a840;
}

html[data-site-theme='light'] .ff-stage-reading :is(.ff-info-date, .ff-stage-detail-header) {
  border-color: #4d86a840 !important;
}
/* Plain stage items (no link): the same chips as the linked ones. */
.ff-stage-reading .ff-content-item {
  padding: 3px 8px;
  border: 1px solid #9fd8ff33;
  border-radius: 3px;
  background: #9fd8ff0f;
}

html[data-site-theme='light'] .ff-stage-reading .ff-content-item {
  border-color: #4d86a84d;
  background: #4d86a80f;
  color: #13293a !important;
}
/* Side menu and its footer in the light theme. */
html[data-site-theme='light'] body.warcraft-page :is(#sidebar, .uc-content, .uc-footer) :is(a, span, p, small, li, button, .language-code),
html[data-site-theme='light'] body.warcraft-page .uc-footer {
  color: #13293a !important;
}
/* Radio and "write to us" side by side. */
.ff-radio-band .poster-shell.wy-radio-row {
  display: grid !important;
  grid-template-columns: minmax(0, 780px) minmax(260px, 340px);
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}

.ff-radio-band .wy-radio-row > .radio-section {
  min-width: 0;
}

.ff-radio-band .wy-radio-row .radio-panel {
  height: 100%;
  max-width: none;
}

.wy-team-mini {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 18px !important;
  border: 1px solid #9fd8ff40;
  border-radius: 3px;
  background: linear-gradient(160deg, #10293bee, #0a1d2bf2) !important;
  box-shadow: 0 18px 40px -18px #000000cc, inset 0 1px 0 #d6f0ff1f;
}

.wy-team-mini > div {
  display: grid;
  gap: 4px;
}

.wy-team-mini h2 {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}

.wy-team-mini p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.wy-team-mini .ff-kicker {
  font-size: 11px !important;
}

.wy-team-mini .ff-team-contact {
  justify-self: start;
  margin-top: 4px;
}

@media (max-width: 999px) {
  .ff-radio-band .poster-shell.wy-radio-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-site-theme='light'] .wy-team-mini {
  border-color: #4d86a859;
  background: linear-gradient(160deg, #fbfdfef2, #eef5f9f2) !important;
  box-shadow: 0 14px 32px -20px #1d3d5299, inset 0 1px 0 #ffffff;
}

html[data-site-theme='light'] .wy-team-mini :is(h2, p) {
  color: #13293a !important;
}

/* The station name above the radio title. */
html[data-site-theme='light'] body.warcraft-page .ff-radio-band :is(.radio-track a, .radio-track-meta a, .radio-station-name, .radio-kicker, a) {
  color: #7a4d14 !important;
}