/* === עיצוב מקצועי - סמינר מדעי המוח === */

/* צבעים פסטל - נוירונים */
:root {
  --pastel-purple: #d1c4e9;
  --pastel-blue: #b3e5fc;
  --pastel-mint: #b2dfdb;
  --pastel-pink: #f4c2c2;
  --pastel-peach: #ffccbc;
  --pastel-yellow: #fff9c4;
  --text-muted: #a6adc8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
}

/* === כותרת עליונה (Header) === */

.md-header__button.md-logo {
  padding: 0.1rem !important;
}
.md-header__title::after {
  content: " · by Orin Levi";
  font-size: 0.7em;
  font-weight: 400;
  color: var(--text-muted);
  margin-inline-start: 8px;
}

/* === דף הבית - Hero Section === */

.main-title {
  color: var(--pastel-purple) !important;
  font-size: 1.4em !important;
}

/* אייקון מוח */
.brain-badge {
  font-size: 1.5em;
  margin-inline-end: 10px;
}

/* === כרטיסיות צבעוניות === */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  padding: 20px;
  border-radius: 12px;
  border: 2px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-purple {
  background: linear-gradient(135deg, rgba(209, 196, 233, 0.15), rgba(209, 196, 233, 0.05));
  border-color: var(--pastel-purple);
}

.card-blue {
  background: linear-gradient(135deg, rgba(179, 229, 252, 0.15), rgba(179, 229, 252, 0.05));
  border-color: var(--pastel-blue);
}

.card-mint {
  background: linear-gradient(135deg, rgba(178, 223, 219, 0.15), rgba(178, 223, 219, 0.05));
  border-color: var(--pastel-mint);
}

.card-pink {
  background: linear-gradient(135deg, rgba(244, 194, 194, 0.15), rgba(244, 194, 194, 0.05));
  border-color: var(--pastel-pink);
}

.card-peach {
  background: linear-gradient(135deg, rgba(255, 204, 188, 0.15), rgba(255, 204, 188, 0.05));
  border-color: var(--pastel-peach);
}

/* === Hero Banner === */

.hero-banner {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(209, 196, 233, 0.1),
    rgba(179, 229, 252, 0.1),
    rgba(178, 223, 219, 0.1));
  border: 1px solid var(--card-border);
}

.hero-banner h1 {
  border-bottom: none !important;
  margin-bottom: 16px !important;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1em;
}

.hero-author {
  margin-top: 12px;
  font-size: 0.9em;
  color: var(--pastel-purple);
}

/* === Stats === */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: var(--pastel-blue);
}

.stat-label {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* === שיפורים כלליים === */

/* קוד */
.highlight code,
code {
  border-radius: 6px;
}

/* טבלאות */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: rgba(209, 196, 233, 0.1);
}

/* קישורים */
.md-typeset a:hover {
  color: var(--pastel-purple) !important;
}

/* כפתורי ניווט */
.md-nav__link:hover {
  color: var(--pastel-blue) !important;
}

/* תגיות קוד inline */
.md-typeset code {
  padding: 0.15em 0.4em;
}

/* === Quick Links === */

.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.quick-link {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.2s;
}

.quick-link:hover {
  background: rgba(209, 196, 233, 0.2);
  border-color: var(--pastel-purple);
}

/* === תמונות === */

.md-typeset img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Admonitions מותאמים === */

.md-typeset .admonition.exam-tip,
.md-typeset details.exam-tip {
  border-color: var(--pastel-purple);
}

.md-typeset .admonition.exam-tip > .admonition-title,
.md-typeset details.exam-tip > summary {
  background-color: rgba(209, 196, 233, 0.1);
}

/* === RTL תיקונים === */

.md-typeset ul,
.md-typeset ol {
  margin-right: 0.625em;
  margin-left: 0;
}

/* === גלריית תמונות === */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.image-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.image-card:hover {
  transform: translateY(-4px);
}

.image-card img {
  width: 100%;
  border-radius: 0;
}

.image-card .caption {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
}
