/* Heartbroken Shayari - main styles */

/* Poppins, self-hosted */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
	--bg: #0f0c0d;
	--surface: #181314;
	--surface-2: #221b1c;
	--ink: #f4ece7;
	--muted: #a9999a;
	--accent: #e8445e;
	--accent-ink: #fff;
	--accent-soft: rgba(232, 68, 94, 0.14);
	--line: rgba(244, 236, 231, 0.1);
	--radius: 18px;
	--radius-sm: 10px;
	--container: 1160px;
	--narrow: 760px;
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
}

/* Reset (zero specificity so components win) */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl) { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
:where(img, svg, video) { max-width: 100%; height: auto; display: block; }
:where(input, button, textarea, select) { font: inherit; color: inherit; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.site-main { flex: 1; }
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: var(--narrow); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: var(--accent-ink); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent);
	background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px;
	cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); background: #d63651; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); }
.btn.is-done { background: #2f9e6b; border-color: #2f9e6b; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(15, 12, 13, 0.86);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.search-form { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.search-form input { background: transparent; border: 0; outline: 0; width: 170px; font-size: 14px; color: var(--ink); }
.search-form input::placeholder { color: var(--muted); }
.search-form button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.search-form:focus-within { border-color: var(--accent); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand-name, .nav-list a { white-space: nowrap; }

@media (max-width: 1180px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 14px;
		padding: 16px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px 14px; font-size: 15px; }
	.search-form input { width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 56px; text-align: center; }
.hero::before {
	content: ""; position: absolute; inset: -40% -10% auto; height: 520px; pointer-events: none;
	background: radial-gradient(closest-side, rgba(232, 68, 94, 0.28), transparent 70%);
}
.hero .container { position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero-title { font-size: clamp(34px, 6vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; max-width: 860px; margin: 0 auto 18px; }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 600px; margin-inline: auto; }

.page-head { padding: 64px 0 28px; text-align: center; }
.page-title { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.page-desc { color: var(--muted); margin-top: 12px; max-width: 620px; margin-inline: auto; }
.notfound .search-form { max-width: 420px; margin: 28px auto 20px; }
.notfound .search-form input { width: 100%; }

/* Category chips */
.listing { padding-bottom: 80px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--muted); transition: all .15s ease; }
.chip:hover { color: var(--ink); border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-count { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.chip.is-active .chip-count { background: rgba(255, 255, 255, 0.22); }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
	position: relative; display: flex; flex-direction: column; gap: 14px;
	padding: 26px; border-radius: var(--radius);
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232, 68, 94, 0.45); box-shadow: var(--shadow); }
.card-thumb { margin: -26px -26px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-cat { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; position: relative; z-index: 2; }
.card-title { font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-lines { color: #d8cbc6; font-size: 15.5px; line-height: 1.9; font-weight: 300; padding-left: 14px; border-left: 2px solid var(--accent); }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card-more { color: var(--ink); font-weight: 500; position: relative; z-index: 2; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 14px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--ink); }

.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .btn { margin-top: 18px; }

/* Single */
.single-head { padding: 56px 0 30px; text-align: center; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.single-title { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.single-meta { display: flex; justify-content: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.single-thumb { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.single-thumb img { width: 100%; }

.shayari-box {
	position: relative; padding: 52px 36px 44px; border-radius: 24px; text-align: center;
	background: radial-gradient(120% 90% at 50% 0%, rgba(232, 68, 94, 0.16), transparent 60%), var(--surface);
	border: 1px solid var(--line); box-shadow: var(--shadow);
}
.quote-mark { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: 110px; line-height: 1; color: var(--accent); opacity: .35; font-weight: 700; pointer-events: none; }
.entry-content { position: relative; font-size: clamp(18px, 2.4vw, 22px); line-height: 2; font-weight: 400; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); margin-inline: auto; }
.entry-content h2, .entry-content h3 { line-height: 1.3; font-weight: 600; }
.entry-content blockquote { border: 0; padding: 0; font-weight: 500; color: var(--ink); }
.page-content { text-align: left; font-size: 17px; line-height: 1.8; padding-bottom: 64px; }
.page-content ul, .page-content ol { padding-left: 1.3em; }

.share-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 10px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 44px 0 0; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.post-nav a:hover { border-color: var(--accent); color: var(--ink); }
.post-nav small { color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.post-nav span { font-weight: 500; }
.post-nav-next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next { text-align: left; } }

.related { padding: 72px 0 80px; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 26px; }

/* Comments */
.comments { padding-bottom: 72px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.comment-respond { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.comment-reply-title { font-size: 20px; margin-bottom: 12px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--accent); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0b0909; margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { max-width: 380px; }
.footer-brand p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .card-cat::after { content: " \2605"; }

@media (max-width: 600px) {
	.hero { padding: 60px 0 40px; }
	.shayari-box { padding: 44px 20px 34px; }
	.card { padding: 22px; }
	.card-thumb { margin: -22px -22px 4px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
