/* =========================================================================
   MAT-EĞİTİM Site CSS — Tek kaynaktan stil
   - Marka renkleri CSS variable olarak; admin tema ayarı ile override edilebilir
   - Layout/komponent/utility stilleri burada toplanır
   ========================================================================= */

/* --------- Marka renkleri (variables) --------- */
:root {
	--primary: #5eb130;
	--primary-dark: #4a9d27;
	--primary-light: #7ec85a;
	--primary-glow: rgba(94, 177, 48, 0.3);
	--primary-glow-strong: rgba(94, 177, 48, 0.4);
	--primary-tint: rgba(94, 177, 48, 0.1);

	--secondary: #231d45;
	--secondary-dark: #1a1533;

	--accent-orange: #f6a42e;
	--accent-orange-light: #ffb84d;
	--accent-orange-glow: rgba(246, 164, 46, 0.3);
	--accent-orange-glow-strong: rgba(246, 164, 46, 0.4);

	--accent-indigo: #6366f1;
	--accent-purple: #8b5cf6;
	--accent-indigo-glow: rgba(99, 102, 241, 0.3);
	--accent-indigo-glow-strong: rgba(99, 102, 241, 0.4);

	/* Geriye uyumluluk (mevcut --primary-color kullanan kodlar bozulmasın) */
	--primary-color: var(--primary);
	--secondary-color: var(--secondary);
}

/* --------- Genel --------- */
html { scroll-behavior: smooth; }

/* --------- Hover Lift --------- */
.hover-lift {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* --------- Modern Card --------- */
.modern-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modern-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* --------- Buton stilleri --------- */
.btn-modern {
	transition: all 0.2s ease;
	border-radius: 9999px;
	font-weight: 600;
}
.btn-modern:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--primary) !important;
	color: #fff !important;
}
.btn-primary:hover {
	background: var(--primary-light) !important;
}

.btn-outline {
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
	color: var(--secondary);
	transition: all 0.2s ease;
}
.btn-outline:hover {
	border-color: var(--primary) !important;
	color: var(--primary) !important;
}

.btn-ghost {
	background: #f9fafb;
	color: var(--secondary);
	border: 1px solid #eef2f7;
	transition: all 0.2s ease;
}
.btn-ghost:hover {
	background: var(--primary) !important;
	color: #fff !important;
	border-color: var(--primary) !important;
}

.btn-icon {
	padding: 0.5rem 0.75rem;
	border-radius: 9999px;
	background: #fff;
	border: 1px solid #eef2f7;
	transition: all 0.2s ease;
}
.btn-icon:hover {
	border-color: var(--primary) !important;
	color: var(--primary) !important;
}

/* --------- Panel/Sipariş/Affiliate butonları --------- */
.btn-panel {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 2px 8px var(--primary-glow) !important;
}
.btn-panel:hover {
	background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important;
	box-shadow: 0 4px 12px var(--primary-glow-strong) !important;
}

.btn-orders {
	background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 2px 8px var(--accent-orange-glow) !important;
}
.btn-orders:hover {
	background: linear-gradient(135deg, var(--accent-orange-light) 0%, var(--accent-orange) 100%) !important;
	box-shadow: 0 4px 12px var(--accent-orange-glow-strong) !important;
}

.btn-affiliate {
	background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 2px 8px var(--accent-indigo-glow) !important;
}
.btn-affiliate:hover {
	background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%) !important;
	box-shadow: 0 4px 12px var(--accent-indigo-glow-strong) !important;
}

/* --------- Gradient utility class'lar (inline style yerine) --------- */
.gradient-primary {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.gradient-orange {
	background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
}
.gradient-affiliate {
	background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
}
.gradient-hero {
	background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 50%, var(--secondary-dark) 100%);
}

/* --------- Input --------- */
.input-modern {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-modern:focus {
	box-shadow: 0 0 0 3px var(--primary-tint);
}

/* --------- Header --------- */
.header-modern {
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* --------- CKEditor içerik stilleri (.text-gray-700 wrap) --------- */
.text-gray-700 p {
	margin-bottom: 1rem;
	line-height: 1.7;
}
.text-gray-700 p:last-child { margin-bottom: 0; }
.text-gray-700 ul,
.text-gray-700 ol {
	margin: 1rem 0;
	padding-left: 2rem;
}
.text-gray-700 li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}
.text-gray-700 h1,
.text-gray-700 h2,
.text-gray-700 h3,
.text-gray-700 h4 {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	font-weight: bold;
}
.text-gray-700 h1 { font-size: 1.875rem; }
.text-gray-700 h2 { font-size: 1.5rem; }
.text-gray-700 h3 { font-size: 1.25rem; }
.text-gray-700 h4 { font-size: 1.125rem; }
.text-gray-700 strong { font-weight: 600; }
.text-gray-700 em { font-style: italic; }
.text-gray-700 a {
	color: #4f46e5;
	text-decoration: underline;
}
.text-gray-700 a:hover { color: #4338ca; }
.text-gray-700 blockquote {
	border-left: 4px solid #e5e7eb;
	padding-left: 1rem;
	margin: 1rem 0;
	font-style: italic;
	color: #6b7280;
}

/* --------- Swiper (home + diğer slider sayfalar) --------- */
.swiper {
	padding-bottom: 50px;
}
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary);
	background: white;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}
.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 18px;
	font-weight: bold;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
	background: var(--primary);
	color: white;
	transform: scale(1.1);
}
.swiper-pagination-bullet {
	background: var(--primary);
	opacity: 0.5;
	width: 12px;
	height: 12px;
}
.swiper-pagination-bullet-active {
	opacity: 1;
	background: var(--primary);
}
.swiper-slide {
	height: auto;
}

/* --------- Lazy Loading ---------
   Native browser lazy loading (loading="lazy") is used.
   Removed: opacity:0 → .loaded fade-in pattern (JS-dependent, broke images
   when JS didn't add .loaded class). Browsers already handle lazy natively.
*/

/* --------- Animations --------- */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

@keyframes site-pulse {
	0%, 100% { opacity: 0.1; }
	50% { opacity: 0.2; }
}
/* Not: Tailwind kendi animate-pulse'unu override etmiyoruz; özel kullanım için: */
.animate-math-pulse {
	animation: site-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }

/* --------- Mobil safe area --------- */
.safe-area-bottom {
	padding-bottom: env(safe-area-inset-bottom, 0);
}

/* --------- Marka rengi text/background utility --------- */
.text-brand { color: var(--primary) !important; }
.bg-brand { background-color: var(--primary) !important; }
.bg-brand-secondary { background-color: var(--secondary) !important; }

/* --------- Home responsive iyileştirmeleri --------- */
@media (max-width: 640px) {
	/* Hero matematik sembolleri mobile'de küçülsün */
	.hero-math-symbol-lg { font-size: 4rem !important; }
	.hero-math-symbol-md { font-size: 3rem !important; }
	.hero-math-symbol-sm { font-size: 2.25rem !important; }
}
</content>
</invoke>