/*
Theme Name: Task Manager Companion
Theme URI: https://medvedislon.com
Author: AtlantisWP
Author URI: https://medvedislon.com
Description: Minimal companion theme for a single-purpose Task Manager site. Supplies page chrome only (header, footer, a width-limited container) and shares its color tokens with the Task Manager plugin via CSS custom properties, so light/dark styling stays in sync from one place. Requires the "Task Manager" plugin — all board functionality comes from its [task_manager] shortcode.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: task-manager-theme
*/

/*
 * Tokens below share names with the Task Manager plugin's own .tm-app tokens
 * (task-manager/assets/css/task-manager.css). The plugin reads them via
 * var(--tm-x, fallback), so declaring them here on :root re-skins the board
 * too — change a value in exactly one place. Defaults match the plugin's
 * own fallbacks, so activating this theme changes nothing until edited.
 */
:root {
	--tm-border: #e2e8f0;
	--tm-bg: #f8fafc;
	--tm-text: #1e293b;
	--tm-muted: #64748b;
	--tm-accent: #3b82f6;
	--tm-danger: #ef4444;
	--tm-radius: 8px;

	--tmc-container-width: 1200px;
	--tmc-gap: 1.5rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--tm-border: #334155;
		--tm-bg: #1e293b;
		--tm-text: #e2e8f0;
		--tm-muted: #94a3b8;
	}
}

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

body {
	margin: 0;
	background: var(--tm-bg);
	color: var(--tm-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

a {
	color: inherit;
}

.tmc-container {
	max-width: var(--tmc-container-width);
	margin-inline: auto;
	padding-inline: var(--tmc-gap);
}

.tmc-header {
	border-bottom: 1px solid var(--tm-border);
}

.tmc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
}

.tmc-brand {
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--tm-text);
}

.tmc-header__user {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: var(--tm-muted);
}

.tmc-header__user a {
	color: var(--tm-accent);
	text-decoration: none;
}

.tmc-header__user a:hover {
	text-decoration: underline;
}

.tmc-main {
	padding-block: 2rem;
	min-height: 60vh;
}

.tmc-footer {
	border-top: 1px solid var(--tm-border);
	padding-block: 1.25rem;
	margin-top: 2rem;
	font-size: 0.85rem;
	color: var(--tm-muted);
	text-align: center;
}
