/*
Theme Name: Poster Maker
Description: Twenty Twenty-Five child theme with the postermaker-web header and footer.
Template: twentytwentyfive
Version: 1.1.1
Requires at least: 6.7
Requires PHP: 7.2
Text Domain: postermaker
*/

.pm-nav,
.pm-drawer,
.pm-footer {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
}

.pm-nav *,
.pm-drawer *,
.pm-footer * {
	box-sizing: border-box;
}

/* Twenty Twenty-Five outlines every focused element, even on mouse clicks. */
.pm-nav :focus:not(:focus-visible),
.pm-drawer :focus:not(:focus-visible),
.pm-footer :focus:not(:focus-visible) {
	outline: none;
}

.pm-accent {
	color: #E91E63;
}

.pm-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #1a1a2e;
	text-decoration: none;
}

.pm-brand img {
	border-radius: 8px;
	object-fit: cover;
}

/* Header */

.pm-nav {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid transparent;
}

.pm-nav.is-scrolled {
	background: rgba(255, 255, 255, 0.98);
	border-bottom-color: #e5e7eb;
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}

.pm-nav-spacer {
	height: 64px;
}

.pm-nav__inner {
	max-width: 1320px;
	height: 64px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pm-nav__left {
	display: flex;
	align-items: center;
	gap: 32px;
}

.pm-nav__links {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pm-nav__right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pm-nav__link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #4a4a68;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.pm-nav__link:hover {
	background: #f3f4f6;
}

.pm-nav__link.is-active,
.pm-dropdown:hover > .pm-nav__link,
.pm-dropdown:focus-within > .pm-nav__link {
	color: #E91E63;
}

.pm-nav__link svg {
	transition: transform 0.2s;
}

.pm-dropdown:hover > .pm-nav__link svg,
.pm-dropdown:focus-within > .pm-nav__link svg {
	transform: rotate(180deg);
}

.pm-dropdown {
	position: relative;
}

.pm-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	margin-top: 4px;
	padding: 12px;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
	visibility: hidden;
	/* The delay gives the pointer time to cross from the trigger to the panel. */
	transition: visibility 0s linear 0.15s;
}

.pm-panel::before {
	content: '';
	position: absolute;
	top: -5px;
	left: 0;
	right: 0;
	height: 5px;
}

.pm-dropdown:hover > .pm-panel,
.pm-dropdown:focus-within > .pm-panel {
	visibility: visible;
	transition-delay: 0s;
}

.pm-panel--create {
	width: 420px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.pm-panel--templates {
	width: 240px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px;
}

.pm-panel--features {
	width: 320px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pm-panel__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	text-decoration: none;
}

.pm-panel__item:hover {
	background: #f9fafb;
}

.pm-panel__icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fce4ec;
	color: #E91E63;
}

.pm-panel__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #1f2937;
}

.pm-panel__desc {
	display: block;
	font-size: 12px;
	color: #9ca3af;
}

.pm-panel__text-item {
	display: block;
	padding: 10px 16px;
	border-radius: 12px;
	font-size: 14px;
	color: #374151;
	text-decoration: none;
}

.pm-panel__text-item:hover {
	background: #f9fafb;
	color: #E91E63;
}

.pm-nav__signin {
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
}

.pm-nav__signin:hover {
	background: #f3f4f6;
	color: #111827;
}

.pm-nav__cta {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	border-radius: 10px;
	background: linear-gradient(135deg, #E91E63, #C2185B);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.pm-nav__toggle {
	display: none;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
}

.pm-nav__toggle:hover {
	background: #f3f4f6;
}

.pm-nav__toggle span {
	display: flex;
}

.pm-nav__toggle-close,
.pm-nav__toggle[aria-expanded="true"] .pm-nav__toggle-open {
	display: none !important;
}

.pm-nav__toggle[aria-expanded="true"] .pm-nav__toggle-close {
	display: flex !important;
}

/* Mobile drawer */

.pm-drawer {
	position: fixed;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 0;
	z-index: 40;
}

.pm-drawer[hidden] {
	display: none;
}

.pm-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
}

.pm-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 100%);
	height: 100%;
	padding: 80px 24px 24px;
	overflow-y: auto;
	background: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.pm-drawer__title {
	margin: 16px 0 8px;
	padding-left: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9ca3af;
}

.pm-drawer__title:first-child {
	margin-top: 0;
}

.pm-drawer__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
	color: #374151;
	text-decoration: none;
}

.pm-drawer__link .pm-accent {
	display: flex;
}

