/*!
Theme Name: The Strange Unknown
Author: Andrew Gibbs
Description: A clean, dark, content-first WordPress theme for unexplained phenomena.
Version: 1.0.0
Text Domain: the-strange-unknown
*/

/* =========================
   BASE RESET
========================= */

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: #000;
	color: #ffffff;
	line-height: 1.6;
}

a,
a:visited {
	color: #ffffff;
	text-decoration: none;
}

a:hover,
a:focus {
	opacity: 0.75;
}





/* =========================
   HEADER / NAV
========================= */

.site-header {
	position: absolute;
	top: 0;
	width: 100%;
	background: transparent;
	z-index: 200;
}

.site-branding {
	display: none;
}

/* MAIN NAV WRAPPER */
.main-navigation {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.25rem 1.5rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* LOGO */
.site-logo {
	display: flex;
	align-items: center;
	margin-right: auto;
		transform: translateY(2px);
}

.site-logo img {
	width: 38px;
	height: 38px;
	display: block;
}

/* MENU LIST */
.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #ffffff;
}

/* HARD KILL BACK BUTTON ON DESKTOP ONLY */
@media (min-width: 769px) {
	.main-navigation .menu-back {
		display: none !important;
		visibility: hidden !important;
		width: 0 !important;
		height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
}

/* =========================
   NAV DROPDOWN (DESKTOP)
========================= */

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	flex-direction: column;
	background: rgba(0, 0, 0, 0.95);
	padding: 0.75rem 0;
	min-width: 220px;
	z-index: 999;
}

.main-navigation ul ul li {
	display: block;
	text-align: center;
}

.main-navigation ul ul a {
	display: block;
	padding: 0.6rem 1.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	white-space: nowrap;
}

.main-navigation li:hover > ul {
	display: flex;
}

/* =========================
   MOBILE NAV
========================= */

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1002;
}

.menu-toggle span {
	display: block;
	width: 26px;
	height: 2px;
	background: #ffffff;
	margin: 6px 0;
}

