/* =====================================================
   BASE STYLES - Global Design System
   ===================================================== */

/* ----- Global CSS Variables ----- */
:root {
	/* Colors - Background */
	--color-bg-page: #181818;
	--color-bg-card: #1e1e1e;
	--color-bg-elevated: #252525;
	--color-bg-input: #1a1a1a;
	--color-bg-hover: rgba(255, 255, 255, 0.08);

	/* Colors - Text */
	--color-text: #ffffff;
	--color-text-muted: #9a9a9a;
	--color-text-secondary: #707070;

	/* Colors - Accent */
	--color-accent: #e34449;
	--color-accent-hover: #ff5a5f;

	/* Colors - Border */
	--color-border: rgba(255, 255, 255, 0.1);
	--color-border-light: rgba(255, 255, 255, 0.06);

	/* Colors - Status */
	--color-success: #4caf50;
	--color-warning: #ffc107;
	--color-error: #e34449;

	/* Typography */
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-size-xs: 11px;
	--font-size-sm: 13px;
	--font-size-base: 14px;
	--font-size-md: 15px;
	--font-size-lg: 18px;
	--font-size-xl: 22px;
	--font-size-2xl: 28px;

	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 12px;
	--spacing-lg: 16px;
	--spacing-xl: 24px;
	--spacing-2xl: 32px;

	/* Border Radius */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-full: 9999px;

	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition-base: 0.2s ease;
	--transition-slow: 0.3s ease;

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

	/* Z-index layers */
	--z-dropdown: 100;
	--z-sticky: 500;
	--z-modal: 1000;
	--z-tooltip: 1100;
}

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

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: 1.5;
	color: var(--color-text);
	background: var(--color-bg-page);
	min-height: 100vh;
}

a {
	color: inherit;
	text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 600;
	line-height: 1.3;
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

/* ----- Container ----- */
.container {
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 var(--spacing-xl);
}

@media (max-width: 767px) {
	.container {
		padding: 0 var(--spacing-lg);
	}
}

@media (max-width: 479px) {
	.container {
		padding: 0 var(--spacing-md);
	}
}

/* ----- Main Layout ----- */
.main-columns {
	display: flex;
	gap: var(--spacing-xl);
	padding: var(--spacing-xl) 0;
}

.main-columns.custom {
	flex-direction: column;
}

/* ----- Sections ----- */
.sections {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2xl);
}

/* ----- SVG Icons ----- */
.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ----- Buttons ----- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	padding: 10px 20px;
	font-size: var(--font-size-base);
	font-weight: 500;
	color: var(--color-text);
	background: var(--color-accent);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color var(--transition-fast);
	white-space: nowrap;
}

.button:hover {
	background: var(--color-accent-hover);
}

.button.border {
	background: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
}

.button.border:hover {
	border-color: var(--color-text-muted);
	color: var(--color-text);
}

.button[disabled] {
	opacity: 0.4;
	pointer-events: none;
}

/* ----- Utility Classes ----- */
.hidden {
	display: none !important;
}

.for-mobile {
	display: none;
}

@media (max-width: 767px) {
	.for-mobile {
		display: block;
	}
	.for-desktop {
		display: none;
	}
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--color-bg-page);
}

::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
	background: #444;
}

/* ----- Selection ----- */
::selection {
	background: var(--color-accent);
	color: var(--color-text);
}

/* ----- Focus Styles ----- */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* ----- Empty Content ----- */
.empty-content {
	padding: var(--spacing-2xl);
	text-align: center;
	color: var(--color-text-muted);
	font-size: var(--font-size-md);
}
