/* ============================================
	 Black Pants Studio — Static Site Stylesheet
	 ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: #2d2d2d;
	color: #c0c0c0;
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: #f4ada5;
	text-decoration: none;
}

a:hover {
	color: #e0e0e0;
	text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
	color: #e0e0e0;
	line-height: 1.3;
	margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
	margin-bottom: 1em;
}

ul, ol {
	margin-bottom: 1em;
	padding-left: 1.5em;
}

/* --- Container --- */
.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* --- Header --- */
.site-header {
	background-color: #111;
	padding: 1rem 0;
	border-bottom: 1px solid #333;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	position: relative;
}

.site-logo {
	color: #e0e0e0;
	display: flex;
	flex-direction: column;
}

.site-logo:hover {
	text-decoration: none;
}

.site-title {
	font-size: 1.4rem;
	font-weight: bold;
	color: #ffffff;
}

.site-tagline {
	font-size: 0.8rem;
	color: #808080;
}

.main-nav {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.main-nav a {
	color: #c0c0c0;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.main-nav a:hover {
	color: #e0e0e0;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.main-nav a.active {
	color: #e0e0e0;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

/* --- Main Content --- */
.site-content {
	padding: 2rem 0;
	min-height: 60vh;
}

/* --- Page list (Projects, etc.) --- */
.page-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 2rem;
}

.page-item img {
	width: 100%;
	aspect-ratio: 460 / 220;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.page-item h2 {
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.page-item h2 a {
	color: #e0e0e0;
}

.page-item h2 a:hover {
	color: #ffffff;
}

.page-item .platforms {
	font-size: 0.85rem;
	color: #808080;
	margin-bottom: 0.5rem;
}

.page-item .blog-header-img {
	aspect-ratio: 16 / 9;
}

/* --- Blog --- */
.blog-year {
	margin-top: 2rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #444;
}

.blog-post .post-meta {
	margin-bottom: 2rem;
	font-size: 0.9rem;
	color: #808080;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.blog-post .tag {
	background: #3a3a3a;
	padding: 0.15em 0.5em;
	border-radius: 3px;
	font-size: 0.8rem;
	margin-right: 0.3rem;
}

.blog-post img {
	display: block;
	margin: 2rem auto;
	align-content: center;
	width: 100%;        /* volle Breite */
	height: auto;
}

/* --- Game Product Pages --- */
.game-page .hero {
	margin-bottom: 2rem;
}

.game-page .hero img {
	width: 100%;
	border-radius: 4px;
}

.game-page .game-meta {
	display: flex;
	gap: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.game-page .game-meta dt {
	font-weight: bold;
	color: #e0e0e0;
}

.game-page .game-meta dd {
	color: #808080;
	margin-bottom: 0.5rem;
}

.game-page .game-content {
	margin-bottom: 2rem;
}

.game-page .screenshots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.game-page .screenshots img {
	width: 100%;
	border-radius: 4px;
}

/* --- Gallery grid --- */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.5rem;
	margin: 1.5rem 0;
}

figure.center {
	text-align: center;
}

figure.center img {
	margin-left: auto;
	margin-right: auto;
}

.gallery figure {
	margin: 0;
	cursor: pointer;
	overflow: hidden;
	border-radius: 4px;
	position: relative;
}

.gallery figure img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.2s;
}

.gallery figure:hover img {
	transform: scale(1.04);
}

.gallery figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 0.8rem;
	padding: 0.3rem 0.5rem;
	opacity: 0;
	transition: opacity 0.2s;
}

.gallery figure:hover figcaption {
	opacity: 1;
}

/* --- Lightbox overlay --- */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.lightbox-overlay.lb-visible {
	opacity: 1;
	pointer-events: auto;
}

.lb-figure {
	max-width: 90vw;
	max-height: 90vh;
	margin: 0;
	text-align: center;
}

.lb-img {
	max-width: 90vw;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 4px;
}

.lb-caption {
	color: #ccc;
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.lb-close, .lb-prev, .lb-next {
	position: fixed;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	padding: 0.5rem;
	z-index: 10000;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
	opacity: 1;
}

.lb-close {
	top: 1rem;
	right: 1.5rem;
	font-size: 2.5rem;
}

.lb-prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.lb-next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

/* --- Buy Buttons --- */
.buy-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.buy-button {
	display: inline-block;
}

.buy-button img {
	width: 90px;
	height: 66px;
	object-fit: contain;
}

.buy-button span {
	display: inline-block;
	background: #3a3a3a;
	color: #c0c0c0;
	padding: 0.5em 1em;
	border-radius: 4px;
	font-size: 0.85rem;
}

.buy-button:hover {
	text-decoration: none;
	opacity: 0.8;
}

/* --- Two-column layout (used by About, Store, etc.) --- */
.two-col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

/* --- Content band (replaces WordPress [content_band]) --- */
.band {
	padding: 2rem 0;
}

.band-dark {
	background-color: #2d2d2d;
}

.band-darker {
	background-color: #3a3a3a;
}

/* --- FAQ / Accordion (replaces [accordion]) --- */
details {
	border-bottom: 1px solid #444;
	padding: 0.75rem 0;
}

details summary {
	cursor: pointer;
	font-weight: bold;
	color: #e0e0e0;
	padding: 0.25rem 0;
}

details summary:hover {
	color: #f4ada5;
}

details[open] summary {
	margin-bottom: 0.75rem;
}

/* --- Team member cards --- */
.team-member {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	align-items: center;
}

.team-member img {
	width: 120px;
	min-width: 120px;
	height: auto;
	border-radius: 4px;
}

/* --- Video embed --- */
.video-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	margin: 1.5rem 0;
}

.video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* --- Footer --- */
.site-footer {
	background-color: #111;
	border-top: 1px solid #333;
	padding: 2.5rem 0;
	margin-top: 2rem;
	text-align: center;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.footer-social a {
	color: #808080;
	transition: color 0.2s;
}

.footer-social a:hover {
	color: #e0e0e0;
	text-decoration: none;
}

.footer-social svg {
	display: block;
}

.footer-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
	color: #e0e0e0;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.footer-links a:not(:last-child)::after {
	content: "/";
	margin-left: 0.25rem;
	color: #555;
	text-decoration: none;
	display: inline-block;
}

.footer-info {
	font-size: 0.8rem;
	color: #666;
}

.footer-info a {
	color: #808080;
}

.footer-info a:hover {
	color: #e0e0e0;
}

/* --- Burger menu toggle (hidden on desktop) --- */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	background: #c0c0c0;
	width: 24px;
	height: 2px;
	border-radius: 1px;
	position: relative;
	transition: transform 0.25s, opacity 0.15s;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 24px;
}

