/* Start custom CSS for text-editor, class: .elementor-element-6fd6bfc *//* === לוח שנה אקדמי 2025 - עיצוב אולטרה-מודרני === */

/* ייבוא פונט Heebo (כל המשקלים הנדרשים) */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* מערכת משתנים גלובליים */
:root {
  /* גרדיאנטים מורכבים */
  --gradient-semester-start: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
  --gradient-semester-end: linear-gradient(135deg, #f43f5e 0%, #fb7185 50%, #fda4af 100%);
  --gradient-holiday: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
  --gradient-special: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%);
  
  /* צבעים בסיסיים */
  --color-background: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-border: rgba(226, 232, 240, 0.8);
  
  /* אפקט זכוכית */
  --glass-background: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.03);
  
  /* צללים */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* אנימציות */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  
  /* מרווחים */
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  
  /* שונות */
  --border-radius: 16px;
  --blur-amount: 12px;
}

/* רקע גלובלי עם אפקט נעים */
.elementor-widget-text-editor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(
    circle at 20% 20%, 
    rgba(224, 242, 254, 0.4) 0%, 
    rgba(224, 242, 254, 0) 50%
  ), 
  radial-gradient(
    circle at 80% 80%, 
    rgba(241, 245, 249, 0.5) 0%, 
    rgba(241, 245, 249, 0) 70%
  );
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

/* אלמנט מיכל */
.tableon-container {
  position: relative;
  border-radius: var(--border-radius);
  background-color: var(--color-background);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  margin: 3rem 0;
  overflow: hidden;
}

/* כותרת לוח השנה - עם אנימצית גרדיאנט */
.tableon-container::before {
  content: "תשפ״ה - תשפ״ו 2024-2025";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #f43f5e, #f59e0b);
  background-size: 300% 100%;
  color: white;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-top-right-radius: var(--border-radius);
  border-top-left-radius: var(--border-radius);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: gradient-shift 12s ease infinite;
}

/* אנימציית גרדיאנט */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* טבלת לוח שנה בסיסית */
.tableon {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  font-family: "Heebo", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  direction: rtl;
  position: relative;
  background: transparent;
}

/* שורות הטבלה - סגנון בסיסי משופר */
.tableon tr {
  position: relative;
  transition: 
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border-radius: var(--border-radius);
  overflow: visible;
  transform-origin: center;
}

/* הובר על שורה עם אפקט תלת־ממדי */
.tableon tr:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-xl);
  z-index: 5;
}

/* הוספת אפקט מרחף לשורה בלחיצה */
.tableon tr:active {
  transform: translateY(-1px) scale(1.005);
  transition: transform 0.1s;
}

/* עיצוב תאים כללי - אפקט זכוכית */
.tableon td {
  position: relative;
  padding: var(--spacing-lg) var(--spacing-lg);
  background: var(--glass-background);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
  text-align: right;
  vertical-align: middle;
  transition: all var(--transition-base);
}

/* תא ראשון - אירועים */
.tableon td:first-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  font-weight: 600;
  padding-right: 1.5rem; /* עדכון הפדינג לאחר הסרת האייקונים */
  width: 45%;
  background: rgba(248, 250, 252, 0.8);
  position: relative;
  overflow: hidden;
}

/* תא אחרון - תאריכים */
.tableon td:last-child {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  font-weight: 400;
  width: 55%;
  color: var(--color-text-secondary);
}

/* סמן צבעוני בצד שמאל התא */
.tableon td:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 0;
}

/* פסקאות בתאים */
.tableon td p {
  margin: 0;
  padding: 0;
}

.tableon td p + p {
  margin-top: 0.5rem;
  opacity: 0.8;
  font-size: 0.95em;
}

/* === קידוד צבעוני משופר לקטגוריות === */

/* תחילת סמסטר */
.tableon tr:nth-child(1) td:first-child::after,
.tableon tr:nth-child(4) td:first-child::after,
.tableon tr:nth-child(12) td:first-child::after {
  background: var(--gradient-semester-start);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* סיום סמסטר */
.tableon tr:nth-child(3) td:first-child::after,
.tableon tr:nth-child(10) td:first-child::after,
.tableon tr:nth-child(17) td:first-child::after {
  background: var(--gradient-semester-end);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.5);
}