.pm-drawer__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #f3f4f6;
}

.pm-drawer__primary,
.pm-drawer__secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 0;
	border-radius: 10px;
	font-size: 14px;
	text-decoration: none;
}

.pm-drawer__primary {
	background: linear-gradient(135deg, #E91E63, #C2185B);
	color: #fff;
	font-weight: 600;
}

.pm-drawer__secondary {
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	font-weight: 500;
}

/* Footer */

.pm-footer {
	background: #0a0a0f;
	color: #d1d5db;
}

.pm-footer__container {
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
}

.pm-footer__cta {
	border-bottom: 1px solid #1f2937;
}

.pm-footer__cta-inner {
	padding-top: 64px;
	padding-bottom: 64px;
	text-align: center;
}

.pm-footer__cta h2 {
	margin: 0 0 16px;
	text-wrap: wrap;
	font-family: inherit;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: #fff;
}

.pm-footer__cta p {
	max-width: 560px;
	margin: 0 auto 32px;
	font-size: 18px;
	line-height: 1.6;
	color: #9ca3af;
}

.pm-footer__cta-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.pm-footer__btn-primary,
.pm-footer__btn-secondary {
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	border-radius: 12px;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.2s;
}

.pm-footer__btn-primary {
	background: linear-gradient(135deg, #E91E63, #C2185B);
	color: #fff;
	font-weight: 700;
}

.pm-footer__btn-primary:hover {
	background: linear-gradient(135deg, #d81557, #a1144a);
}

.pm-footer__btn-secondary {
	border: 1px solid #374151;
	background: transparent;
	color: #d1d5db;
	font-weight: 500;
}

.pm-footer__btn-secondary:hover {
	border-color: #6b7280;
	color: #fff;
}

.pm-footer__links {
	padding-top: 64px;
	padding-bottom: 64px;
}

.pm-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
	gap: 40px;
}

.pm-brand--dark {
	margin-bottom: 20px;
	color: #fff;
}

.pm-footer__about {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.7;
	color: #6b7280;
}

.pm-footer__socials {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pm-footer__socials a {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #1f2937;
	color: #9ca3af;
	transition: all 0.2s;
}

.pm-footer__socials a:hover {
	background: #374151;
	color: #fff;
}

.pm-footer__grid h3 {
	margin: 0 0 16px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

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

.pm-footer__grid li {
	margin-bottom: 10px;
}

.pm-footer__grid li a {
	font-size: 14px;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s;
}

.pm-footer__grid li a:hover {
	color: #d1d5db;
}

.pm-footer__download {
	border-top: 1px solid #1f2937;
	background: #0f0f14;
}

.pm-footer__download-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.pm-footer__download-text {
	text-align: center;
}

.pm-footer__download-text h3 {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
}

.pm-footer__download-text p {
	margin: 0;
	font-size: 14px;
	color: #9ca3af;
}

.pm-footer__stores {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.pm-store {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 200px;
	padding: 10px 20px;
	border: 1.5px solid #fff;
	border-radius: 10px;
	background: #000;
	color: #fff;
	text-decoration: none;
	transition: all 0.2s;
}

.pm-store:hover {
	background: #1a1a1a;
	transform: translateY(-2px);
}

.pm-store svg {
	flex-shrink: 0;
}

.pm-store__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.pm-store__small {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.3px;
}

.pm-store__name {
	margin-top: 2px;
	font-size: 18px;
	font-weight: 600;
}

.pm-footer__bottom {
	border-top: 1px solid #1f2937;
}

.pm-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.pm-footer__bottom p {
	margin: 0;
	font-size: 14px;
	color: #4b5563;
}

.pm-footer__legal {
	display: flex;
	align-items: center;
	gap: 24px;
}

.pm-footer__legal a {
	font-size: 14px;
	color: #4b5563;
	text-decoration: none;
	transition: color 0.2s;
}

.pm-footer__legal a:hover {
	color: #d1d5db;
}

@media (max-width: 1024px) {
	.pm-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1023px) {
	.pm-nav__links,
	.pm-nav__signin {
		display: none;
	}

	.pm-nav__toggle {
		display: flex;
	}
}

@media (max-width: 640px) {
	.pm-footer__grid {
		grid-template-columns: 1fr;
	}

	.pm-nav__inner,
	.pm-footer__container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* The logo and CTA don't fit next to the toggle here; the drawer has the CTA. */
@media (max-width: 480px) {
	.pm-nav__cta {
		display: none;
	}
}
