/*
Theme Name: TrendyMuse WP
Theme URI: https://example.com/trendymuse-wp/
Author: TrendyMuse
Author URI: https://example.com/
Description: A premium girls fashion and lifestyle magazine theme with editorial layouts, dark mode, monetization placements, social sharing, schema markup, and Gutenberg-ready styling.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendymuse-wp
Tags: blog, news, fashion, custom-logo, custom-colors, custom-menu, featured-images, wide-blocks, threaded-comments, translation-ready
*/

:root {
	--tm-dark: #121212;
	--tm-gold: #d4af37;
	--tm-rose: #e8b4b8;
	--tm-pink: #ff5fa2;
	--tm-blush: #fce7f3;
	--tm-bg: #ffffff;
	--tm-bg-alt: #f8f5f6;
	--tm-text: #1a1a1a;
	--tm-text-muted: #646464;
	--tm-border: rgba(18, 18, 18, 0.12);
	--tm-shadow: 0 18px 55px rgba(18, 18, 18, 0.08);
	--tm-heading: "Playfair Display", Georgia, serif;
	--tm-body: "Inter", Arial, sans-serif;
	--tm-radius: 8px;
	--tm-content: 1180px;
	--tm-transition: 180ms ease;
	color-scheme: light;
}

[data-theme="dark"] {
	--tm-bg: #0f0f0f;
	--tm-bg-alt: #171717;
	--tm-text: #f9fafb;
	--tm-text-muted: #c9c9c9;
	--tm-border: rgba(255, 255, 255, 0.16);
	--tm-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tm-bg);
	color: var(--tm-text);
	font-family: var(--tm-body);
	font-size: 16px;
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	transition: background-color var(--tm-transition), color var(--tm-transition);
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--tm-pink);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

button,
.button,
.wp-block-button__link,
input[type="submit"] {
	align-items: center;
	background: var(--tm-dark);
	border: 1px solid var(--tm-dark);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 800;
	gap: 0.45rem;
	justify-content: center;
	letter-spacing: 0.08em;
	min-height: 44px;
	padding: 0.8rem 1.15rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color var(--tm-transition), border-color var(--tm-transition), color var(--tm-transition), transform var(--tm-transition);
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
	background: var(--tm-pink);
	border-color: var(--tm-pink);
	color: #fff;
	transform: translateY(-1px);
}

[data-theme="dark"] button,
[data-theme="dark"] .button,
[data-theme="dark"] .wp-block-button__link,
[data-theme="dark"] input[type="submit"] {
	background: var(--tm-gold);
	border-color: var(--tm-gold);
	color: #121212;
}

:focus-visible {
	outline: 3px solid var(--tm-pink);
	outline-offset: 3px;
}

.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;
	width: 1px;
	word-wrap: normal;
}

.skip-link {
	background: var(--tm-pink);
	color: #fff;
	font-weight: 800;
	left: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	top: 1rem;
	transform: translateY(-160%);
	z-index: 9999;
}

.skip-link:focus {
	transform: translateY(0);
}

.tm-container {
	margin-inline: auto;
	max-width: var(--tm-content);
	padding-inline: 1rem;
	width: 100%;
}

.tm-wide {
	max-width: 1440px;
}

.site-header {
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid var(--tm-border);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px);
}

[data-theme="dark"] .site-header {
	background: rgba(15, 15, 15, 0.9);
}

.tm-topbar {
	background: var(--tm-dark);
	color: #fff;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tm-topbar__inner {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	min-height: 36px;
}

.tm-social-links,
.tm-footer-socials,
.tm-share-list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-social-links a,
.tm-footer-socials a,
.tm-share-list a {
	font-weight: 800;
	text-decoration: none;
}

.tm-header-main {
	align-items: center;
	display: grid;
	gap: 1rem;
	grid-template-columns: auto 1fr auto;
	min-height: 86px;
}

.site-branding {
	min-width: 0;
}

.site-title {
	font-family: var(--tm-heading);
	font-size: clamp(1.8rem, 7vw, 3.8rem);
	font-weight: 800;
	line-height: 1;
	margin: 0;
}

.site-title a {
	text-decoration: none;
}

.site-description {
	color: var(--tm-text-muted);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	margin: 0.35rem 0 0;
	text-transform: uppercase;
}

