/*
Theme Name: Task Planner Theme
Theme URI: http://task-manager.local/
Author: Ahmed
Description: Custom dark navy/gold theme that hosts the AI-powered Task Planner dashboard as the site homepage, with a matching header/nav/footer across the rest of the site.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: task-planner-theme
*/

:root {
	--tpt-bg: #0f1420;
	--tpt-panel: #161d2e;
	--tpt-panel-alt: #1d2740;
	--tpt-border: #2a3550;
	--tpt-text: #e8ecf5;
	--tpt-text-dim: #9aa5bd;
	--tpt-gold: #d4af37;
	--tpt-gold-dim: #a98c2c;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--tpt-bg);
	color: var(--tpt-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dashboard homepage: no theme chrome, app owns the full viewport. */
body.tpt-fullscreen-body {
	min-height: 100vh;
	overflow-x: hidden;
}

a {
	color: var(--tpt-gold);
	text-decoration: none;
}

a:hover {
	color: var(--tpt-gold-dim);
	text-decoration: underline;
}

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

.tpt-site-header {
	background: var(--tpt-panel);
	border-bottom: 1px solid var(--tpt-border);
	position: sticky;
	top: 0;
	z-index: 500;
}

.tpt-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.tpt-site-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--tpt-gold);
	letter-spacing: 0.5px;
}

.tpt-branding img {
	max-height: 36px;
	display: block;
}

.tpt-nav-menu {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.tpt-nav-menu li a {
	color: var(--tpt-text-dim);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tpt-nav-menu li a:hover,
.tpt-nav-menu li.current-menu-item a {
	color: var(--tpt-gold);
	text-decoration: none;
}

.tpt-site-main {
	min-height: 60vh;
}

.tpt-dashboard-wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 24px;
}

.tpt-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 24px;
}

.tpt-container-narrow {
	max-width: 700px;
}

.tpt-page-title {
	color: var(--tpt-gold);
	font-size: 28px;
	margin-bottom: 20px;
}

.tpt-page-content,
.tpt-post-excerpt {
	font-size: 15px;
	line-height: 1.7;
	color: var(--tpt-text);
}

.tpt-post-card {
	background: var(--tpt-panel);
	border: 1px solid var(--tpt-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.tpt-post-title a {
	color: var(--tpt-text);
	font-size: 20px;
}

.tpt-post-title a:hover {
	color: var(--tpt-gold);
}

.tpt-post-meta {
	color: var(--tpt-text-dim);
	font-size: 12px;
	margin: 6px 0 10px;
}

.tpt-btn {
	display: inline-block;
	background: var(--tpt-gold-dim);
	color: #14181f !important;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 6px;
}

.tpt-btn:hover {
	background: var(--tpt-gold);
	text-decoration: none !important;
}

.tpt-site-footer {
	background: var(--tpt-panel);
	border-top: 1px solid var(--tpt-border);
	margin-top: 40px;
}

.tpt-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	color: var(--tpt-text-dim);
	font-size: 12px;
	text-align: center;
}

.tpt-404 {
	text-align: center;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	font-size: 13px;
}

@media (max-width: 640px) {
	.tpt-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
