/*
Theme Name: ESG Generator
Theme URI: https://esgplatform-a2aa3izy.manus.space/
Author: ESG Team
Author URI: https://esgplatform-a2aa3izy.manus.space/
Description: Professional ESG platform theme for WordPress - AI-drevet ESG-platform med login, dataindsamling, AI-assistenter og rapportering for SMV'er
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esg-generator-tema
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================================================
   DESIGN TOKENS (Master Source of Truth)
   Based on reference: https://esgplatform-a2aa3izy.manus.space/
   ============================================================================ */

:root {
	/* Typography - Inter Font Family */
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
	--font-size-xs: 12px;
	--font-size-sm: 14px;
	--font-size-base: 16px;
	--font-size-lg: 18px;
	--font-size-xl: 24px;
	--font-size-2xl: 32px;
	--font-size-3xl: 60px;
	--line-height: 1.5;
	--line-height-tight: 1.25;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	/* Color Palette - Reference Design */
	--primary: #00A86B;
	--primary-dark: #008C5A;
	--primary-light: #E8F5E9;
	--secondary: #0066CC;
	--secondary-light: #E3F2FD;
	--accent: #FFB81C;
	--accent-light: #FFF8E1;
	--text: #1A1A1A;
	--text-secondary: #666666;
	--text-muted: #999999;
	--bg: #FFFFFF;
	--bg-light: #F5F7FA;
	--border: #E2E8F0;
	--success: #00A86B;
	--warning: #FFB81C;
	--danger: #E74C3C;
	--info: #0066CC;

	/* Spacing Scale */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	/* Border Radius */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

	/* Transitions */
	--transition-fast: 150ms ease-in-out;
	--transition-base: 200ms ease-in-out;
	--transition-slow: 300ms ease-in-out;
}

/* ============================================================================
   BASE STYLES (Global)
   ============================================================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: var(--line-height);
	color: var(--text);
	background-color: var(--bg-light);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TYPOGRAPHY (Global)
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-4) 0;
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--text);
}

h1 {
	font-size: var(--font-size-3xl);
	margin-bottom: var(--space-5);
}

h2 {
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-4);
}

h3 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-3);
}

p {
	margin: 0 0 var(--space-4) 0;
	color: var(--text-secondary);
}

a {
	color: var(--secondary);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover {
	color: var(--primary);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid var(--secondary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* ============================================================================
   BUTTONS (Global)
   ============================================================================ */

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	font-family: var(--font-family);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition-base);
	text-decoration: none;
	white-space: nowrap;
	user-select: none;
	-webkit-user-select: none;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--secondary);
	outline-offset: 2px;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Primary Button */
button.btn-primary,
input[type="submit"],
.btn-primary {
	background-color: var(--primary);
	color: white;
}

button.btn-primary:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
	background-color: var(--primary-dark);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

/* Secondary Button */
button.btn-secondary,
.btn-secondary {
	background-color: var(--accent);
	color: var(--text);
	border: 2px solid var(--accent);
}

button.btn-secondary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
	background-color: #E6A500;
	border-color: #E6A500;
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

/* Ghost Button */
button.btn-ghost,
.btn-ghost {
	background-color: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

button.btn-ghost:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
	background-color: var(--bg-light);
	border-color: var(--text);
}

/* ============================================================================
   FORMS (Global)
   ============================================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
textarea,
select {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	background-color: var(--bg-light);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

label {
	display: block;
	margin-bottom: var(--space-2);
	font-weight: var(--font-weight-semibold);
	color: var(--text);
}

/* ============================================================================
   WORDPRESS SPECIFIC
   ============================================================================ */

.site {
	background-color: var(--bg);
}

.site-header {
	background-color: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: var(--space-4) 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-title {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	color: var(--text);
	margin: 0;
}

.site-title a {
	color: var(--text);
}

.site-description {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	margin: 0;
	display: none;
}

.site-content {
	padding: var(--space-6) 0;
}

.site-footer {
	background-color: var(--bg-light);
	border-top: 1px solid var(--border);
	padding: var(--space-6) 0;
	margin-top: var(--space-8);
	color: var(--text-secondary);
}

.entry-header {
	margin-bottom: var(--space-5);
}

.entry-title {
	font-size: var(--font-size-2xl);
	margin-bottom: var(--space-3);
}

.entry-meta {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
}

.entry-content {
	line-height: var(--line-height);
}

.entry-content p {
	margin-bottom: var(--space-4);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: var(--space-5) 0;
	border-radius: var(--radius-md);
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: var(--space-5);
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--border);
}

.post-nav-link {
	flex: 1;
	padding: var(--space-4);
	background-color: var(--bg-light);
	border-radius: var(--radius-md);
	transition: background-color var(--transition-base);
}

.post-nav-link:hover {
	background-color: var(--bg);
}

.post-nav-link .post-nav-label {
	display: block;
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	margin-bottom: var(--space-2);
}

.post-nav-link .post-nav-title {
	font-weight: var(--font-weight-semibold);
	color: var(--text);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
	h1 {
		font-size: var(--font-size-2xl);
	}

	h2 {
		font-size: var(--font-size-lg);
	}

	button,
	input[type="button"],
	input[type="submit"],
	input[type="reset"],
	.btn {
		padding: var(--space-3) var(--space-4);
		font-size: var(--font-size-sm);
	}

	.site-content {
		padding: var(--space-4) 0;
	}

	.post-navigation {
		flex-direction: column;
	}
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--space-4);
}

@media (min-width: 768px) {
	.container {
		padding: 0 var(--space-5);
	}
}

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

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

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.bg-mint { background-color: var(--primary-light); }
.bg-blue { background-color: var(--secondary-light); }
.bg-yellow { background-color: var(--accent-light); }
