/* אתר הלומדות של מיתרים — שכבת עיצוב מצומצמת שמועתקת משפת הספריות */

/* ── Fonts ── */
@font-face {
  font-family: 'Antidot';
  src: url('/static/fonts/osantidottr-regular-web.woff2') format('woff2'),
       url('/static/fonts/osantidottr-regular-web.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'Antidot';
  src: url('/static/fonts/osantidottr-semibold-web.woff2') format('woff2'),
       url('/static/fonts/osantidottr-semibold-web.woff') format('woff');
  font-weight: 600;
}
@font-face {
  font-family: 'Antidot';
  src: url('/static/fonts/osantidottr-bold-web.woff2') format('woff2'),
       url('/static/fonts/osantidottr-bold-web.woff') format('woff');
  font-weight: 700;
}

/* ── Color tokens (זהים לספריית היסודי) ── */
:root {
  --c-teal:   #2D92AD;
  --c-navy:   #154862;
  --c-olive:  #5E7144;
  --c-orange: #E17D24;
  --c-bg:     #f4f6f8;
  --c-white:  #ffffff;
  --c-gray:   #f0f2f5;
  --c-border: #e4e8ee;
  --c-text:   #154862;
  --c-muted:  #8a9bb0;
  --shadow-sm: 0 2px 10px rgba(21,72,98,.07);
  --shadow-md: 0 6px 24px rgba(21,72,98,.10);
  --shadow-lg: 0 12px 36px rgba(21,72,98,.13);
}

/* ── Global ── */
body {
  background: var(--c-bg);
  font-family: 'Heebo', Arial, sans-serif;
  color: var(--c-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .container.py-4 { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: 'Antidot', Arial, sans-serif; }
a { color: var(--c-teal); }
a:hover { color: var(--c-navy); }

/* ── Navbar ──
   רקע כחול כהה כמו כותרת האתר הראשי meitarim.org.il (‎--e-global-color-primary‎),
   כי הלוגו הכללי של מיתרים הוא לבן ולא נראה על רקע בהיר */
.navbar-meitarim {
  background: #003F5A;
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 200;
}
.navbar-meitarim .logo img { height: 58px; }

.btn-site {
  background: var(--c-teal);
  color: var(--c-white) !important;
  border-radius: 22px;
  padding: 8px 22px;
  font-size: .9rem;
  font-family: 'Heebo', Arial, sans-serif;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  text-decoration: none !important;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(45,146,173,.25);
  display: inline-block;
}
.btn-site:hover { background: var(--c-navy); box-shadow: var(--shadow-md); }
.btn-site.btn-site-green {
  background: #5F7044;
  box-shadow: 0 2px 8px rgba(95,112,68,.28);
}
.btn-site.btn-site-green:hover { background: #4b5936; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 28px 0 18px;
}
.hero h1 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.hero p {
  color: var(--c-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 18px;
}

/* ── Lomdot grid ── */
.lomdot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.lomda-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.lomda-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--c-text);
}
.lomda-media {
  background: linear-gradient(135deg, rgba(45,146,173,.12), rgba(225,125,36,.12));
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lomda-media img { width: 100%; height: 100%; object-fit: cover; }
.lomda-emoji { font-size: 3.2rem; }
.lomda-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lomda-title {
  font-family: 'Antidot', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.lomda-desc { font-size: .92rem; color: var(--c-muted); flex: 1; }
.lomda-grades {
  font-size: .8rem;
  color: var(--c-teal);
  background: rgba(45,146,173,.1);
  border-radius: 12px;
  padding: 2px 10px;
  align-self: flex-start;
}
.lomda-play {
  color: var(--c-orange);
  font-weight: 700;
  font-size: .95rem;
  margin-top: 4px;
}
.empty-note {
  text-align: center;
  color: var(--c-muted);
  font-size: 1.1rem;
  padding: 40px 0;
}

/* ── Footer ── */
.footer-meitarim {
  flex-shrink: 0;
  background: #003F5A;
  color: var(--c-white);
  margin-top: 48px;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-logo img { height: 64px; width: auto; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
  opacity: .9;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; color: var(--c-white); text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,.75); font-size: .92rem; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .navbar-meitarim .container { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .navbar-meitarim .logo img { height: 40px; }
  .btn-site { font-size: .8rem; padding: 5px 10px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .lomdot-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lomda-media { height: 100px; }
  .lomda-emoji { font-size: 2.6rem; }
  .lomda-title { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
}
