/* Winter look of the top bar, switched on by WINTER_THEME in main.py.
   The night scene itself is drawn by static/js/winter.js. */

.winter-header {
  --header-bg: linear-gradient(180deg, #081130 0%, #0f2149 55%, #1b3b73 100%);
  --header-highlight: none;
  --header-border: #dbe8f8; /* The snow colour: the 1px border would show a dark line at 150% display scale. */
}

.winter-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Frosted navigation: snow passing behind it stays out of the way of the text. */
.winter-header .main-nav ul li a,
.winter-header .main-nav ul li button,
.winter-header .main-nav ul li.toggle-container .toggle-button {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.winter-header .logo span {
  text-shadow: 0 1px 3px rgba(8, 22, 52, 0.6);
}

/* The default shadows of the logo and the active link would stain the snow below them. */
.winter-header .logo img {
  filter: drop-shadow(0 1px 2px rgba(8, 22, 52, 0.3));
}

.winter-header .main-nav ul li a.is-active {
  box-shadow: 0 5px 12px rgba(8, 22, 52, 0.28);
}

/* Pause switch for the animation, small on purpose, in the empty corner of the sky. */
.winter-pause {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 1;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: none;
  opacity: 0.4;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.winter-pause:hover,
.winter-pause:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
  transform: none;
}

.winter-pause:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.85);
}

/* Two bars while it runs, a triangle while it is paused. */
.winter-pause::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 8px;
  height: 9px;
  margin: auto;
  border: solid #ffffff;
  border-width: 0 2.5px;
}

.winter-pause.is-paused::before {
  width: 8px;
  height: 10px;
  border-color: transparent transparent transparent #ffffff;
  border-width: 5px 0 5px 8px;
}
