/*
Theme Name: TGB Core Theme
Theme URI: https://thegamingboardroom.com/
Author: The Gaming Boardroom
Author URI: https://thegamingboardroom.com/
Description: Standalone WordPress theme for The Gaming Boardroom membership platform. Requires TGB Core plugin for all membership functionality.
Version: 1.0.2
Tested up to: 6.8
Requires PHP: 7.4
Requires at least: 6.7
Tags: membership, gaming, magazine, blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready, accessibility-ready
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl.html
Text Domain: tgb-core-theme
*/

/* --------------------------------------
=========================================
	TGB Core Theme - Standalone
=========================================
-----------------------------------------*/

/**
 * This theme requires the TGB Core plugin for full functionality.
 * Install and activate "TGB Core" plugin before using this theme.
 */

/* --------------------------------------
	CSS Variables
-----------------------------------------*/
:root {
	/* Fonts */
	--headFont: 'Montserrat', sans-serif;
	--bodyFont: 'Work Sans', sans-serif;

	/* Brand Colors */
	--tgb-primary: #2563eb;
	--tgb-gold: #C2A76D;
	--tgb-secondary: #f59e0b;
	--tgb-success: #16a34a;
	--tgb-danger: #dc2626;
	--tgb-dark: #202f5b;
	--tgb-ink: #2C3E50;
	--tgb-light: #f3f4f6;

	/* Grays */
	--tgb-gray-50: #f9fafb;
	--tgb-gray-100: #f3f4f6;
	--tgb-gray-200: #e5e7eb;
	--tgb-gray-300: #d1d5db;
	--tgb-gray-400: #9ca3af;
	--tgb-gray-500: #6b7280;
	--tgb-gray-600: #4b5563;
	--tgb-gray-700: #374151;
	--tgb-gray-800: #1f2937;
	--tgb-gray-900: #111827;

	/* Layout */
	--tgb-content-width: 1200px;
	--tgb-content-width-narrow: 720px;

	/* Shadows */
	--tgb-shadow-sm: 0 6px 16px rgba(0,0,0,.08);
	--tgb-shadow-md: 0 8px 20px rgba(0,0,0,.12);
	--tgb-shadow-lg: 0 12px 24px rgba(0,0,0,.15);

	/* Transitions */
	--tgb-transition: all 0.3s ease;
}

/* --------------------------------------
	Reset & Base Styles
-----------------------------------------*/
* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	font-family: var(--bodyFont);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tgb-gray-800);
	background: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: 16px;
	font-family: var(--headFont);
	font-weight: 700;
	line-height: 1.3;
	color: var(--tgb-gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
	margin-top: 0;
	margin-bottom: 16px;
}

a {
	color: var(--tgb-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

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

/* Lists */
ul, ol {
	margin: 0 0 16px 0;
	padding-left: 24px;
}

li {
	margin-bottom: 8px;
}

/* Blocks */
blockquote {
	margin: 24px 0;
	padding: 16px 24px;
	border-left: 4px solid var(--tgb-primary);
	background: var(--tgb-gray-50);
	font-style: italic;
}

code {
	padding: 2px 6px;
	background: var(--tgb-gray-100);
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
}

pre {
	padding: 16px;
	background: var(--tgb-gray-900);
	color: var(--tgb-gray-100);
	border-radius: 6px;
	overflow-x: auto;
	margin: 24px 0;
}

pre code {
	background: transparent;
	padding: 0;
	color: inherit;
}

/* Layout */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 16px 0;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-title a {
	color: var(--tgb-gray-900);
	text-decoration: none;
}

.site-description {
	margin: 0;
	font-size: 0.875rem;
	color: var(--tgb-gray-600);
}

.site-content {
	flex: 1;
	padding: 40px 0;
}

.container {
	max-width: var(--tgb-content-width);
	margin: 0 auto;
	padding: 0 20px;
}

.content-area {
	width: 100%;
}

.site-main {
	margin-bottom: 40px;
}

/* Navigation */
.main-navigation {
	display: flex;
	gap: 24px;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 24px;
}

.main-navigation a {
	color: var(--tgb-gray-700);
	font-weight: 500;
	text-decoration: none;
	padding: 8px 0;
	transition: color 0.2s ease;
}

.main-navigation a:hover {
	color: var(--tgb-primary);
	text-decoration: none;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
	color: var(--tgb-primary);
}

/* Mobile Navigation */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: 2px solid var(--tgb-gray-300);
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1.25rem;
}

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		padding: 16px;
	}

	.main-navigation.toggled {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation li {
		border-bottom: 1px solid var(--tgb-gray-200);
	}

	.main-navigation li:last-child {
		border-bottom: none;
	}

	.main-navigation a {
		display: block;
		padding: 12px 0;
	}
}

