/*
Theme Name: WGC2
Theme URI: https://windowsgameclub.com
Author: Windows Game Club
Description: Windows 95–inspired theme with a taskbar-style navigation bar. Compatible with bbPress.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wgc2
Tags: blog, two-columns, custom-menu, bbpress, full-width-template
*/

/* Desktop */
:root {
	--wgc-desktop: #018281;
	--wgc-face: #c0c0c0;
	--wgc-window: #ffffff;
	--wgc-text: #000000;
	--wgc-titlebar: #000080;
	--wgc-titlebar-text: #ffffff;
	--wgc-border-light: #ffffff;
	--wgc-border-mid: #dfdfdf;
	--wgc-border-dark: #808080;
	--wgc-border-darker: #000000;
	--wgc-link: #0000ff;
	--wgc-visited: #800080;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: Tahoma, "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.45;
	color: var(--wgc-text);
	background: var(--wgc-desktop);
}

a {
	color: var(--wgc-link);
}

a:visited {
	color: var(--wgc-visited);
}

a:hover,
a:focus {
	text-decoration: underline;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--wgc-window);
	clip: auto !important;
	clip-path: none;
	color: var(--wgc-text);
	display: block;
	font-size: 13px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 8px 12px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100001;
	border: 2px solid var(--wgc-border-darker);
	outline: 2px solid var(--wgc-border-light);
}

/* Taskbar-style top bar */
.wgc-taskbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--wgc-face);
	border-bottom: 2px solid var(--wgc-border-darker);
	box-shadow: inset 0 1px 0 0 var(--wgc-border-light);
	padding: 4px 6px;
}

.wgc-taskbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 1200px;
	margin: 0 auto;
}

.wgc-taskbar__brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	text-decoration: none;
	color: var(--wgc-text);
	font-weight: bold;
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	background: var(--wgc-face);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-light),
		inset -1px -1px 0 var(--wgc-border-dark);
}

.wgc-taskbar__brand:hover,
.wgc-taskbar__brand:focus {
	text-decoration: none;
}

.wgc-taskbar__brand:focus-visible {
	outline: 2px dotted var(--wgc-border-darker);
	outline-offset: 2px;
}

.wgc-taskbar__home--current {
	border: 2px solid var(--wgc-border-darker);
	border-left-color: var(--wgc-border-dark);
	border-top-color: var(--wgc-border-dark);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-light);
	padding: 5px 11px 3px 13px;
}

.wgc-taskbar__home-icon {
	display: block;
	max-height: 22px;
	width: auto;
}

.wgc-taskbar__nav {
	flex: 1;
	min-width: 0;
}

/* Windows 95–style notification tray (logged-in users) */
.wgc-taskbar__tray {
	margin-left: auto;
	flex-shrink: 0;
	align-self: center;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	background: var(--wgc-face);
	border: 2px solid var(--wgc-border-darker);
	border-top-color: var(--wgc-border-dark);
	border-left-color: var(--wgc-border-dark);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-darker),
		inset -1px -1px 0 var(--wgc-border-mid);
	font-size: 12px;
	line-height: 1.25;
}

.wgc-taskbar__tray-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 28ch;
}

.wgc-taskbar__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wgc-taskbar__menu a {
	display: inline-block;
	padding: 4px 12px;
	text-decoration: none;
	color: var(--wgc-text);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	background: var(--wgc-face);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-light),
		inset -1px -1px 0 var(--wgc-border-dark);
}

.wgc-taskbar__menu a:hover,
.wgc-taskbar__menu a:focus {
	text-decoration: none;
}

.wgc-taskbar__menu a:focus-visible {
	outline: 2px dotted var(--wgc-border-darker);
	outline-offset: 2px;
}

.wgc-taskbar__menu .current-menu-item > a,
.wgc-taskbar__menu .current_page_item > a {
	border: 2px solid var(--wgc-border-darker);
	border-left-color: var(--wgc-border-dark);
	border-top-color: var(--wgc-border-dark);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-light);
	padding: 5px 11px 3px 13px;
}

.wgc-taskbar__menu li {
	position: relative;
}

.wgc-taskbar__menu .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 180px;
	margin: 2px 0 0;
	padding: 4px;
	list-style: none;
	background: var(--wgc-face);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-light),
		inset -1px -1px 0 var(--wgc-border-dark);
	z-index: 1001;
}

