/* ============================================
	ET Barber - Ana Stiller
	etBerber referans: Dark & Gold renk sistemi
	============================================ */

/* --- CSS Custom Properties (Tema Değişkenleri) --- */
:root {
	/* Dark & Gold (Varsayılan - Luxury) */
	--color-primary: #d4af37;
	--color-primary-foreground: #000000;
	--color-secondary: #2a2a2a;
	--color-secondary-foreground: #ffffff;
	--color-background: #121212;
	--color-foreground: #f5f5f5;
	--color-card: #1e1e1e;
	--color-card-foreground: #f5f5f5;
	--color-border: #333333;
	--color-muted: #2a2a2a;
	--color-muted-foreground: #a3a3a3;

	/* Tipografi */
	--font-primary: 'Inter', system-ui, -apple-system, sans-serif;
	--font-serif: 'Playfair Display', Georgia, serif;

	/* Spacing ölçeği (4px grid) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-20: 5rem;
	--space-24: 6rem;

	/* Border radius */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-2xl: 1.5rem;
	--radius-full: 9999px;

	/* Geçiş süresi */
	--transition-fast: 150ms ease;
	--transition-base: 300ms ease;
	--transition-slow: 500ms ease;

	/* Gölgeler */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
	--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);

	/* Container */
	--container-max: 1200px;
	--container-padding: var(--space-4);
}

/* --- Alternatif Temalar (CSS class ile değişir) --- */

/* Classic Barber (Beyaz + Kırmızı) */
.theme-classic {
	--color-primary: #b91c1c;
	--color-primary-foreground: #ffffff;
	--color-secondary: #f3f4f6;
	--color-secondary-foreground: #1f2937;
	--color-background: #ffffff;
	--color-foreground: #1a1a1a;
	--color-card: #ffffff;
	--color-card-foreground: #1a1a1a;
	--color-border: #e5e7eb;
	--color-muted: #f3f4f6;
	--color-muted-foreground: #6b7280;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Modern Minimalist (Slate + Emerald) */
.theme-modern {
	--color-primary: #10b981;
	--color-primary-foreground: #ffffff;
	--color-secondary: #1e293b;
	--color-secondary-foreground: #f1f5f9;
	--color-background: #0f172a;
	--color-foreground: #f8fafc;
	--color-card: #1e293b;
	--color-card-foreground: #f8fafc;
	--color-border: #334155;
	--color-muted: #1e293b;
	--color-muted-foreground: #94a3b8;
}

/* --- Reset & Temel Stiller --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	font-family: var(--font-primary);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-foreground);
	background-color: var(--color-background);
	transition: background-color var(--transition-base), color var(--transition-base);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	position: relative;
	width: 100%;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	opacity: 0.9;
}

/* --- Tipografi --- */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--space-4);
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

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

.font-serif {
	font-family: var(--font-serif);
}

.text-primary {
	color: var(--color-primary);
}

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

/* --- Layout --- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.section {
	padding-top: var(--space-24);
	padding-bottom: var(--space-24);
}

.section-title {
	text-align: center;
	margin-bottom: var(--space-16);
}

.section-title h2 {
	margin-bottom: var(--space-4);
}

.section-title .divider {
	width: 6rem;
	height: 0.25rem;
	background-color: var(--color-primary);
	margin: 0 auto;
	border-radius: var(--radius-full);
}

/* --- Grid Sistem --- */
.grid {
	display: grid;
	gap: var(--space-8);
}

.grid-2 {
	grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
	grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
	grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* --- Flex Yardımcıları --- */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

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

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- Görünürlük Utility'leri --- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

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

/* --- Arka Plan Renkleri --- */
.bg-background { background-color: var(--color-background); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-card { background-color: var(--color-card); }
.bg-primary { background-color: var(--color-primary); }

/* --- Animasyonlar --- */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.animate-fade-up {
	animation: fadeUp 0.6s ease both;
	will-change: opacity, transform;
}

.animate-fade-in {
	animation: fadeIn 0.6s ease both;
}

.animate-scale-in {
	animation: scaleIn 0.4s ease both;
}

/* Stagger delay'ler */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
