/*
Theme Name: Showreel
Theme URI: https://example.com/showreel
Author: Ammar Hassan
Description: A dark, cinematic block theme for video editors, motion designers and creative portfolios. Includes a Projects post type, a hero, a portfolio grid, services and contact patterns. Fully editable in the Site Editor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: showreel
Tags: portfolio, blog, one-column, full-site-editing, block-patterns, custom-colors, dark-mode, wide-blocks, style-variations
*/

/* Most styling lives in theme.json. These are the small extras it can't express. */

html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

a { text-underline-offset: 0.2em; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* Eyebrow labels */
.is-style-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

/* Project cards */
.project-card {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	transition: transform 0.35s ease, border-color 0.35s ease;
}

.project-card:hover {
	transform: translateY(-6px);
	border-color: var(--wp--preset--color--accent);
}

.project-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }

.project-card .wp-block-post-featured-image img {
	transition: transform 0.6s ease;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.project-card:hover .wp-block-post-featured-image img { transform: scale(1.06); }

.project-card .wp-block-post-title a { text-decoration: none; }

/* Buttons */
.wp-block-button__link { transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }

/* Outline buttons on dark */
.is-style-outline > .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
	background: transparent;
}

.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Hero glow */
.hero-glow { position: relative; isolation: isolate; }

.hero-glow::before {
	content: "";
	position: absolute;
	inset: -10% -10% auto auto;
	width: 60%;
	height: 80%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--wp--preset--color--accent) 28%, transparent), transparent);
	z-index: -1;
	pointer-events: none;
}

/* Embedded video: keep rounded */
.wp-block-embed, .wp-block-video video { border-radius: 12px; overflow: hidden; }

/* Navigation */
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], textarea {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	padding: 0.8em 1em;
	font: inherit;
	width: 100%;
}

input:focus, textarea:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