/* Footer */
.site-footer {
	background: var(--tgb-gray-900);
	color: var(--tgb-gray-300);
	padding: 48px 0 24px;
	margin-top: auto;
}

.site-footer a {
	color: var(--tgb-gray-300);
}

.site-footer a:hover {
	color: #fff;
}

.site-info {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid var(--tgb-gray-700);
	font-size: 0.875rem;
}

/* --------------------------------------
	Access Level Badges
-----------------------------------------*/
.tgb-access-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tgb-access-badge--free {
	background: var(--tgb-success);
	color: #fff;
}

.tgb-access-badge--pro {
	background: var(--tgb-primary);
	color: #fff;
}

.tgb-access-badge--elite {
	background: var(--tgb-secondary);
	color: #000;
}

/* --------------------------------------
	Paywall Styles
-----------------------------------------*/
.tgb-paywall {
	background: var(--tgb-light);
	border: 2px solid var(--tgb-primary);
	border-radius: 8px;
	padding: 40px;
	margin: 40px 0;
	text-align: center;
}

.tgb-paywall__title {
	font-size: 28px;
	margin-bottom: 16px;
	color: var(--tgb-dark);
}

.tgb-paywall__description {
	font-size: 16px;
	margin-bottom: 24px;
	color: #4b5563;
}

.tgb-paywall__cta {
	display: inline-block;
	background: var(--tgb-primary);
	color: #fff;
	padding: 12px 32px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.tgb-paywall__cta:hover {
	background: #1d4ed8;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --------------------------------------
	Member Features
-----------------------------------------*/
.tgb-like-button,
.tgb-favourite-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
}

.tgb-like-button:hover,
.tgb-favourite-button:hover {
	border-color: var(--tgb-primary);
	background: #eff6ff;
}

.tgb-like-button.liked {
	background: #fee2e2;
	border-color: var(--tgb-danger);
	color: var(--tgb-danger);
}

.tgb-favourite-button.favourited {
	background: #fef3c7;
	border-color: var(--tgb-secondary);
	color: #92400e;
}

/* --------------------------------------
	Dashboard Styles
-----------------------------------------*/
.tgb-dashboard {
	margin: 40px 0;
}

.tgb-dashboard__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e5e7eb;
}

.tgb-dashboard__tab {
	padding: 12px 24px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-weight: 600;
	color: #6b7280;
	transition: all 0.2s ease;
	margin-bottom: -2px;
}

.tgb-dashboard__tab:hover {
	color: var(--tgb-primary);
}

.tgb-dashboard__tab--active {
	color: var(--tgb-primary);
	border-bottom-color: var(--tgb-primary);
}

/* --------------------------------------
	Content Grid
-----------------------------------------*/
.tgb-content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin: 32px 0;
}

.tgb-content-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.tgb-content-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------
	Responsive Design
-----------------------------------------*/
@media (max-width: 768px) {
	.tgb-paywall {
		padding: 24px;
	}

	.tgb-paywall__title {
		font-size: 22px;
	}

	.tgb-content-grid {
		grid-template-columns: 1fr;
	}

	.tgb-dashboard__tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* --------------------------------------
	Utility Classes
-----------------------------------------*/
.tgb-text-center {
	text-align: center;
}

.tgb-text-primary {
	color: var(--tgb-primary);
}

.tgb-text-secondary {
	color: var(--tgb-secondary);
}

.tgb-mt-4 {
	margin-top: 16px;
}

.tgb-mb-4 {
	margin-bottom: 16px;
}

.tgb-hidden {
	display: none;
}

.tgb-loading {
	opacity: 0.6;
	pointer-events: none;
}
