/* ============================================================
   style.css — עיצוב ה-Hub של אלעד וייטמן
   מבנה:
     1. פונטים
     2. משתני עיצוב (Design Tokens)
     3. Reset בסיסי
     4. Layout — hero, main, footer
     5. קומפוננטות — cards, quick-links, badges
     6. אנימציות
     7. Responsive
   ============================================================ */


/* ─── 1. פונטים ─────────────────────────────────────────── */

@font-face {
  font-family: 'Discovery';
  src: url('../fonts/Discovery_Fs-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Discovery';
  src: url('../fonts/Discovery_Fs-Light.woff2') format('woff2'),
       url('../fonts/Discovery_Fs-Light.woff') format('woff'),
       url('../fonts/Discovery_Fs-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Discovery';
  src: url('../fonts/Discovery_Fs-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Discovery';
  src: url('../fonts/Discovery_Fs-Black.woff2') format('woff2'),
       url('../fonts/Discovery_Fs-Black.woff') format('woff'),
       url('../fonts/Discovery_Fs-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ─── 2. משתני עיצוב ────────────────────────────────────── */

:root {
  /* צבעי רקע */
  --bg:       #06090f;
  --surface:  #0c1220;
  --border:   #131f30;
  --border2:  #1a2d47;
  --dim:      #1e3050;

  /* טקסט */
  --text:     #dde6f0;
  --muted:    #4a627a;

  /* צבעי הדגשה */
  --accent:   #e07b3a;  /* כתום */
  --accent2:  #2a7fc7;  /* כחול */
  --gold:     #c9a84c;  /* זהב */
  --green:    #3db88a;  /* ירוק */
  --purple:   #7c5cbf;  /* סגול */

  /* מרווחים */
  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 48px;

  /* עיגולים */
  --radius-sm: 8px;
  --radius-md: 12px;
}


/* ─── 3. Reset בסיסי ────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Discovery', sans-serif;
  font-weight: 300;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* טקסטורת רקע — גרדיאנטים עדינים */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(42, 127, 199, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(224, 123, 58, 0.05) 0%, transparent 60%);
}


/* ─── 4. Layout ─────────────────────────────────────────── */

/* --- Hero / Header --- */
.hero {
  position: relative;
  z-index: 1;
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-name {
  font-family: 'Discovery', serif;
  font-weight: 900;
  font-size: clamp(41px, 5vw, 61px);
  color: #f0f6ff;
  line-height: 1;
  letter-spacing: -1px;
}
.hero-name span {
  color: var(--accent);
  font-weight: 500;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-date {
  font-size: 17px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  text-align: left;
  direction: ltr;
  font-family: monospace;
}

/* --- Main Content --- */
.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* --- כותרת לקטגוריה --- */
.section-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: var(--space-lg);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-note {
  font-size: 16px;
  color: var(--dim);
  font-family: monospace;
}


/* ─── 5. קומפוננטות ─────────────────────────────────────── */

/* --- Card Base --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  display: block;
  position: relative;
  overflow: hidden;
}

/* גלו hover — אפקט תאורה עדין */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }

/* פס צבע עליון בכרטיס */
.card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover::after { opacity: 1; }

/* --- וריאנטי צבע לכרטיסים --- */
.card-orange::after { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.card-blue::after   { background: linear-gradient(90deg, transparent, var(--accent2), transparent); }
.card-gold::after   { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card-green::after  { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.card-purple::after { background: linear-gradient(90deg, transparent, var(--purple), transparent); }

.card-orange:hover { border-color: rgba(224, 123, 58, 0.3); }
.card-blue:hover   { border-color: rgba(42, 127, 199, 0.3); }
.card-gold:hover   { border-color: rgba(201, 168, 76, 0.3); }
.card-green:hover  { border-color: rgba(61, 184, 138, 0.3); }
.card-purple:hover { border-color: rgba(124, 92, 191, 0.3); }

/* --- תוכן הכרטיס --- */
.card-icon {
  font-size: 31px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.card-title {
  font-family: 'Discovery', serif;
  font-size: 27px;
  font-weight: 900;
  color: #e8f0f8;
  margin-bottom: 6px;
  line-height: 1.2;
}
.card-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}

/* --- Badge --- */
.card-badge {
  display: inline-block;
  font-size: 15px;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  color: var(--muted);
}
.card-badge.new {
  background: rgba(61, 184, 138, 0.1);
  border-color: rgba(61, 184, 138, 0.25);
  color: var(--green);
}
.card-badge.wip {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.2);
  color: var(--gold);
}

/* --- חץ בכרטיס --- */
.card-arrow {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 19px;
  color: var(--dim);
  transition: color 0.15s, transform 0.15s;
}
.card:hover .card-arrow {
  color: var(--muted);
  transform: translate(-2px, -2px);
}

/* --- כרטיס רחב (Featured) --- */
.card-featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
}
.card-featured .card-icon  { font-size: 41px; margin-bottom: 0; flex-shrink: 0; }
.card-featured .card-body  { flex: 1; }
.card-featured .card-title { font-size: 25px; font-weight: 900; }
.card-featured .card-count {
  font-size: 33px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
  text-align: left;
}
.card-featured .card-count small {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- כרטיס Placeholder (בקרוב) --- */
.card-placeholder {
  border-style: dashed;
  border-color: var(--border);
  background: transparent;
  opacity: 0.5;
  cursor: default;
}
.card-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
  opacity: 0.6;
}
.card-placeholder::after { display: none; }

/* --- Quick Links --- */
.quick-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.quick-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 17px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.quick-link:hover {
  border-color: var(--border2);
  color: var(--text);
  background: #111c2e;
}
.quick-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ─── 6. אנימציות ───────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeUp 0.5s ease both; }
.main { animation: fadeUp 0.5s 0.1s ease both; }


/* ─── 7. Responsive ─────────────────────────────────────── */

@media (max-width: 640px) {
  .hero                       { padding: 32px 20px 28px; }
  .main                       { padding: 28px 16px 60px; }
  .footer                     { padding: 16px 20px; }
  .card-featured              { flex-direction: column; gap: 12px; }
  .card-featured .card-count  { font-size: 27px; }
}
