/*
Theme Name: Anglish
Theme URI: https://anglish.ir
Author: Anglish Team
Author URI: https://anglish.ir
Description: پلتفرم جامع آموزش زبان انگلیسی — دانشنامه واژگان + دوره‌ها + پادکست + وبلاگ. طراحی مدرن، سبک و آماده برای مقیاس‌پذیری بالا و ورود خودکار داده با n8n.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anglish
Tags: education, vocabulary, rtl-language-support, custom-post-type, blog, e-commerce-ready
*/

/* ============================================================
   Anglish — Core Design Tokens (exactly matching word-detail-36fields)
   ============================================================ */
:root {
  --font-fa: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --border: #E5E5EA;
  --border-light: #F0F0F3;

  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --purple-mid: #AFA9EC;
  --purple-dark: #3C3489;
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;

  --text-1: #1C1C1E;
  --text-2: #6E6E73;
  --text-3: #AEAEB2;

  --green: #0F6E56;
  --green-bg: #E1F5EE;
  --green-border: #9FE1CB;

  --amber: #854F0B;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;

  --red-bg: #FCEBEB;
  --red-text: #A32D2D;
  --red-border: #F7C1C1;

  --blue-bg: #EFF6FF;
  --blue-text: #1D4ED8;
  --blue-border: #BFDBFE;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 100%;
  --sidebar-width: 260px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: -0.01em;
  direction: rtl;
}

.ltr {
  direction: ltr;
  font-family: var(--font-en);
  text-align: left;
}

.rtl {
  direction: rtl;
  text-align: right;
}

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

a:hover {
  color: var(--purple-dark);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d1d6;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b0b0b8;
}

/* Utility */
.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