/* חופשות וחגים */
.tableon tr:nth-child(2) td:first-child::after,
.tableon tr:nth-child(5) td:first-child::after,
.tableon tr:nth-child(8) td:first-child::after,
.tableon tr:nth-child(9) td:first-child::after,
.tableon tr:nth-child(13) td:first-child::after,
.tableon tr:nth-child(14) td:first-child::after,
.tableon tr:nth-child(15) td:first-child::after,
.tableon tr:nth-child(16) td:first-child::after {
  background: var(--gradient-holiday);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* אירועים מיוחדים */
.tableon tr:nth-child(6) td:first-child::after,
.tableon tr:nth-child(7) td:first-child::after,
.tableon tr:nth-child(11) td:first-child::after {
  background: var(--gradient-special);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* אפקט אנימציה לשורות בטעינה */
@keyframes row-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tableon tr {
  opacity: 0;
  animation: row-reveal 0.6s forwards;
}

/* דחיית אנימציה לפי מיקום השורה */
.tableon tr:nth-child(1) { animation-delay: 0.1s; }
.tableon tr:nth-child(2) { animation-delay: 0.15s; }
.tableon tr:nth-child(3) { animation-delay: 0.2s; }
.tableon tr:nth-child(4) { animation-delay: 0.25s; }
.tableon tr:nth-child(5) { animation-delay: 0.3s; }
.tableon tr:nth-child(6) { animation-delay: 0.35s; }
.tableon tr:nth-child(7) { animation-delay: 0.4s; }
.tableon tr:nth-child(8) { animation-delay: 0.45s; }
.tableon tr:nth-child(9) { animation-delay: 0.5s; }
.tableon tr:nth-child(10) { animation-delay: 0.55s; }
.tableon tr:nth-child(11) { animation-delay: 0.6s; }
.tableon tr:nth-child(12) { animation-delay: 0.65s; }
.tableon tr:nth-child(13) { animation-delay: 0.7s; }
.tableon tr:nth-child(14) { animation-delay: 0.75s; }
.tableon tr:nth-child(15) { animation-delay: 0.8s; }
.tableon tr:nth-child(16) { animation-delay: 0.85s; }
.tableon tr:nth-child(17) { animation-delay: 0.9s; }

/* דגשים לטקסט חשוב */
.tableon strong {
  color: var(--color-text-primary);
  font-weight: 700;
  position: relative;
  padding: 0 0.15em;
  z-index: 1;
}

/* אפקט הדגשה מעניין */
.tableon strong::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.4em;
  background: rgba(56, 189, 248, 0.2);
  z-index: -1;
  transform: skewX(-12deg);
  border-radius: 2px;
}

/* הערות שוליים */
.tableon-notes {
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-radius: var(--border-radius);
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid var(--glass-border);
  border-right: 5px solid #0ea5e9;
}

/* כותרת הערות */
.tableon-notes-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

/* רשימת הערות */
.tableon-notes ol {
  padding-right: 1.5rem;
  margin: 0;
}

.tableon-notes li {
  margin-bottom: 0.75rem;
}

.tableon-notes li:last-child {
  margin-bottom: 0;
}

/* טבלת שנה הבאה מעוצבת */
.alignright {
  width: 100%;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  border-radius: var(--border-radius);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.alignright td {
  padding: 1rem;
}

.alignright p {
  margin: 0;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* אנימציית גלים לטבלת שנה הבאה */
.alignright::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  transform: rotate(45deg);
  animation: wave 8s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes wave {
  0% { transform: translateX(-50%) rotate(45deg); }
  100% { transform: translateX(50%) rotate(45deg); }
}

/* אלמנט פרוגרס בר של התקדמות שנה"ל */
.academic-year-progress {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.academic-year-progress-bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc((100% / 365) * var(--days-elapsed, 0));
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.academic-year-progress-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .tableon {
    border-spacing: 0 12px;
  }
  
  .tableon td {
    display: block;
    width: auto !important;
    padding: var(--spacing-md);
  }

  .tableon tr {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
  }

  .tableon td:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-top: none;
    border-right: none;
    padding-right: var(--spacing-md);
  }
  
  .tableon td:first-child::after {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    height: 5px;
    width: auto;
  }
  
  .tableon td:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  
  .tableon-container::before {
    font-size: 0.9rem;
  }
}

/* התאמה למסכים גדולים */
@media (min-width: 1200px) {
  .tableon {
    font-size: 1.1rem;
  }
  
  .tableon td {
    padding: var(--spacing-lg) 2rem;
  }
}

/* התאמה להדפסה */
@media print {
  .tableon-container::before,
  .tableon tr::after,
  .tableon td::after,
  .alignright::before,
  .academic-year-progress {
    display: none !important;
  }
  
  .elementor-widget-text-editor::before {
    display: none;
  }
  
  .tableon tr {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .tableon td {
    background: white !important;
    border-color: #ddd !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  
  .tableon-container, .tableon-notes, .alignright {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    background: white !important;
  }
  
  .alignright p {
    color: black !important;
  }
}
.tableon-container::before {
  content: "תשפ״ז 2026-2027";
}/* End custom CSS */