/*
Theme Name: GlamNews
Theme URI: https://example.com/glamnews
Author: Codex
Author URI: https://example.com
Description: A glossy magazine-style WordPress theme inspired by the provided GlamNews mockup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: glamnews
Tags: blog, news, magazine, custom-logo, featured-images, responsive-layout
*/

:root {
	--pink: #ed1e64;
	--pink-dark: #cb0f4e;
	--pink-soft: #fff0f5;
	--ink: #121212;
	--muted: #676767;
	--line: #e9e4e6;
	--paper: #ffffff;
	--wash: #faf7f8;
	--gold: #c69a55;
	--radius: 8px;
	--shadow: 0 18px 45px rgba(25, 20, 22, 0.10);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

a {
	color: inherit;
	text-decoration: none;
}

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

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

button,
input {
	font: inherit;
}

.container {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 24px;
	width: 100%;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.skip-link:focus {
	background: #fff;
	clip: auto;
	height: auto;
	left: 16px;
	padding: 10px 14px;
	top: 16px;
	width: auto;
	z-index: 1000;
}

.trend-bar {
	background: var(--pink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.trend-inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 42px;
}

.trend-links,
.social-links {
	align-items: center;
	display: flex;
	gap: 18px;
}

.trend-links a {
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.trend-links a::before {
	content: "\2022";
	margin-right: 16px;
}

.social-links a,
.footer-social a {
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	display: inline-flex;
	height: 26px;
	justify-content: center;
	width: 26px;
}

.masthead {
	align-items: center;
	display: grid;
	gap: 28px;
	grid-template-columns: auto 1fr auto;
	min-height: 104px;
}

.site-logo,
.footer-logo {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 47px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 0.95;
}

.site-logo span,
.footer-logo span {
	color: var(--pink);
}

.site-tagline {
	color: #222;
	font-size: 12px;
	letter-spacing: 4px;
	margin: 8px 0 0;
	text-align: center;
}

.primary-navigation ul {
	align-items: center;
	display: flex;
	gap: 30px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-navigation a {
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
}

.primary-navigation li:last-child a {
	color: var(--pink);
}

.header-search {
	align-items: center;
	display: flex;
	gap: 4px;
}

.header-search input {
	background: #f7f7f7;
	border: 1px solid transparent;
	border-radius: 999px;
	max-width: 0;
	opacity: 0;
	padding: 8px 0;
	transition: max-width 180ms ease, opacity 180ms ease, padding 180ms ease;
	width: 170px;
}

.header-search:focus-within input,
.header-search:hover input {
	max-width: 170px;
	opacity: 1;
	padding: 8px 12px;
}

.header-search button,
.menu-toggle {
	background: transparent;
	border: 0;
	cursor: pointer;
}

.header-search button {
	font-size: 32px;
	line-height: 1;
}

.menu-toggle {
	display: none;
	height: 42px;
	width: 42px;
}

.menu-toggle span {
	background: var(--ink);
	display: block;
	height: 2px;
	margin: 7px auto;
	width: 24px;
}

.top-ad {
	padding-bottom: 28px;
}

.wide-ad,
.bottom-ad > div {
	align-items: center;
	background-position: center;
	background-size: cover;
	display: flex;
	height: 108px;
	justify-content: center;
	position: relative;
}

.wide-ad span,
.bottom-ad span,
.slim-ad span,
.side-ad span {
	color: #686868;
	font-size: 9px;
	position: absolute;
	text-transform: uppercase;
	top: 10px;
}

.lead-layout {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) 300px;
}

.lead-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1.72fr) minmax(230px, 1fr);
}

.small-story-stack {
	display: grid;
	gap: 14px;
}

.story-card {
	background-color: #ddd;
	background-position: center;
	background-size: cover;
	border-radius: var(--radius);
	min-height: 184px;
	overflow: hidden;
	position: relative;
}

.story-card > a {
	inset: 0;
	position: absolute;
	z-index: 2;
}

.story-card::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.82) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.story-card-large {
	min-height: 400px;
}

.story-overlay {
	bottom: 0;
	color: #fff;
	left: 0;
	padding: 22px;
	position: absolute;
	right: 0;
	z-index: 1;
}

.pill {
	background: var(--pink);
	border-radius: 3px;
	color: #fff;
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	margin: 0 6px 10px 0;
	padding: 6px 9px;
	text-transform: uppercase;
}

.pill.secondary {
	margin-top: 88px;
}

.story-card h1,
.story-card h2,
.newsletter-band h2,
.newsletter-card h2,
.single-header h1 {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 0;
}

.story-card h1 {
	font-size: clamp(29px, 3vw, 40px);
	line-height: 1.03;
	margin: 0 0 8px;
	max-width: 560px;
}

.story-card h2 {
	font-size: 22px;
	line-height: 1.13;
	margin: 0 0 8px;
}

.story-card p {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 10px;
	max-width: 500px;
}

.meta {
	font-size: 13px;
	font-weight: 700;
}

.home-sidebar,
.below-sidebar {
	display: grid;
	gap: 20px;
}

.side-ad {
	background-position: center;
	background-size: cover;
	border-radius: var(--radius);
	min-height: 254px;
	position: relative;
}

.product-ad {
	min-height: 266px;
}

.ranking-panel,
.newsletter-card,
.category-card,
.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgba(20, 20, 20, 0.04);
}