@media (max-width: 768px) {

	/* SAFARI SAFE-AREA FIX */
	.site-header {
		padding-top: env(safe-area-inset-top);
	}

	/* HEADER ROW */
	.main-navigation {
		position: relative;
		padding-top: 3rem;
	}

	/* LOGO SMALLER ON MOBILE */
	.site-logo img {
		width: 28px;
		height: 28px;
	}

	.menu-toggle {
		display: block;
		margin-left: auto;
	}

	/* ONE PANEL */
	.main-navigation > ul {
		display: none;
		position: absolute;
		top: 3.75rem;
		right: 1.25rem;
		width: 300px;
		background: rgba(0, 0, 0, 0.95);
		padding: 1.1rem 1.25rem;
		flex-direction: column;
		align-items: stretch;
		gap: 0.9rem;
		z-index: 1000;
	}

	.main-navigation.toggled > ul {
		display: flex;
	}

	.main-navigation > ul > li > a {
		font-size: 0.8rem;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		text-align: left;
		display: block;
		width: 100%;
		padding: 0.4rem 0;
		white-space: nowrap;
	}

	/* Disable desktop dropdown logic on mobile */
	.main-navigation ul ul {
		display: none;
		position: static !important;
		transform: none !important;
		background: transparent !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.main-navigation li:hover > ul {
		display: none !important;
	}

	.main-navigation li.menu-item-has-children > a::after {
		content: " ›";
		opacity: 0.75;
		font-size: 1.25rem;
		margin-left: 0.25rem;
	}

	/* =========================
	   SCREEN 2 (SUBMENU VIEW)
	========================= */

	.main-navigation.submenu-active > ul > li {
		display: none;
	}

	.main-navigation.submenu-active > ul > li.submenu-open {
		display: block;
		width: 100%;
	}

	.main-navigation.submenu-active > ul > li.submenu-open > a {
		display: none;
	}

	.main-navigation.submenu-active > ul > li.submenu-open > ul {
		display: flex !important;
		flex-direction: column;
		width: 100%;
		gap: 0.85rem;
		background: transparent !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.main-navigation.submenu-active > ul > li.submenu-open > ul > li > a {
		padding-left: 0.1rem;
	}

	/* =========================
	   BACK BUTTON (MOBILE ONLY)
	========================= */

	.menu-back {
		display: none;
		background: none;
		border: none;
		color: #ffffff;
		font-size: 1.35rem;
		cursor: pointer;
		padding: 0;
		margin: 0 0 0.75rem 0;
		line-height: 1;
	}

	.menu-back::before {
		content: "<";
	}

	.main-navigation.submenu-active .menu-back {
		display: block;
	}
}















/* =========================
   FOOTER
========================= */

.site-footer {
	margin-top: 6rem;
	padding: 3rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: #000;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.footer-title {
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0;
}

.footer-description {
	font-size: 0.85rem;
	opacity: 0.7;
	max-width: 600px;
	margin: 0;
}

.footer-navigation {
	margin-top: 1rem;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.footer-links a {
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.7;
}

.footer-links a:hover {
	opacity: 1;
}

@media (min-width: 768px) {
	.footer-inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
	}

	.footer-navigation {
		margin-top: 0;
		text-align: right;
	}

	.footer-links {
		justify-content: flex-end;
	}
}




/* =========================
   HERO (HOME + ARCHIVE + REPORT)
========================= */

.home-hero,
.archive-hero {
	position: relative;
	height: 40vh;
	min-height: 420px;
	max-height: 640px;
	width: 100%;
	background-image: url('https://thestrangeunknown.com/wp-content/uploads/2026/01/banner-image-detective-board.png');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-hero::after,
.archive-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.home-hero-overlay,
.archive-hero-overlay {
	position: relative;
	text-align: center;
	max-width: 1000px;
	padding: 2rem;
	z-index: 2;
}

.home-hero-title,
.archive-hero-title {
	font-size: 3.4rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #ffffff;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
	margin: 0;
}

.hero-subtitle {
	font-size: 1.25rem;
	letter-spacing: 0.5em;
	text-transform: uppercase;
	color: #ffffff;
	opacity: 0.65;
	margin-top: 1rem;
}





/* =========================
   MOBILE HERO + CONTENT SPACING FIX
========================= */

@media (max-width: 768px) {

	/* Shorter hero */
	.hero,
	.archive-hero {
		height: 35vh;
		min-height: 35vh;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	/* Crop image correctly */
	.hero img,
	.archive-hero img {
		object-fit: cover;
		object-position: center;
	}

	/* Hero text spacing */
	.hero-content,
	.archive-hero-overlay {
		padding: 0 1.25rem;
	}

	/* Larger title */
	.hero-title,
	.archive-hero-title {
		font-size: 2.6rem;
		line-height: 1.1;
		letter-spacing: 0.08em;
		margin-bottom: 0;
	}

	/* Smaller subtitle */
	.hero-subtitle {
		font-size: 0.8rem;
		letter-spacing: 0.22em;
		margin-top: 0.5rem;
		margin-bottom: 0;
		opacity: 0.8;
	}

}







/* =========================
   SEARCH (HOMEPAGE BAR)
========================= */

.home-search {
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 3rem 1.5rem;
	margin-top: 0;
}

.home-search-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.home-search form {
	display: flex;
	width: 100%;
	gap: 0.75rem;
}

.home-search form label {
	flex: 1;
	margin: 0;
}

.home-search input[type="search"] {
	width: 100%;
	padding: 0.9rem 1rem;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	font-size: 1rem;
}

.home-search input[type="submit"] {
	padding: 0.9rem 2.25rem;
	background: #1e90ff;
	border: none;
	color: #ffffff;
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
}

.home .home-search {
	margin-top: -4rem;
}


/* =========================
   CATEGORY GRID (HOMEPAGE)
========================= */

.home-category-grid {
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 1.5rem;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2.5rem;
}

.category-image-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

.category-image {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
}

.category-title-overlay {
	position: absolute;
	left: 50%;
	top: 37%;
	transform: translateX(-50%);
	max-width: 85%;
	text-align: center;
	font-size: 1rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.3;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.6);
	z-index: 2;
}

.category-description-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.75rem;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	text-align: center;
}

.category-description {
	font-size: 0.8rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

/* =========================
   HOMEPAGE CONTENT
========================= */

.home-intro {
	padding: 4rem 1.5rem;
}

.home-content {
	max-width: 1100px;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #aaaaaa;
}

.home-content p {
	margin-bottom: 1.25rem;
}

/* =========================
   CATEGORY ARCHIVE INTRO
========================= */

.archive-intro {
	padding: 3rem 1.5rem 0rem; /* reduce bottom padding */
}

.archive-intro-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.archive-description {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #aaaaaa;
	margin-bottom: 0; /* ← THIS is critical */
}


/* =========================
   REPORT ARCHIVE (CATEGORY)
========================= */

.archive-reports {
	padding: 1.75rem 1.5rem 5rem;
}

.archive-reports-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.report-archive {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	column-gap: 2.5rem;
        row-gap: 0.75rem;
}

/* IMPORTANT: Keep category archive results text-only */
.tax-report_category .report-card-image {
	display: none !important;
}

.tax-report_category .report-card {
	background: none;
	padding: 0;
}

.tax-report_category .report-card-content {
	padding: 0;
}

.tax-report_category .report-card-title {
	font-size: 1.35rem;
	line-height: 1;
	margin-bottom: 0rem;
}


/* =========================
   Nav Appearance (NEXT 1 2 3...) on Category Pages
========================= */

.nav-links {
	text-align: center;
	margin-top: 3rem;
}

.nav-links a {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border: 1px solid #333;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease;
}

.nav-links a:hover {
	background: #111;
}

/* =========================
   take this out of comment if i want a smooth scroll on this. 
   im not a huge fan of it right now though

html {
	scroll-behavior: smooth;
}
========================= */





/* =========================
   SINGLE REPORT
========================= */

.single-report {
	max-width: none;
	margin: 0;
	padding: 0;
}

.single-report-inner {
	max-width: 1100px;
	margin: 4rem auto 5rem;
	padding: 0 1.5rem;
}

.report-featured-image {
	margin: 2.5rem 0;
}

.report-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.single-report .entry-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #aaaaaa;
}

.single-report .entry-content p {
	margin-bottom: 1.25rem;
}

.single-report h2 {
	font-size: 1.6rem;
	color: #ffffff;
	margin-top: 3rem;
	margin-bottom: 1rem;
}

.report-details,
.report-sources {
	margin-top: 3.5rem;
}

.report-details ul,
.report-sources ul {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.report-details li,
.report-sources li {
	margin-bottom: 0.5rem;
	color: #aaaaaa;
}

/* =========================
   STANDARD PAGE CONTENT
========================= */

.page .site-main {
	padding: 4rem 1.5rem 5rem;
}

.page .entry-content {
	max-width: 1100px;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #aaaaaa;
}

.page .entry-content p {
	margin-bottom: 1.25rem;
}

.page .entry-content h2 {
	font-size: 1.6rem;
	color: #ffffff;
	margin-top: 3rem;
	margin-bottom: 1rem;
}

.page .entry-content h3 {
	font-size: 1.25rem;
	color: #ffffff;
        opacity: 1;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}

.page .entry-content ul {
	margin: 1.25rem 0 1.75rem 1.25rem;
}

.page .entry-content li {
	margin-bottom: 0.5rem;
	color: #aaaaaa;
}

.page .entry-header {
	display: none;
}

/* =========================
   SEARCH RESULTS (ARCHIVE STYLE)
========================= */

.search-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.search-item {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 1.75rem;
	align-items: flex-start;
}

.search-item-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.search-item-title {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}

.search-item-title a {
	color: #ffffff;
}

.search-item-excerpt {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #aaaaaa;
}

@media (max-width: 700px) {
	.search-item {
		grid-template-columns: 1fr;
	}
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
	.home-hero-title,
	.archive-hero-title {
		font-size: 2.2rem;
		letter-spacing: 0.16em;
	}

	.category-title-overlay {
		font-size: 0.85rem;
		letter-spacing: 0.14em;
		top: 40%;
	}

	.single-report-inner {
		margin-top: 3rem;
	}
}

/* =========================
   MOBILE SPACING OVERRIDE
========================= */

@media (max-width: 768px) {

	.home-search {
		padding-top: 1rem !important;
		margin-top: 0 !important;
	}

	.archive-intro {
		padding-top: 1.25rem !important;
	}

	.page .site-main {
		padding-top: 1.25rem !important;
	}

	.archive-reports {
		padding-top: 1rem !important;
	}
}


/* =========================
   GLOBAL HEADING COLORS
========================= */

:root {
	--h2-color: #ffffff;
	--h3-color: #ffffff;
}

/* H2 */
h2 {
	color: var(--h2-color);
	opacity: 1;
}

/* H3 */
h3 {
	color: var(--h3-color);
	opacity: 1;
}



/* =========================
   Related Section Styling
========================= */

.related-reports {
	margin-top: 4rem;
	border-top: 1px solid #222;
	padding-top: 1rem;
}

.related-reports h2 {
	font-size: 1.4rem;
	margin-bottom: 1rem;
}

.related-reports ul {
	list-style: none;
	padding: 0;
}

.related-reports li {
	margin-bottom: 0.75rem;
}

