/* ============================================================
   Skye Athletic -- dark look
   ------------------------------------------------------------
   Everything is scoped to html[data-theme="dark"], so the light
   look is untouched. The colours come from Appearance > Site
   Colours & Text (--skye-* variables, printed in <head>).

   1. The theme's colour variables are re-pointed here.
   2. Colours written straight into the theme's stylesheets get
      their dark versions from assets/js/site-theme.js, which reads
      those stylesheets (so it keeps up when the theme changes).
   3. The few things neither can know about are set below.
   ============================================================ */

/* Smooth switch (only while switching, so pages do not animate on load). */
html.skye-theme-switching,
html.skye-theme-switching *,
html.skye-theme-switching *::before,
html.skye-theme-switching *::after{
  transition:background-color .3s ease,color .3s ease,border-color .3s ease !important;
}

/* ---------- The switch button ---------- */
.skye-theme-toggle{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.skye-theme-toggle svg{width:20px;height:20px;display:block;}

/* ---------- 1. Variables ---------- */
html[data-theme="dark"]{
  color-scheme:dark;
  /* main theme (style.css / skye-design.css) */
  --line-paper:rgba(255,255,255,.14);
  --c-border:rgba(255,255,255,.14);
  --c-muted-2:#8e8e93;
  --shadow-sm:0 8px 22px rgba(0,0,0,.45);
  --shadow-md:0 24px 48px rgba(0,0,0,.55);
  /* homepage / landing pages (nike-style.css) */
  --c-bg:var(--skye-bg);
  --c-text:var(--skye-text);
  --c-headings:var(--skye-heading);
  --c-surface:var(--skye-surface);
  --c-surface-2:var(--skye-band);
  --c-secondary:var(--skye-muted);
}
html[data-theme="dark"] body{background:var(--skye-bg);color:var(--skye-text);}
html[data-theme="dark"] .bg-white{background:var(--skye-surface);}
html[data-theme="dark"] .bg-paper{background:var(--skye-band);}
html[data-theme="dark"] .text-white{color:#fff;}
html[data-theme="dark"] hr{border-color:rgba(255,255,255,.14);}

/* ---------- Header ---------- */
html[data-theme="dark"] .skl-header,
html[data-theme="dark"] .skl-header-bar{background:var(--skye-header);color:#f2f2f2;}
html[data-theme="dark"] .skl-nav-link,
html[data-theme="dark"] .skl-header .skl-btn-icon{color:#f2f2f2;}
html[data-theme="dark"] .skl-header .skl-btn-icon{background:rgba(255,255,255,.08);}
html[data-theme="dark"] .skl-header .skl-btn-icon:hover{background:rgba(255,255,255,.16);}
html[data-theme="dark"] .skl-burger-line{background:#f2f2f2;}
/* The black logo on the dark header. */
html[data-theme="dark"] .skl-logo-img,
html[data-theme="dark"] .skl-drawer-logo img{filter:brightness(0) invert(1);}
html[data-theme="dark"] .skl-dropdown,
html[data-theme="dark"] .skl-search-panel,
html[data-theme="dark"] .skl-mobile-drawer-panel{background:var(--skye-surface);color:var(--skye-text);}
html[data-theme="dark"] .skl-dropdown a,
html[data-theme="dark"] .adidas-menu-row,
html[data-theme="dark"] .adidas-submenu-link{color:var(--skye-text);}

/* ---------- Footer ---------- */
html[data-theme="dark"] .sky-footer,
html[data-theme="dark"] .skl-footer,
html[data-theme="dark"] body > footer{background:var(--skye-footer);}

/* ---------- Pictures on light backdrops ---------- */
/* Product photos are shot on light grey: their frames stay light so
   the photo does not sit in a hard grey box on the dark page. */
html[data-theme="dark"] .sky-product-card__media,
html[data-theme="dark"] .sky-product-media,
html[data-theme="dark"] .woocommerce-product-gallery__image{background-color:#ececec;}

/* ---------- Forms ---------- */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .select2-container--default .select2-selection--single{
  background-color:var(--skye-surface);
  color:var(--skye-text);
  border-color:rgba(255,255,255,.22);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8e8e93;}
html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--skye-text);}
html[data-theme="dark"] .select2-dropdown{background:var(--skye-surface);color:var(--skye-text);border-color:rgba(255,255,255,.22);}

/* ---------- Buttons ---------- */
html[data-theme="dark"] .btn-secondary:hover{background:rgba(255,255,255,.08);}
html[data-theme="dark"] .btn-text{color:var(--skye-text);}

/* ---------- 3D customiser ---------- */
html[data-theme="dark"] .devexhub-3d-studio-shell{background:var(--skye-bg);}
html[data-theme="dark"] .dx-studio-icon{background:var(--skye-surface);color:var(--skye-text);border-color:rgba(255,255,255,.16);}

/* ---------- Homepage pieces that are black in the light look ---------- */
/* Black-on-white "selected" pills and buttons turn white-on-dark, so
   they still stand out from the dark page. */
html[data-theme="dark"] .faq-pill.is-active,
html[data-theme="dark"] .faq-view-all,
html[data-theme="dark"] .filter-tab.is-active{background:#f2f2f2 !important;color:#0a0a0a !important;border-color:#f2f2f2 !important;}

/* ---------- Colours written on elements themselves ---------- */
/* Marked by site-theme.js (markInlineColours). */
html[data-theme="dark"] [data-dx-ink]{color:var(--skye-text) !important;}
html[data-theme="dark"] [data-dx-muted]{color:var(--skye-muted) !important;}
html[data-theme="dark"] [data-dx-paper]{background-color:var(--skye-surface) !important;}

/* ---------- Yellow bands ---------- */
/* Text on the brand-yellow bands stays black, as in the light look. */
html[data-theme="dark"] .tw-band,
html[data-theme="dark"] .tw-band h1,
html[data-theme="dark"] .tw-band h2,
html[data-theme="dark"] .tw-band h3,
html[data-theme="dark"] .tw-band h4,
html[data-theme="dark"] .tw-band p{color:#0a0a0a !important;}

/* ---------- Form "required" stars ---------- */
/* Dark red is hard to see on the dark page: a lighter red. */
html[data-theme="dark"] .required,
html[data-theme="dark"] abbr.required{color:#ff6b6b !important;}