.tabs {
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: 1fr 1fr;
	text-align: center;
}

.tabs span {
	font-size: 13px;
	font-weight: 800;
	padding: 14px 10px;
	text-transform: uppercase;
}

.tabs span:first-child {
	border-bottom: 4px solid var(--pink);
	color: var(--pink);
}

.ranking-panel ol {
	list-style: none;
	margin: 0;
	padding: 0 18px 8px;
}

.ranking-panel li {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: 28px 1fr;
	padding: 14px 0;
}

.ranking-panel strong {
	font-size: 24px;
}

.ranking-panel a {
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.ranking-panel small,
.article-mini small {
	color: var(--muted);
	font-size: 12px;
}

.newsletter-band {
	align-items: center;
	background: linear-gradient(90deg, #fff3f7 0%, #ffffff 54%, #fff0f4 100%);
	border-radius: var(--radius);
	display: grid;
	gap: 24px;
	grid-template-columns: 96px 1fr minmax(280px, 360px);
	margin-top: 18px;
	padding-bottom: 18px;
	padding-top: 18px;
}

.mail-icon {
	align-items: center;
	background: var(--pink);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 42px;
	height: 92px;
	justify-content: center;
	width: 92px;
}

.newsletter-band span:first-child {
	color: var(--pink);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.newsletter-band h2,
.newsletter-card h2 {
	font-size: 26px;
	line-height: 1.08;
	margin: 3px 0 8px;
}

.newsletter-band p,
.newsletter-card p,
.footer-grid p {
	margin: 0;
}

.newsletter-band form,
.newsletter-card form,
.footer-newsletter {
	display: grid;
	gap: 10px;
}

.newsletter-band input,
.newsletter-card input,
.footer-newsletter input {
	border: 1px solid #d8d3d5;
	border-radius: 5px;
	padding: 12px 14px;
	width: 100%;
}

.newsletter-band button,
.newsletter-card button,
.footer-newsletter button,
.pink-button {
	background: var(--pink);
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	padding: 12px 16px;
	text-align: center;
	text-transform: uppercase;
}

.checks {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.checks span {
	color: #202020;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
}

.category-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(5, 1fr);
	margin-top: 20px;
}

.category-card {
	padding: 14px;
}

.category-title {
	align-items: center;
	color: var(--pink);
	display: flex;
	font-size: 12px;
	font-weight: 800;
	gap: 8px;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.category-title span {
	font-size: 19px;
}

.category-card img {
	aspect-ratio: 1.38;
	border-radius: 4px;
	object-fit: cover;
	width: 100%;
}

.category-card p {
	font-size: 14px;
	margin: 14px 0;
}

.mini-button,
.outline-button,
.promo-card a {
	border: 1px solid #bbb;
	border-radius: 4px;
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	padding: 8px 12px;
	text-transform: uppercase;
}

.slim-ad {
	align-items: center;
	background: linear-gradient(90deg, #efefef, #dedede, #f3f3f3);
	color: #6b6b6b;
	display: flex;
	height: 58px;
	justify-content: center;
	margin-top: 22px;
	position: relative;
}

.slim-ad strong {
	font-size: 20px;
	font-weight: 500;
}

.content-with-sidebar {
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1fr) 300px;
	margin-top: 24px;
}

.section-heading {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
}

.section-heading h2,
.archive-header h1 {
	font-size: 17px;
	margin: 0;
	text-transform: uppercase;
}

.section-heading a {
	color: var(--pink);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.article-row {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(5, 1fr);
}

.article-mini img {
	aspect-ratio: 1.22;
	border-radius: 6px;
	object-fit: cover;
	width: 100%;
}

.article-mini h3 {
	font-size: 14px;
	line-height: 1.25;
	margin: 10px 0 4px;
}

.fashion-ad {
	min-height: 210px;
}

.newsletter-card {
	background: linear-gradient(180deg, #fff0f5 0%, #fff 100%);
	padding: 22px;
	text-align: center;
}

.newsletter-card .mail-icon {
	height: 78px;
	margin: -10px auto 18px;
	width: 78px;
}

.newsletter-card h2 {
	color: var(--pink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	text-transform: uppercase;
}

.newsletter-card ul {
	font-size: 13px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	text-align: left;
}

.newsletter-card li::before {
	content: "\2713";
	margin-right: 6px;
}

.promo-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 26px;
}

.promo-card {
	background-color: #fff3f6;
	background-position: right center;
	background-repeat: no-repeat;
	background-size: auto 100%;
	border-radius: var(--radius);
	min-height: 126px;
	padding: 22px;
}

.promo-card span {
	color: var(--pink);
	display: block;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.promo-card h2 {
	font-size: 18px;
	line-height: 1.2;
	margin: 0 0 12px;
	max-width: 300px;
}

.bottom-ad {
	margin-top: 16px;
	padding-bottom: 22px;
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 28px 0 18px;
}

.footer-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1.45fr 0.8fr 0.8fr 1.15fr 1.05fr;
}

.footer-logo {
	font-size: 27px;
	margin-bottom: 12px;
}

.footer-grid h3 {
	font-size: 13px;
	margin: 0 0 12px;
	text-transform: uppercase;
}

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

.footer-grid li,
.footer-grid p {
	font-size: 13px;
	line-height: 1.45;
}

.footer-social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.footer-social a {
	background: #f1eff0;
}

.footer-newsletter {
	grid-template-columns: 1fr auto;
}

.outline-button {
	margin-top: 14px;
}

.copyright {
	color: var(--muted);
	font-size: 12px;
	padding-top: 16px;
}

.archive-layout,
.single-layout {
	padding-bottom: 56px;
	padding-top: 28px;
}

.post-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, 1fr);
}

.post-card {
	overflow: hidden;
}

.post-card-image img {
	aspect-ratio: 1.35;
	object-fit: cover;
	width: 100%;
}

.post-card-body {
	padding: 18px;
}

.post-card .post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.post-card .post-categories a,
.single-header .post-categories a {
	color: var(--pink);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.post-card h2 {
	font-size: 23px;
	line-height: 1.12;
	margin: 0 0 10px;
}

.single-article {
	margin: 0 auto;
	max-width: 820px;
}

.single-header {
	text-align: center;
}

.single-header h1 {
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.02;
	margin: 12px 0;
}

.single-meta {
	color: var(--muted);
}

.single-hero img {
	border-radius: var(--radius);
	margin: 26px 0;
	width: 100%;
}

.entry-content {
	font-size: 18px;
}

.entry-content a {
	color: var(--pink);
	text-decoration: underline;
}

.empty-state {
	background: var(--pink-soft);
	border-radius: var(--radius);
	padding: 48px;
	text-align: center;
}

.pagination,
.nav-links {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 28px;
}

.page-numbers {
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 8px 12px;
}

.page-numbers.current {
	background: var(--pink);
	color: #fff;
}

@media (max-width: 1080px) {
	.masthead {
		gap: 18px;
		grid-template-columns: auto auto auto;
	}

	.primary-navigation ul {
		gap: 18px;
	}

	.lead-layout,
	.content-with-sidebar {
		grid-template-columns: 1fr;
	}

	.home-sidebar,
	.below-sidebar {
		grid-template-columns: repeat(2, 1fr);
	}

	.category-grid,
	.article-row {
		grid-template-columns: repeat(3, 1fr);
	}

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

@media (max-width: 820px) {
	.container {
		padding: 0 18px;
	}

	.trend-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		padding-bottom: 10px;
		padding-top: 10px;
	}

	.trend-links {
		flex-wrap: wrap;
		gap: 8px 14px;
	}

	.trend-links a::before {
		margin-right: 10px;
	}

	.masthead {
		grid-template-columns: 1fr auto auto;
		min-height: 88px;
	}

	.site-logo {
		font-size: 36px;
	}

	.site-tagline {
		font-size: 10px;
		letter-spacing: 2px;
		text-align: left;
	}

	.menu-toggle {
		display: block;
	}

	.primary-navigation {
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		display: none;
		grid-column: 1 / -1;
		margin: 0 -18px;
		padding: 18px;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation ul {
		align-items: flex-start;
		flex-direction: column;
	}

	.lead-grid {
		grid-template-columns: 1fr;
	}

	.story-card-large {
		min-height: 370px;
	}

	.newsletter-band {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.newsletter-band .mail-icon {
		margin: 0 auto;
	}

	.category-grid,
	.article-row,
	.promo-grid,
	.post-grid,
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.social-links {
		display: none;
	}

	.header-search input {
		display: none;
	}

	.story-card-large {
		min-height: 430px;
	}

	.home-sidebar,
	.below-sidebar,
	.category-grid,
	.article-row,
	.promo-grid,
	.post-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.footer-newsletter {
		grid-template-columns: 1fr;
	}

	.empty-state {
		padding: 34px 20px;
	}
}
