/*
Theme Name: Free Porn Drug
Theme URI: https://freeporndrug.com
Author: Free Porn Drug
Description: Dark masonry gallery. Front page and archives query only fpd_item.
Version: 0.1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: freeporndrug
*/

:root {
	--fpd-bg: #0b0b0d;
	--fpd-panel: #141418;
	--fpd-line: #26262e;
	--fpd-text: #f3f3f5;
	--fpd-muted: #8d8d97;
	--fpd-accent: #ff3d7a;
	--fpd-accent-2: #ff8ab0;
	--fpd-card: #111116;
	--fpd-gap: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--fpd-bg); }

body.fpd-body {
	margin: 0;
	min-height: 100vh;
	background: var(--fpd-bg);
	color: var(--fpd-text);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

a { color: var(--fpd-text); text-decoration: none; }
a:hover { color: var(--fpd-accent-2); }

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

.fpd-skip {
	position: absolute;
	left: -999px;
	top: 0;
}
.fpd-skip:focus { left: 8px; top: 8px; background: #000; padding: 8px; z-index: 10; }

.fpd-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(11, 11, 13, 0.94);
	border-bottom: 1px solid var(--fpd-line);
	backdrop-filter: blur(8px);
}

.fpd-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px 16px;
	max-width: 1600px;
	margin: 0 auto;
}

.fpd-wordmark {
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.04em;
	text-transform: lowercase;
	line-height: 1;
	white-space: nowrap;
}
.fpd-wordmark span { color: var(--fpd-accent); }

.fpd-pills {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 2px 0;
}

.fpd-pill {
	display: inline-block;
	flex: 0 0 auto;
	padding: 5px 12px;
	border: 1px solid var(--fpd-line);
	border-radius: 999px;
	background: var(--fpd-panel);
	color: var(--fpd-text);
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}
.fpd-pill:hover,
.fpd-pill.is-active {
	border-color: var(--fpd-accent);
	color: #fff;
	background: #1b1116;
}

.fpd-main {
	max-width: 1600px;
	margin: 0 auto;
	padding: 16px;
}

.fpd-kicker {
	margin: 0 0 14px;
	color: var(--fpd-muted);
	font-size: 13px;
	text-transform: lowercase;
}

.fpd-grid {
	column-count: 2;
	column-gap: var(--fpd-gap);
}

@media (min-width: 640px) {
	.fpd-grid { column-count: 3; }
}
@media (min-width: 900px) {
	.fpd-grid { column-count: 4; }
}
@media (min-width: 1200px) {
	.fpd-grid { column-count: 5; }
}

.fpd-card {
	break-inside: avoid;
	margin: 0 0 var(--fpd-gap);
	background: var(--fpd-card);
	border: 1px solid var(--fpd-line);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.fpd-card a.fpd-card-link { display: block; color: inherit; }

.fpd-card-media {
	position: relative;
	background: #0e0e12;
	min-height: 120px;
}

.fpd-card-media img {
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.fpd-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	background: linear-gradient(160deg, #16161c, #0c0c10);
	color: var(--fpd-muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fpd-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 7px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.fpd-badge-gif { color: #9ff; }
.fpd-badge-play { color: #fff; background: var(--fpd-accent); }

.fpd-card-title {
	margin: 0;
	padding: 8px 10px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--fpd-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fpd-more-wrap {
	display: flex;
	justify-content: center;
	margin: 22px 0 8px;
}

.fpd-more,
.fpd-pages a,
.fpd-pages span {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid var(--fpd-line);
	border-radius: 999px;
	background: var(--fpd-panel);
	color: var(--fpd-text);
	font-weight: 600;
	font-size: 13px;
}
.fpd-more:hover { border-color: var(--fpd-accent); }
.fpd-more[data-busy="1"] { opacity: 0.6; }

.fpd-pages { display: flex; justify-content: center; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.fpd-pages .current { border-color: var(--fpd-accent); }

.fpd-single { max-width: 980px; margin: 0 auto; }

.fpd-stage {
	background: #000;
	border: 1px solid var(--fpd-line);
	border-radius: 8px;
	overflow: hidden;
}

.fpd-stage img { width: 100%; height: auto; margin: 0 auto; }

.fpd-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
}
.fpd-embed iframe,
.fpd-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fpd-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: baseline;
	margin: 14px 0 8px;
	color: var(--fpd-muted);
	font-size: 13px;
}
.fpd-meta a { color: var(--fpd-accent-2); }
.fpd-single h1 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.fpd-related { margin-top: 28px; }
.fpd-related h2 {
	margin: 0 0 12px;
	font-size: 13px;
	text-transform: lowercase;
	letter-spacing: 0.06em;
	color: var(--fpd-muted);
	font-weight: 600;
}

.fpd-strip {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--fpd-gap);
}
@media (min-width: 640px) {
	.fpd-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
	.fpd-strip { grid-template-columns: repeat(6, 1fr); }
}

.fpd-strip .fpd-card-title { display: none; }
.fpd-strip .fpd-card-media { min-height: 90px; }
.fpd-strip .fpd-card-media img { width: 100%; height: 140px; object-fit: cover; }

.fpd-empty {
	padding: 48px 16px;
	text-align: center;
	color: var(--fpd-muted);
}

.fpd-footer {
	border-top: 1px solid var(--fpd-line);
	padding: 20px 16px 32px;
	text-align: center;
	color: var(--fpd-muted);
	font-size: 12px;
}

.fpd-video-fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 280px;
	background: #0a0a0c;
}
.fpd-video-fallback .fpd-more { background: var(--fpd-accent); border-color: var(--fpd-accent); color: #fff; }
