/*
 * base.css – Reset, box-sizing, CSS variables, typography, and dark-theme defaults.
 *
 * Mirrors the Movie Engine plugin's color palette so the theme and plugin
 * share a cohesive visual language without duplicating the plugin's CSS.
 *
 * @package Hello_Movie Engine
 */

/* --------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------- */
:root {
	/* Primary */
	--hello-movieengine-primary-color: #E50914;
	--hello-movieengine-primary-hover: #b2070f;
	--hello-movieengine-primary-rgb: 229, 9, 20;

	/* Neutrals */
	--hello-movieengine-bg-color: #141414;
	--hello-movieengine-surface-color: #1c1c1c;
	--hello-movieengine-surface-alt: #252525;
	--hello-movieengine-border-color: #23252c;
	--hello-movieengine-text-color: #d0d0cf;
	--hello-movieengine-text-muted: #9ca3af;
	--hello-movieengine-white: #ffffff;
	--hello-movieengine-black: #1a1b1f;

	/* Accent */
	--hello-movieengine-yellow: #ffcc00;
	--hello-movieengine-success: #22c55e;
	--hello-movieengine-danger: #ef4444;
	--hello-movieengine-info: #38bdf8;

	/* Typography */
	--hello-movieengine-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--hello-movieengine-font-heading: 'Sora', var(--hello-movieengine-font-body);

	/* Spacing */
	--hello-movieengine-header-height: 70px;
	--hello-movieengine-container-width: 1340px;
	--hello-movieengine-gap: 20px;

	/* Content */
	--hello-movieengine-content-pt: 40px;
	--hello-movieengine-content-pr: 0px;
	--hello-movieengine-content-pb: 40px;
	--hello-movieengine-content-pl: 0px;
	--hello-movieengine-sidebar-width: 300px;
	--hello-movieengine-blog-columns: 3;

	/* Transitions */
	--hello-movieengine-transition: 0.25s ease;

	/* Radius */
	--hello-movieengine-radius: 6px;
	--hello-movieengine-radius-lg: 10px;
}

/* --------------------------------------------------------
   Reset / Normalize (minimal)
   -------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background-color: var(--hello-movieengine-bg-color);
	color: var(--hello-movieengine-text-color);
	font-family: var(--hello-movieengine-font-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	display: block;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
	display: block;
}

svg {
	overflow: hidden;
	vertical-align: middle;
}

embed,
iframe,
object,
video {
	max-width: 100%;
}

figure {
	margin: 0;
}

/* --------------------------------------------------------
   Typography
   -------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hello-movieengine-font-heading);
	color: var(--hello-movieengine-white);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
	margin: 0 0 1.25em;
}

blockquote {
	margin: 0 0 1.25em;
	padding: 1em 1.5em;
	border-left: 4px solid var(--hello-movieengine-primary-color);
	background: var(--hello-movieengine-surface-color);
	border-radius: var(--hello-movieengine-radius);
}

pre {
	background: var(--hello-movieengine-surface-color);
	border: 1px solid var(--hello-movieengine-border-color);
	border-radius: var(--hello-movieengine-radius);
	padding: 1.25em;
	overflow: auto;
	font-size: 0.875em;
	line-height: 1.6;
}

code, kbd, samp, tt, var {
	font-family: 'Fira Code', monospace, monospace;
	font-size: 0.875em;
}

hr {
	border: 0;
	height: 1px;
	background: var(--hello-movieengine-border-color);
	margin: 2em 0;
}

/* --------------------------------------------------------
   Links
   -------------------------------------------------------- */
a {
	color: var(--hello-movieengine-primary-color);
	text-decoration: none;
	transition: color var(--hello-movieengine-transition);
}

a:hover,
a:focus {
	color: var(--hello-movieengine-primary-hover);
}

a:focus-visible {
	outline: 2px solid var(--hello-movieengine-primary-color);
	outline-offset: 2px;
}

/* --------------------------------------------------------
   Lists
   -------------------------------------------------------- */
ul, ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

ul { list-style: disc; }
ol { list-style: decimal; }

li > ul,
li > ol {
	margin-bottom: 0;
}

dt { font-weight: 700; color: var(--hello-movieengine-white); }
dd { margin: 0 0 1em 1.5em; }

/* --------------------------------------------------------
   Tables
   -------------------------------------------------------- */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

th, td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--hello-movieengine-border-color);
	text-align: left;
}

th {
	color: var(--hello-movieengine-white);
	font-weight: 600;
}

/* --------------------------------------------------------
   Forms (base)
   -------------------------------------------------------- */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	background: var(--hello-movieengine-surface-color);
	border: 1px solid var(--hello-movieengine-border-color);
	border-radius: var(--hello-movieengine-radius);
	color: var(--hello-movieengine-text-color);
	padding: 0.65em 1em;
	transition: border-color var(--hello-movieengine-transition);
	width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--hello-movieengine-primary-color);
	outline: none;
	box-shadow: 0 0 0 2px rgba(var(--hello-movieengine-primary-rgb), 0.35);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--hello-movieengine-primary-color);
	outline: 2px solid var(--hello-movieengine-primary-color);
	outline-offset: -2px;
	box-shadow: none;
}

/* --------------------------------------------------------
   Global focus-visible for all interactive elements
   -------------------------------------------------------- */
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--hello-movieengine-primary-color);
	outline-offset: 2px;
}

textarea {
	resize: vertical;
}

/* --------------------------------------------------------
   Accessibility
   -------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--hello-movieengine-surface-color);
	border-radius: var(--hello-movieengine-radius);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--hello-movieengine-white);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* --------------------------------------------------------
   Alignments
   -------------------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.alignwide {
	margin-left: -60px;
	margin-right: -60px;
	max-width: calc(100% + 120px);
}

.alignfull {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	max-width: 100vw;
	width: 100vw;
}

/* --------------------------------------------------------
   Selection
   -------------------------------------------------------- */
::selection {
	background: rgba(var(--hello-movieengine-primary-rgb), 0.3);
	color: var(--hello-movieengine-white);
}

/* --------------------------------------------------------
   Scrollbar (Webkit)
   -------------------------------------------------------- */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--hello-movieengine-bg-color);
}

::-webkit-scrollbar-thumb {
	background: var(--hello-movieengine-border-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--hello-movieengine-text-muted);
}
