/* ============================================================
   base.css — Reset, Variables, Fonts, Utilities
   קורס בישול למתחילים
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700;800&family=Assistant:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary:    #FAF6F0;
  --bg-card:       #FFFFFF;
  --bg-warm:       #F5E9D7;
  --text-primary:  #3D2817;
  --text-soft:     #6B5340;
  --text-muted:    #9C8470;
  --accent:        #E07A5F;
  --accent-dark:   #C45A3F;
  --accent-soft:   #F2CC8F;
  --herb:          #81B29A;
  --herb-light:    #C8E0D5;
  --warning:       #E8A33D;
  --warning-light: #FDF3DC;
  --danger:        #B73E3E;
  --danger-light:  #FDEAEA;
  --shadow:        rgba(61, 40, 23, 0.08);

  --sidebar-width: 280px;
  --header-height: 64px;
  --progress-height: 4px;
  --border-radius: 12px;
  --transition: 0.22s ease;
}

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

html {
  direction: rtl;
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Assistant', 'Heebo', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Heebo', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

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

::-webkit-scrollbar-track {
  background: var(--bg-warm);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 132, 112, 0.45);
  border-radius: 8px;
  transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 132, 112, 0.75);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 132, 112, 0.45) var(--bg-warm);
}

/* --- Utility Classes --- */
.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;
}

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

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

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

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

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

.fw-bold {
  font-weight: 700;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden { display: none !important; }
