/*
Theme Name: EduFlow
Theme URI: https://example.com/eduflow
Author: EduFlow
Description: Modern, mobile-first and RTL-ready education theme for the EduFlow ecosystem.
Version: 0.90.0-rc41
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: eduflow
Domain Path: /languages
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: education, e-learning, rtl-language-support, translation-ready, custom-logo, custom-menu, custom-colors, editor-style
*/

:root {
	--ef-color-primary: #4f46e5;
	--ef-color-primary-hover: #4338ca;
	--ef-color-primary-soft: #eef2ff;
	--ef-color-success: #15803d;
	--ef-color-warning: #b45309;
	--ef-color-danger: #b91c1c;
	--ef-color-background: #f8fafc;
	--ef-color-surface: #ffffff;
	--ef-color-surface-muted: #f1f5f9;
	--ef-color-text: #0f172a;
	--ef-color-text-secondary: #475569;
	--ef-color-text-muted: #64748b;
	--ef-color-border: #e2e8f0;
	--ef-color-border-strong: #cbd5e1;
	--ef-radius-sm: .375rem;
	--ef-radius-md: .625rem;
	--ef-radius-lg: 1rem;
	--ef-radius-xl: 1.5rem;
	--ef-radius-pill: 9999px;
	--ef-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
	--ef-shadow-md: 0 12px 35px rgba(15, 23, 42, .08);
	--ef-space-2: .5rem;
	--ef-space-3: .75rem;
	--ef-space-4: 1rem;
	--ef-space-5: 1.25rem;
	--ef-space-6: 1.5rem;
	--ef-space-8: 2rem;
	--ef-space-10: 2.5rem;
	--ef-space-12: 3rem;
	--ef-space-16: 4rem;
	--ef-container: 1200px;
	--ef-content: 760px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ef-color-background);
	color: var(--ef-color-text);
	font-family: var(--ef-font-stack, "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
	font: inherit;
}

.ef-container {
	width: min(calc(100% - 2rem), var(--ef-container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

@media (min-width: 768px) {
	.ef-container {
		width: min(calc(100% - 3rem), var(--ef-container));
	}
}


/* EduFlow 0.12.3 — Header authentication polish */
.ef-header-auth{
	display:flex;
	align-items:center;
	gap:.5rem;
	margin-inline-start:.35rem;
}
.ef-header-login,
.ef-header-register,
.ef-header-account,
.ef-header-logout{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-height:42px;
	border-radius:12px;
	text-decoration:none;
	line-height:1;
	white-space:nowrap;
	transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.ef-header-login{
	padding:.7rem .85rem;
	border:1px solid #e2e8f0;
	background:#fff;
	color:#0f172a;
	font-size:.86rem;
	font-weight:800;
}
.ef-header-login:hover{
	border-color:#c7d2fe;
	background:#f8fafc;
	transform:translateY(-1px);
}
.ef-header-register{
	padding:.72rem 1rem;
	border:1px solid #4f46e5;
	background:#4f46e5;
	color:#fff!important;
	font-size:.86rem;
	font-weight:900;
	box-shadow:0 8px 18px rgba(79,70,229,.18);
}
.ef-header-register:hover{
	background:#4338ca;
	border-color:#4338ca;
	transform:translateY(-1px);
	box-shadow:0 10px 22px rgba(79,70,229,.24);
}
.ef-header-account{
	padding:.7rem .9rem;
	background:#eef2ff;
	color:#3730a3;
	font-size:.84rem;
	font-weight:900;
}
.ef-header-logout{
	padding:.7rem .75rem;
	color:#64748b;
	font-size:.82rem;
	font-weight:800;
}
.ef-header-auth a:focus-visible{
	outline:3px solid rgba(79,70,229,.2);
	outline-offset:2px;
}
@media (max-width:760px){
	.ef-header-auth{
		gap:.4rem;
		margin-inline-start:0;
	}
	.ef-header-login,
	.ef-header-register{
		min-height:40px;
		border-radius:11px;
		font-size:.8rem;
	}
	.ef-header-login{padding:.62rem .72rem}
	.ef-header-register{padding:.64rem .78rem;display:inline-flex!important}
}
@media (max-width:390px){
	.ef-header-auth{gap:.32rem}
	.ef-header-login{padding:.58rem .62rem}
	.ef-header-register{padding:.6rem .66rem}
}