.wgc-taskbar__menu li:hover > .sub-menu,
.wgc-taskbar__menu li:focus-within > .sub-menu {
	display: block;
}

.wgc-taskbar__menu .sub-menu a {
	display: block;
	width: 100%;
	margin-bottom: 2px;
}

/* Main “window” */
.wgc-shell {
	max-width: 1200px;
	margin: 16px auto 24px;
	padding: 0 12px;
}

.wgc-window {
	background: var(--wgc-face);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-mid);
}

.wgc-window__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 4px 6px;
	background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
	color: var(--wgc-titlebar-text);
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0.02em;
}

.wgc-window__title a,
.wgc-window__title a:visited,
.wgc-window__title a:hover,
.wgc-window__title a:focus,
.wgc-window__title a:active {
	color: var(--wgc-titlebar-text);
}

.wgc-window__body {
	padding: 12px 14px;
	background: var(--wgc-window);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	margin: 4px;
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-mid);
	min-height: 120px;
}

.wgc-window__body > :first-child {
	margin-top: 0;
}

.wgc-window__body > :last-child {
	margin-bottom: 0;
}

/* Typography in content */
.wgc-content h1,
.wgc-content h2,
.wgc-content h3 {
	font-weight: bold;
	margin: 1em 0 0.5em;
	line-height: 1.2;
}

.wgc-content h1 {
	font-size: 1.35rem;
}

.wgc-content h2 {
	font-size: 1.2rem;
}

.wgc-content h3 {
	font-size: 1.05rem;
}

.wgc-content p,
.wgc-content ul,
.wgc-content ol {
	margin: 0.65em 0;
}

.wgc-content ul,
.wgc-content ol {
	padding-left: 1.5em;
}

/* Buttons & form controls (Win95) */
.wgc-content button,
.wgc-content input[type="submit"],
.wgc-content input[type="button"],
.wgc-content .wp-block-button__link {
	font-family: inherit;
	font-size: 13px;
	padding: 4px 14px;
	cursor: pointer;
	color: var(--wgc-text);
	background: var(--wgc-face);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-light),
		inset -1px -1px 0 var(--wgc-border-dark);
}

.wgc-content button:active,
.wgc-content input[type="submit"]:active,
.wgc-content input[type="button"]:active {
	border-left-color: var(--wgc-border-dark);
	border-top-color: var(--wgc-border-dark);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-light);
	padding: 5px 13px 3px 15px;
}

.wgc-content input[type="text"],
.wgc-content input[type="search"],
.wgc-content input[type="email"],
.wgc-content input[type="url"],
.wgc-content input[type="password"],
.wgc-content textarea,
.wgc-content select {
	font-family: inherit;
	font-size: 13px;
	padding: 4px 6px;
	color: var(--wgc-text);
	background: var(--wgc-window);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-mid);
	max-width: 100%;
}

/* Meta / post footer */
.wgc-meta {
	margin-top: 1.25rem;
	padding-top: 10px;
	border-top: 1px solid var(--wgc-border-dark);
	font-size: 12px;
	color: #404040;
}

/* Pagination */
.wgc-pagination {
	margin: 1.25rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.wgc-pagination a,
.wgc-pagination span {
	display: inline-block;
	padding: 3px 10px;
	text-decoration: none;
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	background: var(--wgc-face);
	color: var(--wgc-text);
}

.wgc-pagination a:hover {
	text-decoration: none;
}

.wgc-pagination .current {
	border-left-color: var(--wgc-border-dark);
	border-top-color: var(--wgc-border-dark);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-light);
}

/* Sidebar */
.wgc-layout {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 800px) {
	.wgc-layout--with-sidebar {
		flex-direction: row;
		align-items: flex-start;
	}

	.wgc-layout__main {
		flex: 1;
		min-width: 0;
	}

	.wgc-sidebar {
		width: 240px;
		flex-shrink: 0;
		padding: 10px;
		background: var(--wgc-face);
		border: 2px solid var(--wgc-border-darker);
		border-right-color: var(--wgc-border-light);
		border-bottom-color: var(--wgc-border-light);
		box-shadow:
			inset 1px 1px 0 var(--wgc-border-light),
			inset -1px -1px 0 var(--wgc-border-dark);
	}
}

.wgc-sidebar .widget {
	margin-bottom: 1rem;
}

