/* =====================================================================
   SITE BACKGROUND THEME
   Change the values in the two blocks below to restyle every page.
   Tip: open any page with ?theme at the end of the address
   (e.g. https://mavrakigaming.com/?theme) to try colors live with pickers,
   then copy the generated lines back into this file.
   ===================================================================== */

/* Light mode */
[data-md-color-scheme="default"] {
  --fl-bg-top: #fdf6ff;     /* colour at the top of the page ("Lavender sky" preset) */
  --fl-bg-bottom: #e6f4ff;  /* colour at the bottom of the page */
  --fl-bg-angle: 180deg;    /* 180deg = top to bottom, 90deg = left to right, 135deg = diagonal */
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  --fl-bg-top: #14241c;     /* "Deep forest" preset */
  --fl-bg-bottom: #0d1418;
  --fl-bg-angle: 160deg;
}

/* ----- how the gradient is applied (normally no need to edit below) ----- */
body {
  background: linear-gradient(var(--fl-bg-angle), var(--fl-bg-top), var(--fl-bg-bottom)) fixed;
}
/* Let the gradient show through the page areas that normally paint a flat colour */
.md-main, .md-container, .md-content, .md-sidebar, .md-sidebar__scrollwrap { background: transparent; }

/* ----- ?theme playground panel (javascripts/theme-playground.js) ----- */
.fltp {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: 16rem;
  display: flex; flex-direction: column; gap: .45rem; padding: .7rem .8rem;
  font-size: .7rem; color: var(--md-default-fg-color);
  background: var(--md-default-bg-color); border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: .4rem; box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .3);
}
.fltp label { display: flex; align-items: center; gap: .5rem; }
.fltp input[type="color"] { width: 2.4rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.fltp input[type="range"] { flex: 1; }
.fltp-mode, .fltp-hint { color: var(--md-default-fg-color--light); }
.fltp-hint { margin: 0; font-size: .6rem; }
.fltp-presets { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.fltp-presets button {
  padding: .35rem .2rem; font: inherit; font-size: .6rem; cursor: pointer; color: var(--md-default-fg-color);
  border: 1px solid var(--md-default-fg-color--lighter); border-radius: .25rem;
}
.fltp-css {
  font-family: var(--md-code-font-family, monospace); font-size: .6rem; resize: none;
  color: var(--md-code-fg-color); background: var(--md-code-bg-color); border: 0; border-radius: .25rem; padding: .4rem;
}
.fltp-btns { display: flex; gap: .3rem; }
.fltp-btns button {
  flex: 1; padding: .3rem; font: inherit; font-size: .65rem; cursor: pointer;
  color: var(--md-default-fg-color); background: transparent;
  border: 1px solid var(--md-default-fg-color--lighter); border-radius: .25rem;
}
.fltp-btns button:hover, .fltp-presets button:hover { border-color: var(--md-accent-fg-color); }

/* "On this page" heading: drop its flat box on wide screens so the gradient shows through */
@media screen and (min-width: 60em) {
  .md-sidebar--secondary .md-nav__title { background: transparent; box-shadow: none; }
}

/* ----- "Suggest an Update" in the top tabs and the menu: a gold pill so it stands out ----- */
[data-md-color-scheme="default"] { --fl-cta-fg: #7a4a00; --fl-cta-bg: rgba(232, 168, 32, .22); --fl-cta-border: rgba(196, 132, 10, .55); }
[data-md-color-scheme="slate"]   { --fl-cta-fg: #f5cd6a; --fl-cta-bg: rgba(240, 190, 80, .14); --fl-cta-border: rgba(240, 190, 80, .5); }
.md-tabs__link[href$="suggest/"] {
  opacity: 1; font-weight: 700; color: var(--fl-cta-fg);
  padding: 0.15rem 0.7rem; margin-top: 0.55rem; border-radius: 999px;
  background: var(--fl-cta-bg); border: 1px solid var(--fl-cta-border);
}
.md-tabs__link[href$="suggest/"]:hover, .md-tabs__link[href$="suggest/"]:focus { color: var(--fl-cta-fg); filter: brightness(1.08); }
.md-nav--primary .md-nav__link[href$="suggest/"] { font-weight: 700; color: var(--fl-cta-fg); }
