/*
Theme Name: Listicle Pop
Description: Bold, fast, mobile-first theme for Top 20 listicle sites. Built-in Next / Previous pager for <!--nextpage--> posts, post sidebar, 3x3 related lists, ad slots and Customizer controls.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Author: You
Text Domain: listicle-pop
*/

:root {
	--lt-ink: #1a1340;
	--lt-pop: #ffc400;
	--lt-hot: #e5197d;
	--lt-soft: #f3efff;
	--lt-track: #ddd5fa;
	--lt-page: #faf8ff;
	--lt-mint: #7fe3d5;
	--lt-muted: #5f5a85;
	--lt-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
	--lt-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lt-page);
	color: var(--lt-ink);
	font-family: var(--lt-body);
	font-size: 17px;
	line-height: 1.6;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--lt-ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--lt-ink); color: #fff; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lt-hot); outline-offset: 3px; }

.lt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lt-narrow { max-width: 780px; }

/* ---------- Header ---------- */
.lt-header { background: var(--lt-pop); border-bottom: 3px solid var(--lt-ink); }
.lt-header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.lt-logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--lt-display); font-weight: 800; font-size: 28px; line-height: 1;
	text-decoration: none; letter-spacing: -0.5px;
}
.lt-logo-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--lt-hot); color: #fff;
	border: 3px solid var(--lt-ink); border-radius: 12px;
	box-shadow: 3px 3px 0 var(--lt-ink);
	font-size: 18px; transform: rotate(-6deg);
}
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { max-height: 52px; width: auto; }

.lt-nav { flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lt-nav ul { display: flex; gap: 8px; margin: 0; padding: 2px 2px 6px; list-style: none; white-space: nowrap; }
.lt-nav a {
	display: block; padding: 6px 14px;
	border: 2px solid var(--lt-ink); border-radius: 999px;
	background: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
}
.lt-nav a:hover, .lt-nav .current-menu-item a, .lt-nav .current-cat a { background: var(--lt-ink); color: #fff; }
@media (min-width: 760px) {
	.lt-nav { flex: 1 1 auto; overflow: visible; }
	.lt-nav ul { justify-content: flex-end; flex-wrap: wrap; white-space: normal; }
}

/* ---------- Hero ---------- */
.lt-hero {
	position: relative; overflow: hidden;
	margin: 30px 0 26px; padding: 34px 26px 36px;
	background: #fff;
	border: 3px solid var(--lt-ink); border-radius: 24px;
	box-shadow: 8px 8px 0 var(--lt-ink);
}
.lt-hero::after {
	content: "20";
	position: absolute; right: -8px; bottom: -34px;
	font-family: var(--lt-display); font-weight: 800;
	font-size: clamp(150px, 30vw, 280px); line-height: 1;
	color: var(--lt-pop);
	-webkit-text-stroke: 3px var(--lt-ink);
	pointer-events: none;
}
.lt-hero > * { position: relative; z-index: 1; }
.lt-hero h1, .lt-page-title {
	margin: 0; max-width: 16ch;
	font-family: var(--lt-display); font-weight: 800;
	font-size: clamp(34px, 7.5vw, 62px); line-height: 1; letter-spacing: -1.5px;
}
.lt-hero p { max-width: 36ch; margin: 14px 0 0; font-size: 19px; color: var(--lt-muted); }
.lt-page-title { max-width: none; margin: 30px 0 20px; font-size: clamp(30px, 6vw, 48px); }

.lt-btn {
	display: inline-flex; align-items: center; margin-top: 22px;
	min-height: 52px; padding: 0 26px;
	background: var(--lt-pop); color: var(--lt-ink);
	border: 3px solid var(--lt-ink); border-radius: 14px;
	box-shadow: 4px 4px 0 var(--lt-ink);
	font-size: 17px; font-weight: 800; text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
}
.lt-btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--lt-ink); }