.wgc-sidebar .widget-title {
	margin: 0 0 0.5rem;
	font-size: 13px;
	font-weight: bold;
}

/* bbPress */
#bbpress-forums {
	font-family: inherit;
	font-size: 13px;
}

#bbpress-forums .bbp-template-notice,
#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-meta {
	font-size: 12px;
}

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums fieldset.bbp-form {
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	background: var(--wgc-window);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-mid);
}

/* Legend sits on the etched border/inset outline; tint it like the pane so rules don’t cut through (“Reply To: …”). */
#bbpress-forums fieldset.bbp-form legend {
	background-color: var(--wgc-window);
	padding: 2px 8px;
	margin: 2px 0 8px 4px;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer,
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header {
	background: var(--wgc-face);
	border-bottom: 1px solid var(--wgc-border-dark);
}

#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-forum-header {
	border: 1px solid var(--wgc-border-dark);
	margin-bottom: 4px;
}

#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-login-form .user-submit,
#bbpress-forums .bbp-logged-in a.button {
	font-family: inherit;
	font-size: 13px;
	padding: 4px 14px;
	background: var(--wgc-face);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-light),
		inset -1px -1px 0 var(--wgc-border-dark);
	cursor: pointer;
}

#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="password"],
#bbpress-forums fieldset.bbp-form textarea,
#bbpress-forums .bbp-topic-search input[type="text"],
#bbpress-forums .bbp-reply-search input[type="text"] {
	font-family: inherit;
	background: var(--wgc-window);
	border: 2px solid var(--wgc-border-darker);
	border-right-color: var(--wgc-border-light);
	border-bottom-color: var(--wgc-border-light);
	box-shadow:
		inset 1px 1px 0 var(--wgc-border-dark),
		inset -1px -1px 0 var(--wgc-border-mid);
}

/* Prevent bbPress topic/reply form overflow on mobile browsers */
#bbpress-forums fieldset.bbp-form {
	min-width: 0;
}

#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="password"],
#bbpress-forums fieldset.bbp-form input[type="email"],
#bbpress-forums fieldset.bbp-form input[type="url"],
#bbpress-forums fieldset.bbp-form input[type="number"],
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums fieldset.bbp-form textarea {
	width: 100%;
	max-width: 100%;
}

@media (max-width: 782px) {
	#bbpress-forums fieldset.bbp-form {
		padding: 10px;
	}

	#bbpress-forums fieldset.bbp-form legend {
		max-width: 100%;
	}
}

#bbpress-forums div.bbp-breadcrumb,
#bbpress-forums div.bbp-topic-tags {
	font-size: 12px;
}

/* bbp-voting plugin size override (50% smaller for wgc2) */
.wgc-content .bbp-voting {
	margin: 4px 15px 0 0;
	min-width: 18px;
}

.wgc-content .bbp-voting .score {
	font-size: 12.5px;
	padding: 1px 0 1.5px 0;
	text-shadow:
		0 0 3px #ffffff,
		0 0 2px #ffffff,
		0 0 1px #ffffff;
}

.wgc-content .bbp-voting a.vote {
	margin: 1.5px auto !important;
	border-left-width: 7.5px !important;
	border-right-width: 7.5px !important;
}

.wgc-content .bbp-voting a.vote.up,
.wgc-content .bbp-voting a.vote.up:hover {
	border-bottom-width: 7.5px !important;
}

.wgc-content .bbp-voting a.vote.down,
.wgc-content .bbp-voting a.vote.down:hover {
	border-top-width: 7.5px !important;
}

.wgc-content .bbp-voting a.vote:not(.num-hide):after {
	margin-left: 8.5px;
}

.wgc-content .bbp-voting .bbp-voting-label {
	font-size: 0.375rem;
	padding: 2.5px 0;
}

/* Footer */
.wgc-footer {
	max-width: 1200px;
	margin: 0 auto 16px;
	padding: 0 12px;
	text-align: center;
	font-size: 12px;
	color: #0a3d3a;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wgc-footer a {
	color: #003366;
}

.wgc-content .comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wgc-content .comment-list .children {
	list-style: none;
	margin-left: 1.25rem;
	padding: 0;
}

.wgc-content .comment-body {
	margin-bottom: 1rem;
	padding: 8px;
	border: 1px solid var(--wgc-border-dark);
	background: var(--wgc-window);
}
