/*
Theme Name: Kampung Digital
Theme URI: https://example.com
Author: Kampung Digital
Author URI: https://example.com
Description: Tema Sistem Desa Digital terintegrasi dengan pengelolaan Penduduk dan Surat. Tampilan modern dan profesional.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kampung-digital
*/

/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */
:root {
	/* Colors */
	--primary-color: #2563eb; /* Modern Blue */
	--primary-hover: #1d4ed8;
	--bg-color: #f8fafc;
	--surface-color: #ffffff;
	--text-main: #1e293b;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--accent-color: #10b981; /* Emerald Green */

	/* Typography */
	--font-family: 'Inter', system-ui, -apple-system, sans-serif;
	
	/* Spacing & Layout */
	--container-max: 1200px;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	
	/* Shadows & Radius */
	--radius: 12px;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

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

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.site-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-lg);
	padding: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
	.site-content.has-sidebar {
		grid-template-columns: 2.5fr 1fr;
	}
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 80px;
	flex-wrap: wrap;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.site-title a {
	color: inherit;
}

.site-description {
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* Menu */
.main-navigation ul {
	list-style: none;
	display: flex;
	gap: var(--spacing-lg);
}

.main-navigation a {
	color: var(--text-main);
	font-weight: 500;
}

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

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border-color);
	padding: 0.5rem 1rem;
	border-radius: var(--radius);
	cursor: pointer;
	font-family: inherit;
	color: var(--text-main);
}

@media (max-width: 767px) {
	.menu-toggle {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	
	.main-navigation ul {
		display: none;
		flex-direction: column;
		width: 100%;
		padding: var(--spacing-md) 0;
		gap: var(--spacing-md);
	}
	
	.main-navigation ul.toggled {
		display: flex;
	}
}

/* ==========================================================================
   Components (Cards, Widgets)
   ========================================================================== */
.card {
	background: var(--surface-color);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: var(--spacing-lg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

/* Widgets */
.widget {
	margin-bottom: var(--spacing-lg);
}

.widget-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: var(--spacing-md);
	color: var(--text-main);
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 0.5rem;
}

.widget ul {
	list-style: none;
}

.widget ul li {
	margin-bottom: 0.5rem;
	border-bottom: 1px dashed var(--border-color);
	padding-bottom: 0.5rem;
}

.widget ul li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Footer */
.site-footer {
	background-color: #0f172a;
	color: #cbd5e1;
	padding: var(--spacing-xl) 0 var(--spacing-md);
	margin-top: var(--spacing-xl);
}

.site-footer a {
	color: #94a3b8;
}

.site-footer a:hover {
	color: #ffffff;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-xl);
}

.site-info {
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: var(--spacing-md);
	font-size: 0.875rem;
}