.custom-logo-link img {
	max-height: 64px;
	width: auto;
}

.tm-nav {
	align-items: center;
	display: flex;
	justify-content: center;
}

.tm-nav ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.95rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-nav a {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.tm-header-actions {
	align-items: center;
	display: flex;
	gap: 0.55rem;
	justify-content: end;
}

.tm-icon-button {
	aspect-ratio: 1;
	background: transparent;
	border: 1px solid var(--tm-border);
	border-radius: 999px;
	color: var(--tm-text);
	min-height: 44px;
	padding: 0;
	width: 44px;
}

.tm-icon-button:hover {
	background: var(--tm-blush);
	border-color: var(--tm-pink);
	color: var(--tm-dark);
	transform: none;
}

.tm-menu-toggle {
	display: none;
}

.tm-mobile-panel {
	border-top: 1px solid var(--tm-border);
	display: none;
	padding: 1rem;
}

.tm-mobile-panel.is-open {
	display: block;
}

.tm-ad {
	align-items: center;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 95, 162, 0.12));
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	color: var(--tm-text-muted);
	display: flex;
	font-size: 0.78rem;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.08em;
	min-height: 90px;
	overflow: hidden;
	padding: 0.8rem;
	text-align: center;
	text-transform: uppercase;
}

.tm-ad > * {
	margin: 0;
}

.tm-section {
	padding-block: clamp(2rem, 6vw, 5rem);
}

.tm-section--alt {
	background: var(--tm-bg-alt);
}

.tm-section-heading {
	align-items: end;
	border-bottom: 1px solid var(--tm-border);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 0.85rem;
}

.tm-section-heading h2,
.tm-section-heading h1 {
	font-family: var(--tm-heading);
	font-size: clamp(1.8rem, 5vw, 3.2rem);
	line-height: 1.05;
	margin: 0;
}

.tm-kicker,
.cat-links a,
.tm-card__category,
.tm-badge {
	color: var(--tm-pink);
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.tm-hero {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
	min-height: clamp(460px, 62vh, 650px);
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.tm-hero__media {
	background: var(--tm-bg-alt);
	border-radius: var(--tm-radius);
	min-height: 380px;
	overflow: hidden;
	position: relative;
}

.tm-hero__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tm-placeholder-art {
	align-items: center;
	background:
		linear-gradient(120deg, rgba(18, 18, 18, 0.15), rgba(255, 95, 162, 0.22)),
		radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.24), transparent 32%),
		linear-gradient(135deg, #fce7f3, #fff 50%, #e8b4b8);
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: inherit;
	padding: 2rem;
}

.tm-placeholder-art span {
	color: rgba(18, 18, 18, 0.68);
	font-family: var(--tm-heading);
	font-size: clamp(2.2rem, 9vw, 5.5rem);
	font-weight: 800;
	line-height: 0.9;
	max-width: 8ch;
	text-align: center;
}

.tm-hero__content {
	align-self: center;
	max-width: 680px;
	padding-block: 2rem;
}

.tm-hero__title {
	font-family: var(--tm-heading);
	font-size: clamp(2.4rem, 5.8vw, 5.35rem);
	letter-spacing: 0;
	line-height: 1;
	margin: 0.45rem 0 1rem;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.tm-hero__excerpt {
	color: var(--tm-text-muted);
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin-bottom: 1.4rem;
	max-width: 58ch;
}

.tm-grid {
	display: grid;
	gap: 1.1rem;
}

.tm-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-card {
	background: var(--tm-bg);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	overflow: hidden;
	transition: border-color var(--tm-transition), transform var(--tm-transition), box-shadow var(--tm-transition);
}

.tm-card:hover {
	border-color: rgba(255, 95, 162, 0.48);
	box-shadow: var(--tm-shadow);
	transform: translateY(-3px);
}

.tm-card__media {
	aspect-ratio: 4 / 5;
	background: var(--tm-bg-alt);
	overflow: hidden;
}

.tm-card__media img {
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
	width: 100%;
}

.tm-card:hover .tm-card__media img {
	transform: scale(1.04);
}

.tm-card__body {
	padding: 1rem;
}

.tm-card__title {
	font-family: var(--tm-heading);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: 1.1;
	margin: 0.35rem 0 0.55rem;
}

.tm-card__title a {
	text-decoration: none;
}

.tm-card__meta,
.entry-meta {
	color: var(--tm-text-muted);
	font-size: 0.82rem;
}

.tm-card--horizontal {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
}

.tm-card--horizontal .tm-card__media {
	aspect-ratio: auto;
	min-height: 160px;
}

.tm-category-tile {
	align-content: end;
	aspect-ratio: 1;
	background: var(--tm-bg-alt);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	display: grid;
	min-height: 180px;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-decoration: none;
}

.tm-category-tile::after {
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.05), rgba(18, 18, 18, 0.72));
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.tm-category-tile img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	transition: transform 420ms ease;
	width: 100%;
}