/* ---------- Cards ---------- */
.lt-grid {
	display: grid; gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	margin: 24px 0 36px;
}
.lt-card {
	background: #fff;
	border: 3px solid var(--lt-ink); border-radius: 20px; overflow: hidden;
	box-shadow: 5px 5px 0 var(--lt-ink);
	transition: transform .12s ease, box-shadow .12s ease;
}
.lt-card:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--lt-ink); }
.lt-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.lt-card-media { position: relative; display: block; overflow: hidden; border-bottom: 3px solid var(--lt-ink); }
.lt-card-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.lt-card:hover .lt-card-img { transform: scale(1.05); }
.lt-card-fallback {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 3 / 2;
	font-family: var(--lt-display); font-weight: 800; font-size: 48px; letter-spacing: -1px;
}
.lt-c0 { background: var(--lt-pop); }
.lt-c1 { background: var(--lt-hot); color: #fff; }
.lt-c2 { background: var(--lt-track); }
.lt-c3 { background: var(--lt-mint); }
.lt-card-cat {
	position: absolute; left: 12px; top: 12px;
	padding: 3px 12px;
	background: #fff; border: 2px solid var(--lt-ink); border-radius: 999px;
	font-size: 12px; font-weight: 700; color: var(--lt-ink);
}
.lt-card-title {
	flex: 1; margin: 14px 18px 12px;
	font-family: var(--lt-display); font-weight: 800;
	font-size: 21px; line-height: 1.15; color: var(--lt-ink);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lt-card-foot {
	display: flex; align-items: center; justify-content: space-between;
	margin: 0 18px 16px; padding-top: 12px;
	border-top: 2px dashed var(--lt-track);
	font-size: 14px; font-weight: 800; color: var(--lt-ink);
}
.lt-arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	background: var(--lt-pop); border: 2px solid var(--lt-ink); border-radius: 50%;
}
.lt-arrow::after {
	content: ""; width: 8px; height: 8px; margin-left: -3px;
	border-top: 3px solid var(--lt-ink); border-right: 3px solid var(--lt-ink);
	transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.lt-section { margin: 8px 0 18px; }
.lt-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; }
.lt-section-head h2 {
	margin: 0; position: relative; padding-bottom: 10px;
	font-family: var(--lt-display); font-weight: 800;
	font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.5px;
}
.lt-section-head h2::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 54px; height: 6px; background: var(--lt-hot); border-radius: 6px;
}
.lt-section .lt-grid { margin-top: 16px; }
.lt-archive-desc { margin: -8px 0 20px; font-size: 18px; color: var(--lt-muted); }

/* ---------- Single post layout ---------- */
.lt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; }
@media (min-width: 1020px) {
	.lt-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
}
.lt-no-sidebar .lt-layout { grid-template-columns: minmax(0, 780px); justify-content: center; }

.lt-single { padding-bottom: 20px; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lt-chip {
	display: inline-block; padding: 3px 12px; background: var(--lt-pop);
	border: 2px solid var(--lt-ink); border-radius: 999px;
	font-size: 13px; font-weight: 700; text-decoration: none; color: var(--lt-ink);
}
.lt-chip:hover { background: var(--lt-ink); color: #fff; }
.lt-single h1 {
	margin: 0 0 12px;
	font-family: var(--lt-display); font-weight: 800;
	font-size: clamp(32px, 6.5vw, 54px); line-height: 1.02; letter-spacing: -1.2px;
}
.lt-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; color: var(--lt-muted); }
.lt-meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lt-hot); }

.lt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.lt-share-label { margin-right: 4px; font-size: 14px; font-weight: 800; }
.lt-share-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; background: #fff;
	border: 2px solid var(--lt-ink); border-radius: 999px;
	font-size: 14px; font-weight: 700; text-decoration: none; color: var(--lt-ink);
}
.lt-share-btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lt-ink); }
.lt-share-whatsapp::before { background: #25d366; }
.lt-share-facebook::before { background: #1877f2; }
.lt-share-x::before { background: #000; }
.lt-share-btn:hover { background: var(--lt-pop); }

.lt-hero-img {
	display: block; width: 100%; margin: 0 0 24px;
	border: 3px solid var(--lt-ink); border-radius: 20px;
	box-shadow: 6px 6px 0 var(--lt-ink);
}

/* ---------- Post content ---------- */
.entry { font-size: 18px; line-height: 1.72; }
.entry > *:first-child { margin-top: 0; }
.entry p { margin: 0 0 1.15em; }
.entry h2, .entry h3 {
	margin: 1.6em 0 0.55em;
	font-family: var(--lt-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px;
}
.entry h2 { font-size: clamp(26px, 5.5vw, 36px); }
.entry h3 { font-size: clamp(22px, 4.5vw, 28px); }
.lt-num {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 1.6em; height: 1.6em; padding: 0 .3em; margin-right: 12px;
	background: var(--lt-hot); color: #fff;
	border: 3px solid var(--lt-ink); border-radius: 12px;
	box-shadow: 3px 3px 0 var(--lt-ink);
	font-size: .8em; line-height: 1; vertical-align: .08em;
}
.entry img { display: block; border: 3px solid var(--lt-ink); border-radius: 16px; margin: 14px 0; }
.entry figure { margin: 14px 0; }
.entry figcaption, .wp-caption-text { font-size: 14px; color: var(--lt-muted); margin-top: 6px; }
.entry a { color: var(--lt-hot); font-weight: 700; }
.entry blockquote {
	margin: 1.4em 0; padding: 16px 20px;
	background: #fff; border: 3px solid var(--lt-ink); border-radius: 16px;
	box-shadow: 4px 4px 0 var(--lt-ink);
}
.entry ul, .entry ol { padding-left: 1.3em; }

/* ---------- Sidebar ---------- */
.lt-sidebar { display: flex; flex-direction: column; gap: 26px; }
.lt-widget {
	padding: 20px;
	background: #fff;
	border: 3px solid var(--lt-ink); border-radius: 20px;
	box-shadow: 5px 5px 0 var(--lt-ink);
}
.lt-widget-title {
	position: relative; margin: 0 0 18px; padding-bottom: 10px;
	font-family: var(--lt-display); font-weight: 800; font-size: 22px; letter-spacing: -0.3px;
}
.lt-widget-title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 40px; height: 5px; background: var(--lt-hot); border-radius: 5px;
}
.lt-widget ul, .lt-widget ol { margin: 0; padding: 0; list-style: none; }
.lt-widget li { padding: 7px 0; font-size: 15px; }
.lt-widget a { font-weight: 700; text-decoration: none; }
.lt-widget a:hover { color: var(--lt-hot); }
.lt-widget .lt-chips { margin: 0; }

.lt-fresh li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px dashed var(--lt-track); }
.lt-fresh li:first-child { border-top: 0; padding-top: 0; }
.lt-fresh-n { flex: 0 0 auto; min-width: 26px; font-family: var(--lt-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--lt-hot); }
.lt-fresh-img { flex: 0 0 auto; width: 58px; height: 58px; object-fit: cover; border: 2px solid var(--lt-ink); border-radius: 12px; }
.lt-fresh-link { font-size: 15px; line-height: 1.25; }

/* ---------- Ads (always spaced from the pager buttons) ---------- */
.lt-ad-wrap { clear: both; margin: 28px auto; min-height: 100px; text-align: center; }
.lt-ad-wrap + .lt-ad-wrap { margin-top: 36px; }
.lp-nav + .lt-ad-wrap { margin-top: 56px; }
.lt-sidebar .lt-ad-wrap { margin: 0; }
.lt-ad-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--lt-muted); }

