/*!
 * Theme Name: KTE2 - Kahuna the Elder Redesigned
 * Theme URI: https://kahunatheelder.com
 * Author: Kahuna the Elder
 * Author URI: https://kahunatheelder.com
 * Description: A fresh rebuild of the Kahuna the Elder world building site with enhanced navigation, parallax backgrounds, and cross-reference linking
 * Version: 2.0.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: kte2
 * Domain Path: /languages
 * Requires at least: 5.9
 * Requires PHP: 7.4
 * 
 * This theme provides:
 * - Dynamic navigation menus with archive dropdowns
 * - Parallax background library on all pages
 * - Custom post type archives for world building content
 * - Cross-reference link conversion (two formats)
 * - Color-coded category displays
 * - Responsive design with mobile menu support
 */

/* Reset and normalize */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #004499;
}

/* Main layout */
#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
	width: 100%;
}

/* Containers and spacing */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

.content-layer {
	padding: 40px 0;
	background-color: #fff;
	position: relative;
	z-index: 2;
}

.error-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
}

.error-page h1 {
	font-size: 48px;
	margin-bottom: 20px;
}

.error-page p {
	font-size: 18px;
	margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
	html {
		font-size: 14px;
	}
	
	.content-layer {
		padding: 20px 0;
	}
}

/* Archive and card styles */
.archive-overview-card,
.archive-post-card {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid rgba(139, 111, 71, 0.2);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.archive-overview-card {
	cursor: pointer;
}

.archive-overview-card:hover,
.archive-post-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
	border-color: rgba(139, 111, 71, 0.4);
}

.archive-overview-card h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.archive-overview-card p {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 700;
	margin: 10px 0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.archive-overview-card a {
	color: #fff;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
	margin-top: auto;
}

.archive-overview-card:hover a {
	transform: translateX(5px);
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
	color: #1a1a2e;
	margin-bottom: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	margin-top: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #8b6f47;
	color: #5d4e37;
}

h3 {
	font-size: 1.5rem;
}

.site-main h2:first-of-type {
	margin-top: 0;
}

/* Link styling */
a {
	color: #8b6f47;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
}

a:hover {
	color: #b8860b;
}

a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: #8b6f47;
	transition: width 0.3s ease;
}

a:hover::after {
	width: 100%;
}