.tm-category-tile:hover img {
	transform: scale(1.06);
}

.tm-category-tile__icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	color: var(--tm-dark);
	display: inline-flex;
	font-size: 1.35rem;
	height: 54px;
	justify-content: center;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 54px;
	z-index: 2;
}

.tm-category-tile__content {
	align-self: end;
	padding: 1rem;
	position: relative;
	z-index: 2;
}

.tm-category-tile h3 {
	color: #fff;
	font-family: var(--tm-heading);
	font-size: 1.7rem;
	line-height: 1;
	margin: 0;
}

.tm-newsletter {
	align-items: center;
	background: var(--tm-dark);
	color: #fff;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
	padding: clamp(1.5rem, 5vw, 3.5rem);
}

.tm-newsletter h2,
.tm-footer-cta h2 {
	font-family: var(--tm-heading);
	font-size: clamp(2rem, 6vw, 4rem);
	line-height: 0.95;
	margin: 0 0 0.7rem;
}

.tm-newsletter form,
.search-form {
	display: flex;
	gap: 0.6rem;
}

.tm-newsletter input[type="email"],
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	background: var(--tm-bg);
	border: 1px solid var(--tm-border);
	border-radius: 999px;
	color: var(--tm-text);
	min-height: 48px;
	padding: 0.75rem 1rem;
	width: 100%;
}

textarea {
	border-radius: var(--tm-radius);
	min-height: 140px;
}

