/*
 * Editor Styles for Gutenberg
 * Mirrors front-end single-content layout and typography
 * ------------------------------------------------------
 */

:root {
	--font-primary: "trade-gothic-next", sans-serif;
	--font-secondary: "aktiv-grotesk", sans-serif;
	--font-impact: "impact", sans-serif;

	--color-white: #ffffff;
	--color-black: #000000;
	--color-grey: #BBBBBB;
	--color-mid-grey: #666666;
	--color-blue: #6fc1df;
	--color-coal: #1F1F1F;
}

body.block-editor-page {
	background: #fff;
}

.editor-styles-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	color: var(--color-black);
	font-family: var(--font-secondary);
	font-size: 14px;
	line-height: 1.5;
	box-sizing: border-box;
}

/* ----------------------------------------
   Paragraphs
---------------------------------------- */
.editor-styles-wrapper p {
	margin: 1em 0;
}

/* ----------------------------------------
   Post Title
---------------------------------------- */
.editor-post-title__block .editor-post-title__input {
	font-family: var(--font-primary);
	font-size: 54px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	line-height: 1;
	margin: 0 0 15px;
	color: var(--color-black);
}

/* ----------------------------------------
   Headings
---------------------------------------- */
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
	font-family: var(--font-primary);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
	color: var(--color-black);
}

.editor-styles-wrapper h1 {
	font-size: 42px;
	margin: 20px 0;
}

.editor-styles-wrapper h2 {
	font-size: 32px;
	margin: 20px 0;
}

.editor-styles-wrapper h3 {
	font-size: 22px;
	margin: 20px 0 5px;
}

/* ----------------------------------------
   Links
---------------------------------------- */
.editor-styles-wrapper a {
	text-decoration: underline;
	color: inherit;
	transition: color 0.2s ease;
}

/* ----------------------------------------
   Lists
---------------------------------------- */
.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
	margin: 1em 0 1em 1.5em;
	padding: 0;
}

/* ----------------------------------------
   Pullquote
---------------------------------------- */
.editor-styles-wrapper .wp-block-pullquote {
	font-family: 'Boozy TM', sans-serif;
	font-size: 48px;
	line-height: 0.9;
	padding: 1em 0;
	margin: 0;
	text-align: center;
}

.editor-styles-wrapper .wp-block-pullquote p {
	margin: 0;
}

.editor-styles-wrapper .wp-block-pullquote cite {
	margin-top: 15px;
	display: block;
	font-family: var(--font-primary);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 18px;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.editor-styles-wrapper .wp-block-button__link {
	border-radius: 0;
	font-family: var(--font-impact);
	text-transform: uppercase;
	font-size: 30px;
	background-color: var(--color-black);
	color: var(--color-white);
	padding: 1px 4px 4px 4px;
	line-height: 1;
	display: inline-block;
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.editor-styles-wrapper .wp-block-button__link:hover {
	color: var(--color-black);
	background-color: var(--color-white);
}

/* ----------------------------------------
   Images
---------------------------------------- */
.editor-styles-wrapper .wp-block-image {
	width: 100%;
	height: auto;
	margin: 2em 0;
}

.editor-styles-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ----------------------------------------
   Cover Block
---------------------------------------- */
.editor-styles-wrapper .wp-block-cover {
	color: var(--color-white);
	text-align: center;
}

.editor-styles-wrapper .wp-block-cover h1 {
	display: inline-block;
	font-family: var(--font-impact);
	font-weight: 400;
	text-transform: uppercase;
	background-color: var(--color-black);
	padding: 1px 4px 4px 4px;
	line-height: 1;
	margin: 0 0 20px 0;
	color: var(--color-white);
}

.editor-styles-wrapper .wp-block-cover h2 {
	font-family: var(--font-primary);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-white);
	line-height: 1.1;
	margin: 0 0 20px 0;
}

.editor-styles-wrapper .wp-block-cover p {
	font-family: var(--font-secondary);
	font-weight: 400;
	color: var(--color-white);
	line-height: 1.3;
	margin: 0;
}

/* Alignment helpers inside cover */
.editor-styles-wrapper .wp-block-cover__inner-container {
	text-align: center;
}

.editor-styles-wrapper .wp-block-cover__inner-container:has(.has-text-align-left) {
	text-align: left;
}

.editor-styles-wrapper .wp-block-cover__inner-container:has(.has-text-align-right) {
	text-align: right;
}

/* ----------------------------------------
   Video & Embeds
---------------------------------------- */
.editor-styles-wrapper iframe,
.editor-styles-wrapper embed,
.editor-styles-wrapper object,
.editor-styles-wrapper video {
	display: block;
	width: 100%;
	border: 0;
	margin-top: 2em;
	margin-bottom: 2em;
	aspect-ratio: 16 / 9;
}

.editor-styles-wrapper .wp-block-video {
	margin: 2em 0;
}

.editor-styles-wrapper .wp-block-video video {
	object-fit: contain;
}

/* Center only when the block alignment is explicitly set to "Center" */
.editor-styles-wrapper .wp-block[data-align="center"] iframe.components-sandbox,
.editor-styles-wrapper .wp-block[data-align="center"] .wp-block-embed__wrapper {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Left and right alignment respect Gutenberg’s block-level alignment attributes */
.editor-styles-wrapper .wp-block[data-align="left"] iframe.components-sandbox,
.editor-styles-wrapper .wp-block[data-align="left"] .wp-block-embed__wrapper {
	float: left;
	margin-right: 1.5em;
}

.editor-styles-wrapper .wp-block[data-align="right"] iframe.components-sandbox,
.editor-styles-wrapper .wp-block[data-align="right"] .wp-block-embed__wrapper {
	float: right;
	margin-left: 1.5em;
}

/* Default behavior (no alignment) */
.editor-styles-wrapper .wp-block-embed iframe.components-sandbox {
	width: 100% !important;
	max-width: 550px;
	display: block;
}

/* ----------------------------------------
   Misc / Utilities
---------------------------------------- */
.editor-styles-wrapper ::selection {
	color: var(--color-white);
	background: var(--color-black);
}

/* ----------------------------------------
   Mobile adjustments
---------------------------------------- */
@media (max-width: 767px) {
	.editor-post-title__block .editor-post-title__input {
		font-size: 36px;
	}

	.editor-styles-wrapper .wp-block-pullquote {
		font-size: 32px;
	}

	.editor-styles-wrapper .wp-block-cover h1 {
		font-size: 36px;
	}

	.editor-styles-wrapper .wp-block-cover h2 {
		font-size: 22px;
	}

	.editor-styles-wrapper .wp-block-cover p {
		font-size: 16px;
	}
}