/* SinzTools Global Styles - Enhanced for better aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	--primary-color: #2563eb;
	--primary-hover: #1d4ed8;
	--secondary-color: #64748b;
	--background-color: #f8fafc;
	--card-background: #ffffff;
	--text-color: #1e293b;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--radius: 8px;
	--radius-lg: 12px;
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
	line-height: 1.6;
	color: var(--text-color);
	background: linear-gradient(135deg, var(--background-color) 0%, #f1f5f9 100%);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 28px;
	margin-bottom: 32px;
	background-color: var(--card-background);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s ease;
}

header:hover {
	box-shadow: var(--shadow-lg);
}

.site-title {
	font-size: 1.8em;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.site-title a {
	text-decoration: none;
	color: inherit;
}

header nav {
	display: flex;
	gap: 24px;
}

header nav a {
	color: var(--text-color);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: var(--radius);
	transition: all 0.2s ease;
	position: relative;
}

header nav a:hover {
	color: var(--primary-color);
	background-color: rgba(37, 99, 235, 0.1);
}

header nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

header nav a:hover::after {
	width: 100%;
}

header nav a.active::after {
	width: 100%;
}

header nav a.active {
	font-weight: 600;
	color: var(--primary-hover);
}

.content {
	background-color: var(--card-background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 40px;
	margin-bottom: 32px;
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s ease;
}

.content:hover {
	box-shadow: var(--shadow-lg);
}

h1 {
	color: var(--text-color);
	font-size: 2.5em;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.2;
	background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

h2 {
	font-size: 1.8em;
	font-weight: 600;
	margin-bottom: 16px;
	margin-top: 48px;
	color: var(--text-color);
}

h3 {
	font-size: 1.4em;
	font-weight: 600;
	margin-bottom: 12px;
	margin-top: 32px;
	color: var(--text-color);
}

p {
	font-size: 1.1em;
	margin-bottom: 20px;
	color: var(--text-muted);
	line-height: 1.7;
}

a:link, a:visited, a:hover, a:active, a:focus {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
	outline: none;
}

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

ul, ol {
	margin-bottom: 20px;
	padding-left: 24px;
}

li {
	margin-bottom: 8px;
	color: var(--text-muted);
}

button {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
	color: white;
	border: none;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: all 0.2s ease;
}

button:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-lg);
	background: linear-gradient(135deg, var(--primary-hover), #1e40af);
}

input, select, textarea {
	padding: 14px;
	font-size: 16px;
	border: 2px solid var(--border-color);
	border-radius: var(--radius);
	box-sizing: border-box;
	margin: 8px 0;
	transition: border-color 0.2s ease;
	font-family: inherit;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tools h2 {
	text-align: center;
	margin-bottom: 32px;
}

.tool-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.tool-item {
	background: var(--card-background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 28px;
	text-align: center;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.tool-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.tool-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.tool-item h3 {
	margin: 0 0 16px 0;
	font-size: 1.3em;
	font-weight: 600;
	color: var(--text-color);
}

.tool-item p {
	margin: 0;
	color: var(--text-muted);
	font-size: 1em;
}

footer {
	margin-top: 64px;
	text-align: center;
	border-top: 1px solid var(--border-color);
	padding-top: 24px;
	color: var(--text-muted);
	font-size: 14px;
	background-color: var(--card-background);
	border-radius: var(--radius-lg);
	padding: 24px 32px;
	margin-bottom: 32px;
	box-shadow: var(--shadow);
}

footer nav {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-bottom: 16px;
}

footer nav a {
	text-decoration: none;
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

footer nav a:hover {
	color: var(--primary-hover);
}

footer p {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
	body {
		padding: 16px;
	}
	
	header {
		flex-direction: column;
		text-align: center;
		gap: 16px;
		padding: 20px;
	}
	
	header nav {
		flex-wrap: wrap;
		gap: 16px;
		justify-content: center;
	}
	
	.content {
		padding: 24px;
	}
	
	h1 {
		font-size: 2em;
	}
	
	h2 {
		font-size: 1.5em;
	}
	
	.tool-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	footer nav {
		flex-direction: column;
		gap: 12px;
	}
	
	footer {
		padding: 20px;
	}
}

/* Skip to main content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--primary-color);
	color: white;
	padding: 8px;
	text-decoration: none;
	border-radius: var(--radius);
	z-index: 1000;
	font-weight: 600;
	transition: top 0.3s ease;
}

.skip-link:focus {
	top: 6px;
}

/* Focus indicators for better keyboard navigation */
*:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root {
		--primary-color: #0000ff;
		--primary-hover: #000080;
		--text-color: #000000;
		--background-color: #ffffff;
		--card-background: #ffffff;
		--border-color: #000000;
	}
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Screen reader only text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--primary-color);
	color: white;
	padding: 8px;
	text-decoration: none;
	border-radius: var(--radius);
	z-index: 1000;
	font-weight: 600;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 6px;
	outline: 2px solid var(--text-color);
	outline-offset: 2px;
}