/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKY PLUS PAGE — hand-written styles for this page only.
   (assets/main.css next to this file is the Carrd-generated layout.)

   Contents
     1. "Sun Position" slider - the fake Blender node panel under the
        day/night video. Behaviour: sky-plus-sun-slider.js
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* ── 1. "Sun Position" slider ────────────────────────────────────────────────
   Looks like a Blender node: blue title bar, then one grey value slider.

   .splus-slider              centres the panel
     #splus-root              the node panel
       .splus-slider__header    blue title bar  ("▸ Sky Plus - v1.0")
       .splus-slider__body
         .splus-slider__track   the grey slider
           #splus-fill            blue fill (width set by the script)
           .splus-slider__labels  "Sun Position ........ 0.000"
           #splus-input           invisible range input on top (what you drag)
   ───────────────────────────────────────────────────────────────────────── */

.splus-slider {
	display: flex;
	justify-content: center;
	width: 100%;
}

#splus-root {
	width: 100%;
	max-width: 640px;
	background: #2a2a2a;
	border: 1px solid #1a1a1a;
	border-radius: 3px;
	overflow: hidden;
	font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
	font-size: 12px;
	user-select: none;
	-webkit-user-select: none;
}

.splus-slider__header {
	background: #3d7fa8;
	padding: 0 12px;
	height: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid #1a1a1a;
}

/* Small white triangle, rotated to point down (an "open" node). */
.splus-slider__arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 6px solid #e8e8e8;
	flex-shrink: 0;
	transform: rotate(90deg);
}

.splus-slider__title {
	color: #e8e8e8;
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.01em;
}

.splus-slider__body {
	padding: 4px 6px 6px;
}

.splus-slider__track {
	position: relative;
	width: 100%;
	height: 32px;
	background: #3c3c3c;
	border-radius: 3px;
	border: 1px solid #1a1a1a;
	overflow: hidden;
	cursor: ew-resize;
	box-sizing: border-box;
}

#splus-fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0%;
	background: #4772b3;
	border-radius: 2px 0 0 2px;
	pointer-events: none;
}

.splus-slider__labels {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 7px;
	pointer-events: none;
	color: #e8e8e8;
	font-size: 12px;
}

#splus-value {
	font-weight: 600;
}

/* The real (invisible) range input stretched over the track. */
#splus-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: ew-resize;
	z-index: 2;
	margin: 0;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	touch-action: pan-y;
}
