/*
 * Make-Up Show — global design tokens and shared components.
 * Loaded on the front end AND in the block editor (add_editor_style),
 * so blocks look the same in both places.
 *
 * Author: Bilal Yasin — https://bilalyasindev.com
 */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
	/* Colours */
	--ms-white: #ffffff;
	--ms-ink: #000000;
	--ms-ink-muted: #a4a4a4;
	--ms-ink-border: #262626;
	--ms-text-muted: #5b5b5b;
	--ms-border: #e1e1e1;
	--ms-input: #d7d7d7;
	--ms-blush: #feddf0;
	--ms-fuchsia: #c80593;
	--ms-fuchsia-deep: #b20588;
	--ms-fuchsia-logo: #f507ad;
	--ms-fuchsia-block: #d9039e;

	/* Fonts */
	--ms-font-sans: "Montserrat", system-ui, sans-serif;
	--ms-font-serif: "Playfair Display", Georgia, serif;

	/* Effects */
	--ms-gradient-fuchsia: linear-gradient(135deg, var(--ms-fuchsia-deep), var(--ms-fuchsia));
	--ms-shadow-fuchsia: 0 10px 28px -10px rgba(200, 5, 147, 0.55);
	--ms-shadow-fuchsia-hover: 0 14px 34px -10px rgba(200, 5, 147, 0.7);
	--ms-shadow-lift: 0 14px 30px -18px rgba(0, 0, 0, 0.35);
	--ms-radius: 2px;

	/* Layout */
	--ms-container: 80rem;
	--ms-gutter: 1rem;
	--ms-section-space: 5rem;
}

@media (min-width: 640px) {
	:root {
		--ms-gutter: 1.5rem;
	}
}

@media (min-width: 1024px) {
	:root {
		--ms-gutter: 2.5rem;
	}
}

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.ms-container {
	width: 100%;
	max-width: var(--ms-container);
	margin-inline: auto;
	padding-inline: var(--ms-gutter);
}

.ms-section {
	padding-block: var(--ms-section-space);
}

/* Smaller vertical spacing (4rem instead of 5rem) */
.ms-section--compact {
	--ms-section-space: 4rem;
}

.ms-section--blush {
	background: var(--ms-blush);
}

.ms-section--dark {
	background: var(--ms-ink);
	color: var(--ms-white);
}

/* Section blocks reset their own margins so they stack edge to edge. */
.ms-block {
	margin-block: 0;
	font-family: var(--ms-font-sans);
}

.ms-block :where(h1, h2, h3, h4, p, figure, blockquote, ul) {
	margin: 0;
}

.ms-block :where(h1, h2, h3, h4) {
	font-family: var(--ms-font-serif);
	font-weight: 400;
}

.ms-block :where(ul) {
	padding: 0;
	list-style: none;
}

.ms-block :where(a) {
	color: inherit;
	text-decoration: none;
}

.ms-block :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
}

/* =========================================================
   ICONS
   ========================================================= */
.ms-icon {
	display: block;
	flex-shrink: 0;
}

.ms-icon--14 { width: 0.875rem; height: 0.875rem; }
.ms-icon--16 { width: 1rem; height: 1rem; }
.ms-icon--18 { width: 18px; height: 18px; }
.ms-icon--20 { width: 1.25rem; height: 1.25rem; }
.ms-icon--24 { width: 1.5rem; height: 1.5rem; }

/* =========================================================
   TYPOGRAPHY COMPONENTS
   ========================================================= */
.ms-eyebrow {
	font-family: var(--ms-font-sans);
	font-weight: 600;
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ms-fuchsia);
}

.ms-section-title {
	font-family: var(--ms-font-serif);
	font-weight: 400;
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
	line-height: 1.12;
}

.ms-eyebrow + .ms-section-title {
	margin-top: 0.75rem;
}

.ms-section-head--center {
	text-align: center;
}

.ms-section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.ms-section-head__text {
	max-width: 36rem;
	margin: 1rem auto 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--ms-text-muted);
}

.ms-section--dark .ms-section-head__text {
	color: var(--ms-ink-muted);
}

/* Underlined uppercase link */
.ms-link-arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ms-link-arrow::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1px;
	background: var(--ms-fuchsia);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.ms-link-arrow:hover::after {
	transform: scaleX(1);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0.85rem 1.6rem;
	font-family: var(--ms-font-sans);
	font-weight: 600;
	font-size: 0.72rem;
	line-height: 1.5;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--ms-radius);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ms-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ms-btn--primary {
	background: var(--ms-gradient-fuchsia);
	border: 0;
	color: var(--ms-white);
	box-shadow: var(--ms-shadow-fuchsia);
}

.ms-btn--primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: var(--ms-shadow-fuchsia-hover);
	color: var(--ms-white);
}

.ms-btn--outline-light {
	background: transparent;
	color: var(--ms-white);
	border-color: rgba(255, 255, 255, 0.7);
}

.ms-btn--outline-light:hover {
	background: var(--ms-white);
	color: var(--ms-ink);
}

.ms-btn--outline-dark {
	background: transparent;
	color: var(--ms-ink);
	border-color: var(--ms-ink);
}

.ms-btn--outline-dark:hover {
	background: var(--ms-ink);
	color: var(--ms-white);
}

.ms-btn-group {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ms-btn-group {
		flex-direction: row;
	}
}

/* =========================================================
   CARD, STARS, FIELD
   ========================================================= */
.ms-card {
	display: flex;
	flex-direction: column;
	background: var(--ms-white);
	border: 1px solid var(--ms-border);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ms-shadow-lift);
}

.ms-stars {
	display: flex;
	gap: 0.125rem;
	color: var(--ms-fuchsia);
}

.ms-stars svg {
	display: block;
	width: 0.875rem;
	height: 0.875rem;
}

.ms-stars .is-empty {
	opacity: 0.25;
}

.ms-field {
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	font: inherit;
	font-size: 0.9rem;
	background: var(--ms-white);
	border: 1px solid var(--ms-input);
	border-radius: var(--ms-radius);
}

.ms-field--dark {
	background: var(--ms-ink);
	color: var(--ms-white);
	border-color: var(--ms-ink-border);
}

.ms-field--dark::placeholder {
	color: var(--ms-ink-muted);
}

/* =========================================================
   LOGO
   ========================================================= */
.ms-logo {
	font-family: var(--ms-font-serif);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.75rem;
	letter-spacing: -0.025em;
	white-space: nowrap;
	text-decoration: none;
}

.ms-logo__dark { color: var(--ms-ink); }
.ms-logo__accent { color: var(--ms-fuchsia); }
.ms-logo--light .ms-logo__dark { color: var(--ms-white); }
.ms-logo--lg { font-size: 1.5rem; line-height: 2rem; }

.ms-logo img {
	display: block;
	width: auto;
	max-height: 2.5rem;
}

/* =========================================================
   SCREEN READER TEXT
   ========================================================= */
.ms-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================
   EDITOR HELPERS (only match inside the block editor)
   ========================================================= */
.ms-editor-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 10rem;
	padding: 1rem;
	font-size: 0.8rem;
	text-align: center;
	color: #888;
	background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 10px, #ececec 10px, #ececec 20px);
	border: 1px dashed #bbb;
}

.ms-section--dark .ms-editor-placeholder {
	color: #aaa;
	background: #111;
	border-color: #444;
}