/* ---------- Related lists: 3 columns ---------- */
.lt-related {
	margin: 48px 0 10px; padding: 32px 28px 12px;
	background: var(--lt-soft);
	border: 3px solid var(--lt-ink); border-radius: 28px;
	box-shadow: 8px 8px 0 var(--lt-ink);
}
.lt-related h2 {
	position: relative; margin: 0; padding-bottom: 12px;
	font-family: var(--lt-display); font-weight: 800;
	font-size: clamp(28px, 5vw, 40px); letter-spacing: -1px;
}
.lt-related h2::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 64px; height: 6px; background: var(--lt-hot); border-radius: 6px;
}
.lt-grid-3 { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 600px) { .lt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .lt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lt-related { padding: 22px 16px 4px; box-shadow: 5px 5px 0 var(--lt-ink); } }

/* ---------- Archive pagination, search, 404 ---------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 40px; }
.page-numbers {
	display: block; padding: 8px 16px;
	border: 2px solid var(--lt-ink); border-radius: 10px;
	font-weight: 700; text-decoration: none; background: #fff;
}
a.page-numbers:hover { background: var(--lt-pop); }
.page-numbers.current { background: var(--lt-ink); color: #fff; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; min-height: 46px; padding: 0 14px;
	border: 2px solid var(--lt-ink); border-radius: 12px;
	font-size: 16px; font-family: inherit; background: #fff; color: var(--lt-ink);
}
.search-submit {
	min-height: 46px; padding: 0 16px;
	background: var(--lt-pop); color: var(--lt-ink);
	border: 2px solid var(--lt-ink); border-radius: 12px;
	font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
.lt-empty { padding: 30px 0 60px; }

/* ---------- Footer ---------- */
.lt-footer { margin-top: 56px; padding: 40px 0 26px; background: var(--lt-ink); color: #fff; border-top: 8px solid var(--lt-hot); font-size: 14px; }
.lt-footer a { color: #fff; }
.lt-footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 2px solid rgba(255, 255, 255, .15); }
.lt-footer-logo { font-family: var(--lt-display); font-weight: 800; font-size: 30px; letter-spacing: -0.5px; }
.lt-footer-tag { margin: 6px 0 0; color: rgba(255, 255, 255, .7); max-width: 40ch; }
.lt-totop {
	padding: 8px 18px; text-decoration: none; font-weight: 800;
	background: var(--lt-pop); color: var(--lt-ink) !important;
	border: 2px solid #fff; border-radius: 999px;
}
.lt-footer-in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 20px; }
.lt-footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lt-card, .lt-btn, .lt-card-img { transition: none; }
	.lt-card:hover .lt-card-img { transform: none; }
}
