/*
 * JRS1 · public/look/textures.css
 * Created:     2026-11-16 14:59 EST
 * Last edited: 2026-11-18 21:50 EST
 * Version:     0.9.0 (pre-gold)
 */
/* Each sport's ball texture behind its headers (Danny 2026-11-16: "a baseball, basketball, and football texture ... in the header
   area for each sport"; "semi-transparent ... like a shadow thing, but you'll see the texture on the red"). Bought or supplied
   art only (Danny 2026-11-16: "Don't create your own ... I'll buy some textures"): img/textures/<sport>-art.webp, a picture's
   darkness as the shape (no lettering), in three versions: the plain file for a CSS mask in any color, -ink (dark red, low
   strength) for the strip on white, -light (white, low strength) for the dark theme. A sport without art shows none.
   Basketball has Danny's picture of a ball's surface, mirrored so its seams sit behind the open clubs' logos. */

/* the front page's banner (site.css .hub-hero): a sport's slide carries its texture as a shadow over the red, the band's whole
   width, a little lighter behind the words on the left and gone at the right edge; it fades in and out with its slide. The red
   band (.site-hdr) clips it sideways instead of the banner, so it reaches past the content column on a wide screen */
.site-hdr { overflow-x: clip; }
.hub-hero { isolation: isolate; overflow-x: visible; }
.hub-slide.is-bk::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none;
  background: #000000; opacity: .4;
  -webkit-mask-image: url("img/textures/basketball-art.webp"), linear-gradient(90deg, rgba(0, 0, 0, .55), #000 45%, #000 92%, transparent);
  mask-image: url("img/textures/basketball-art.webp"), linear-gradient(90deg, rgba(0, 0, 0, .55), #000 45%, #000 92%, transparent);
  -webkit-mask-position: center, 0 0; mask-position: center, 0 0;
  -webkit-mask-size: cover, 100% 100%; mask-size: cover, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* a sport's pages, every level (look.php look_open and look_open_hs, football's View::header): the strip under the top bar
   (data-sport) carries its texture faintly, faded out behind the league's name on the left */
.app-header[data-sport] { background-repeat: no-repeat; background-position: 0 0, center; background-size: 100% 100%, cover; }
.app-header[data-sport="bk"] { background-image: linear-gradient(90deg, var(--panel) 18%, transparent 55%), url("img/textures/basketball-art-ink.webp"); }
:root[data-theme="dark"] .app-header[data-sport="bk"] { background-image: linear-gradient(90deg, var(--panel) 18%, transparent 55%), url("img/textures/basketball-art-light.webp"); }