.tm-instagram-grid {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tm-insta-tile {
	aspect-ratio: 1;
	background: var(--tm-bg-alt);
	border-radius: var(--tm-radius);
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.tm-insta-tile img {
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
	width: 100%;
}

.tm-insta-tile:hover img {
	transform: scale(1.06);
}

.tm-insta-tile__overlay {
	align-items: flex-end;
	background: linear-gradient(180deg, transparent, rgba(18, 18, 18, 0.68));
	color: #fff;
	display: flex;
	inset: 0;
	justify-content: space-between;
	padding: 0.85rem;
	position: absolute;
}

.tm-insta-tile__icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	color: var(--tm-pink);
	display: inline-flex;
	font-size: 1rem;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.site-main {
	min-height: 60vh;
}

.tm-layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
	padding-block: 2.5rem;
}

.entry-header {
	margin: 0 auto 1.5rem;
	max-width: 860px;
}

.entry-title {
	font-family: var(--tm-heading);
	font-size: clamp(2.2rem, 6.2vw, 5rem);
	line-height: 1;
	margin: 0.5rem 0 0.85rem;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.entry-content {
	margin-inline: auto;
	max-width: 760px;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.35rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--tm-heading);
	line-height: 1.1;
}

.entry-content h2 {
	font-size: clamp(2rem, 5vw, 3rem);
}

.entry-content img {
	border-radius: var(--tm-radius);
}

.alignwide {
	margin-inline: calc(50% - min(590px, 48vw));
	max-width: min(1180px, 96vw);
}

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

.tm-featured-image {
	margin: 0 auto 2rem;
	max-width: 1180px;
}

.tm-featured-image img {
	aspect-ratio: 16 / 9;
	border-radius: var(--tm-radius);
	object-fit: cover;
	width: 100%;
}

.tm-breadcrumbs {
	color: var(--tm-text-muted);
	font-size: 0.82rem;
	margin: 1rem 0;
}

.tm-breadcrumbs a {
	text-decoration: none;
}

.tm-progress {
	background: var(--tm-pink);
	height: 3px;
	left: 0;
	position: fixed;
	top: 0;
	transform: scaleX(0);
	transform-origin: left;
	width: 100%;
	z-index: 999;
}

.tm-author-box,
.tm-related,
.comments-area,
.widget,
.tm-toc,
.tm-style-note,
.tm-product-showcase,
.tm-trend-alert {
	background: var(--tm-bg-alt);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	padding: 1.25rem;
}

.is-style-fashion-quote {
	border-left: 4px solid var(--tm-pink);
	font-family: var(--tm-heading);
	font-size: 1.45rem;
	padding-left: 1rem;
}

.is-style-style-note {
	background: var(--tm-blush);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	padding: 1.25rem;
}

.tm-author-box {
	align-items: center;
	display: grid;
	gap: 1rem;
	grid-template-columns: 72px minmax(0, 1fr);
	margin: 2rem auto;
	max-width: 760px;
}

.tm-author-box img {
	border-radius: 999px;
}

.tm-share-bar {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0;
}

.single-post .tm-share-bar {
	position: sticky;
	top: 110px;
	z-index: 20;
}

.tm-toc {
	margin: 1.5rem auto;
	max-width: 760px;
}

.tm-toc ol {
	margin-bottom: 0;
}

.tm-post-nav {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 2rem auto;
	max-width: 860px;
}

.widget {
	margin-bottom: 1rem;
}

.widget-title,
.widget h2,
.comments-title,
.comment-reply-title {
	font-family: var(--tm-heading);
	font-size: 1.55rem;
	line-height: 1.1;
	margin: 0 0 1rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li + li {
	border-top: 1px solid var(--tm-border);
	margin-top: 0.7rem;
	padding-top: 0.7rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	border-bottom: 1px solid var(--tm-border);
	padding: 1rem 0;
}

.site-footer {
	background: var(--tm-dark);
	color: #fff;
	margin-top: 3rem;
}

.tm-footer-cta {
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	padding-block: clamp(2rem, 6vw, 4rem);
}

.tm-footer-widgets {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-block: 2rem;
}

.tm-footer-bottom {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	padding-block: 1rem;
}

.tm-footer-bottom a {
	color: #fff;
}

.tm-empty-state {
	background: var(--tm-bg-alt);
	border: 1px dashed var(--tm-border);
	border-radius: var(--tm-radius);
	padding: 2rem;
	text-align: center;
}

.tm-category-accent {
	background: linear-gradient(135deg, var(--tm-accent, var(--tm-pink)), rgba(212, 175, 55, 0.18));
	color: #fff;
	padding-block: clamp(2.5rem, 8vw, 6rem);
}

.tm-category-accent h1,
.tm-category-accent p {
	max-width: 780px;
}

.tm-category-accent h1 {
	font-family: var(--tm-heading);
	font-size: clamp(2.8rem, 9vw, 6.5rem);
	line-height: 0.9;
	margin: 0 0 1rem;
}

.tm-mobile-sticky-ad {
	bottom: 0;
	display: none;
	left: 0;
	position: fixed;
	right: 0;
	z-index: 90;
}

@media (max-width: 1024px) {
	.tm-header-main {
		grid-template-columns: 1fr auto;
	}

	.tm-nav {
		display: none;
	}

	.tm-menu-toggle {
		display: inline-flex;
	}

	.tm-hero,
	.tm-layout,
	.tm-newsletter {
		grid-template-columns: 1fr;
	}

	.tm-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.tm-topbar__inner,
	.tm-footer-bottom,
	.tm-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.tm-header-main {
		min-height: 74px;
	}

	.site-description {
		font-size: 0.68rem;
	}

	.tm-hero {
		min-height: auto;
	}

	.tm-hero__media {
		min-height: 320px;
	}

	.tm-hero__content {
		padding-block: 0.5rem 1rem;
	}

	.tm-hero__title {
		font-size: clamp(2.15rem, 13vw, 3.6rem);
	}

	.tm-grid--2,
	.tm-grid--3,
	.tm-grid--4,
	.tm-post-nav,
	.tm-footer-widgets {
		grid-template-columns: 1fr;
	}

	.tm-card--horizontal {
		grid-template-columns: 1fr;
	}

	.tm-instagram-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tm-newsletter form,
	.search-form {
		flex-direction: column;
	}

	.tm-author-box {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.tm-author-box img {
		margin-inline: auto;
	}

	.tm-mobile-sticky-ad {
		display: block;
	}

	body.has-mobile-ad {
		padding-bottom: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
