/* Global Styles - Loaded after critical CSS */

:root {
	/* Semantic Colors - Success */
	--c-success: #10b981;
	--c-success-light: #d1fae5;
	--c-success-dark: #065f46;
	--c-success-bg: #f0fdf4;
	--c-success-border: #bbf7d0;

	/* Semantic Colors - Error */
	--c-error: #ef4444;
	--c-error-light: #fee2e2;
	--c-error-dark: #991b1b;
	--c-error-bg: #fef2f2;
	--c-error-border: #fecaca;

	/* Semantic Colors - Warning */
	--c-warning: #f59e0b;
	--c-warning-light: #fef3c7;
	--c-warning-dark: #92400e;
	--c-warning-bg: #fffbeb;
	--c-warning-border: #fde68a;

	/* Semantic Colors - Info */
	--c-info: #3b82f6;
	--c-info-light: #dbeafe;
	--c-info-dark: #1e40af;
	--c-info-bg: #eff6ff;
	--c-info-border: #bfdbfe;

	/* Status Colors */
	--c-status-verified: #10b981;
	--c-status-pending: #f59e0b;
	--c-status-progress: #3b82f6;
	--c-status-resolved: #8b5cf6;
	--c-status-rejected: #ef4444;
	--c-status-duplicate: #6b7280;
	--c-status-flagged: #f97316;

	/* Social Brand Colors */
	--c-google: #4285f4;
	--c-github: #24292f;
	--c-facebook: #1877f2;

	/* Severity Colors */
	--c-severity-critical: #dc2626;
	--c-severity-high: #f97316;
	--c-severity-medium: #eab308;
	--c-severity-low: #22c55e;

	/* Content widths for different screens */
	--content-narrow: 480px;
	--content-default: 680px;
	--content-wide: 1200px;
	--content-full: 1400px;

	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Glass Header */
.glass-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--c-border);
	z-index: 50;
	display: flex;
	align-items: center;
}

.container {
	width: 100%;
	max-width: var(--content-default);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

main {
	margin-top: var(--header-height);
	padding: 2rem 0;
	flex: 1;
}

main > .container {
	display: block;
}

/* Wide screen adjustments */
@media (min-width: 1200px) {
	.container {
		max-width: var(--content-wide);
	}
}

@media (min-width: 1600px) {
	.container {
		max-width: var(--content-full);
	}

	main {
		padding: 3rem 0;
	}
}

/* Header Layout */
.header-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Brand */
.brand-link {
	text-decoration: none;
	color: var(--c-text-primary);
	display: flex;
	align-items: center;
	transition: opacity 0.2s;
}

.brand-link:hover {
	opacity: 0.7;
}

.brand-logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
	letter-spacing: -0.03em;
}

/* Sign In Button (Mobile) */
.sign-in-btn {
	display: none;
	padding: 0.375rem 0.875rem;
	background: var(--c-brand);
	color: var(--c-brand-contrast);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--radius-full);
	transition: opacity 0.2s;
}

.sign-in-btn:hover {
	opacity: 0.9;
}

.mobile-only {
	display: none;
}

/* Nav */
nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav-link {
	text-decoration: none;
	color: var(--c-text-secondary);
	font-size: 0.9375rem;
	font-weight: 500;
	transition: color 0.2s ease;
	will-change: color;
}

.nav-link:hover {
	color: var(--c-text-primary);
}

.nav-link:active {
	opacity: 0.7;
}

.nav-btn {
	background: transparent;
	border: none;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--c-text-secondary);
	cursor: pointer;
	padding: 0.5rem 0;
	transition: color 0.2s ease;
	will-change: color;
}

.nav-btn:hover {
	color: var(--c-text-primary);
}

.nav-btn:active {
	opacity: 0.7;
}

.nav-btn.primary {
	background: var(--c-brand);
	color: var(--c-brand-contrast);
	padding: 0.5rem 1rem;
	border-radius: 99px;
	transition: transform 0.15s ease, opacity 0.2s ease;
	will-change: transform, opacity;
}

.nav-btn.primary:hover {
	opacity: 0.9;
	color: var(--c-brand-contrast);
}

.nav-btn.primary:active {
	transform: scale(0.95);
}

/* Mobile Bottom Navigation */
.mobile-nav {
	display: none;
}

/* Floating Submit Button (WhatsApp style) */
.floating-submit-btn {
	display: none;
	position: fixed;
	bottom: 5rem;
	right: 1.5rem;
	width: 56px;
	height: 56px;
	background: var(--c-brand);
	color: var(--c-brand-contrast);
	border-radius: var(--radius-md);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
	z-index: 45;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.floating-submit-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.12);
}

.floating-submit-btn:active {
	transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}

	.desktop-nav {
		gap: 0.75rem;
	}

	.nav-link {
		font-size: 0.875rem;
	}

	main {
		padding: 1.5rem 0;
	}
}

@media (max-width: 640px) {
	:root {
		--header-height: 56px;
	}

	.glass-header {
		height: 56px;
	}

	.container {
		padding: 0 1rem;
	}

	.desktop-nav {
		display: none;
	}

	.mobile-only {
		display: block;
	}

	main {
		padding: 1rem 0 4rem 0;
	}

	/* Mobile Bottom Navigation */
	.mobile-nav {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-top: 1px solid var(--c-border);
		padding: 0.5rem;
		z-index: 50;
		justify-content: space-around;
		align-items: center;
		gap: 0.25rem;
	}

	.mobile-nav-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.25rem;
		padding: 0.5rem 0.75rem;
		border-radius: var(--radius-sm);
		text-decoration: none;
		color: var(--c-text-secondary);
		transition: all 0.2s;
		flex: 1;
		max-width: 120px;
		background: transparent;
		border: none;
		font-family: inherit;
		cursor: pointer;
	}

	.mobile-nav-item:active {
		background: var(--c-bg-subtle);
		transform: scale(0.95);
	}

	.mobile-nav-icon {
		font-size: 1.25rem;
		line-height: 1;
	}

	.mobile-nav-label {
		font-size: 0.6875rem;
		font-weight: 500;
		white-space: nowrap;
	}

	/* Show Floating Button */
	.floating-submit-btn {
		display: flex;
	}
}

@media (max-width: 360px) {
	.container {
		padding: 0 0.75rem;
	}

	main {
		padding: 0.75rem 0 4.5rem 0;
	}
}
