/*
Theme Name: LH Streaming
Theme URI: https://imhgroup.com
Description: Professional Netflix / Disney+ style streaming theme. Pairs with the LH Streaming plugin but works standalone with a friendly setup screen when the plugin is missing.
Author: IMH Group, Inc.
Author URI: https://imhgroup.com
Version: 2.8.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: lh-streaming
Tags: streaming, video, netflix-style, dark, full-width-template, custom-menu, threaded-comments
*/

/* ------------------------------------------------------------------
   CSS Variables - aligned with the plugin's tokens so the theme and
   plugin chrome stay visually consistent. Falls back to safe defaults
   when the plugin is not active.
------------------------------------------------------------------ */
:root {
	--lh-primary: #e50914;
	--lh-primary-hover: #f40612;
	--lh-bg-dark: #000;
	--lh-bg-card: #141414;
	--lh-bg-hover: #181818;
	--lh-bg-elev: #1f1f1f;
	--lh-text: #fff;
	--lh-text-muted: #b3b3b3;
	--lh-link: #ffffff;
	--lh-link-hover: #b3b3b3;
	--lh-border: rgba(255, 255, 255, 0.08);
	--lh-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
	--lh-radius: 6px;
	--lh-header-height: 70px;
	--lh-font-sans: "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   Base reset + dark background
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--lh-bg-dark);
	color: var(--lh-text);
	font-family: var(--lh-font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Push the page content below the (fixed) plugin/theme header so
   nothing is hidden under it. The plugin header is 70px tall by
   default; the .lh-site-main reserves that space. */
.lh-site-main {
	flex: 1 0 auto;
	display: block;
	min-height: calc(100vh - var(--lh-header-height));
}

/* ------------------------------------------------------------------
   Typography
------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--lh-font-sans);
	color: var(--lh-text);
	margin: 0 0 0.5em;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
	color: var(--lh-text-muted);
	margin: 0 0 1em;
}

a {
	color: var(--lh-link);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
	color: var(--lh-link-hover);
}

a:focus-visible {
	outline: 2px solid var(--lh-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ------------------------------------------------------------------
   Layout helpers
------------------------------------------------------------------ */
.lh-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 4vw;
}

.lh-section {
	padding: 48px 0;
}

@media (min-width: 768px) {
	.lh-section { padding: 72px 0; }
}

.lh-stack > * + * { margin-top: 1em; }
.lh-stack-lg > * + * { margin-top: 2em; }

/* ------------------------------------------------------------------
   Buttons (theme-side, complements .lh-btn from the plugin)
------------------------------------------------------------------ */
.lh-button,
button.lh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: var(--lh-radius);
	font-weight: 600;
	font-size: 1rem;
	border: 0;
	cursor: pointer;
	transition: transform 0.1s ease, background 0.2s ease, color 0.2s ease;
	text-decoration: none;
	line-height: 1;
	font-family: inherit;
}

.lh-button:active {
	transform: scale(0.98);
}

.lh-button--primary {
	background: var(--lh-text);
	color: #000;
}

.lh-button--primary:hover {
	background: rgba(255, 255, 255, 0.85);
	color: #000;
}

.lh-button--secondary {
	background: rgba(109, 109, 110, 0.7);
	color: var(--lh-text);
	backdrop-filter: blur(4px);
}

.lh-button--secondary:hover {
	background: rgba(109, 109, 110, 0.5);
	color: var(--lh-text);
}

.lh-button--ghost {
	background: transparent;
	color: var(--lh-text);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.lh-button--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------------
   WordPress core block / classic content overrides (so default pages
   like Imprint, Privacy, etc. still look readable on a black bg)
------------------------------------------------------------------ */
.entry-content,
.wp-site-blocks .entry-content,
.lh-prose {
	color: #d4d4d4;
}

.lh-prose h1,
.lh-prose h2,
.lh-prose h3 { color: var(--lh-text); }

.lh-prose p { color: #d4d4d4; }

.lh-prose a {
	color: var(--lh-link);
}

.lh-prose a:hover {
	color: var(--lh-link-hover);
}

.lh-prose img { max-width: 100%; height: auto; border-radius: var(--lh-radius); }

.lh-prose ul,
.lh-prose ol { color: #d4d4d4; padding-left: 1.25em; }

.lh-prose blockquote {
	border-left: 4px solid var(--lh-primary);
	padding: 4px 16px;
	margin: 1em 0;
	background: var(--lh-bg-card);
	border-radius: 0 var(--lh-radius) var(--lh-radius) 0;
	color: #d4d4d4;
}

.lh-prose code {
	background: var(--lh-bg-elev);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

/* ------------------------------------------------------------------
   Scrollbar styling
------------------------------------------------------------------ */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track { background: #0a0a0a; }

::-webkit-scrollbar-thumb {
	background: #2c2c2c;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover { background: #444; }

::selection {
	background: var(--lh-primary);
	color: #fff;
}

/* ------------------------------------------------------------------
   Page transitions - subtle fade-in for content under the fold
------------------------------------------------------------------ */
.lh-fade-in {
	animation: lh-fade-in 0.5s ease-out backwards;
}

.lh-fade-in[data-delay="1"] { animation-delay: 0.1s; }
.lh-fade-in[data-delay="2"] { animation-delay: 0.2s; }
.lh-fade-in[data-delay="3"] { animation-delay: 0.3s; }

@keyframes lh-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Honour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* If the fade-in animation never starts (e.g. CSP blocks anim, ancient
   browser without keyframes, or some text-mode crawler), `opacity:0` from
   the `lh-fade-in` keyframes would leave the page blank. `animation-fill-mode:
   both` makes sure the FINAL keyframe (opacity 1) sticks even if the engine
   skips intermediate frames; the JS-off branch is handled via a <noscript>
   stylesheet in header.php so the fix works even when keyframes don't fire. */
.lh-fade-in {
	animation-fill-mode: both;
}

/* Print styles (legal pages etc.) */
@media print {
	body { background: #fff; color: #000; }
	.lh-prose { color: #000; }
	.lh-prose p, .lh-prose ul, .lh-prose ol { color: #000; }
}