.nav-toggle span::before {
	top: -7px;
}

.nav-toggle span::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
	top: 0;
	transform: rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.page-list {
		grid-template-columns: 1fr;
	}

	.two-col {
		grid-template-columns: 1fr;
	}

	.site-header .container {
		flex-wrap: wrap;
		justify-content: center;
	}

	.site-logo {
		order: 1;
	}

	.nav-toggle {
		display: block;
		order: 2;
		position: absolute;
		right: 1rem;
		top: 1rem;
	}

	.main-nav {
		order: 3;
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 0;
		padding-top: 0.5rem;
	}

	.main-nav.open {
		display: flex;
	}

	.main-nav a {
		padding: 0.6rem 0;
		text-align: center;
		border-top: 1px solid #333;
	}

	.game-page .game-meta {
		flex-direction: column;
		gap: 0.5rem;
	}
}

/* --- Store Page --- */
.store-page {
	max-width: 960px;
	margin: 0 auto;
}

.store-header {
	text-align: center;
	margin-bottom: -15px;
	position: relative;
	z-index: 1;
}

.store-entry {
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #444;
}

.store-entry:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.store-entry-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: flex-start;
}

.store-entry-image-col {
	flex: 0 0 auto;
	max-width: 480px;
}

.store-entry-image {
	max-width: 480px;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.store-entry-info {
	flex: 1 1 0;
	min-width: 400px;
}

.store-highlights {
	list-style: disc;
	padding: 0 0 0 1.25rem;
	margin: 0 0 1rem;
	color: #808080;
}

.store-highlights li {
	margin: 0.25rem 0;
}

.store-platforms {
	color: #808080;
	margin: 0 0 1rem;
}

@media (max-width: 640px) {
	.store-entry-row {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.store-entry-info .buy-buttons {
		justify-content: center;
	}
}

.store-widgets {
	margin: 1rem 0 0;
	border-bottom: none;
}

.store-widgets-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.store-widgets-inner {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0;
	transition: padding-top 0.3s ease;
}

details[open].store-widgets .store-widgets-inner {
	padding-top: 1rem;
}

.store-widget {
	width: 100%;
	border: 0;
}

.store-widget-steam {
	height: 190px;
}

.store-widget-itch {
	height: 167px;
}

.store-widget-humble {
	height: 328px;
}
