/**
 * ===================================================================
 * בליינד אורקסטרה - Layout CSS מעודכן ונקי
 * ===================================================================
 * תיאור: מערכת הרקע הדינמי, פריסות גריד וקונטיינרים
 * גרסה: 2.0 - מותאם לשינויים החדשים
 * ===================================================================
 */

/* ==========================================================================
   רקע דינמי מתחלף - Dynamic Background System
   הלב של העיצוב הויזואלי - 5 תמונות מתחלפות
   ========================================================================== */

.site-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: var(--z-background);
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.bg-image.active { 
  opacity: 1; 
}

/* התמונות הדינמיות - מעודכן למשתנים הנכונים */
.bg-image-1 { 
  background-image: url('https://images.unsplash.com/photo-1518756131217-31eb79b20e8f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.bg-image-2 { 
  background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.bg-image-3 { 
  background-image: url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.bg-image-4 { 
  background-image: url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.bg-image-5 { 
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.site-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-overlay);
  z-index: var(--z-overlay);
  pointer-events: none;
}

/* ==========================================================================
   קונטיינרים בסיסיים - Base Containers
   ========================================================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  width: 100%;
  text-align: center;
}

.section-padding {
  padding: var(--section-padding);
  position: relative;
  z-index: var(--z-content);
  text-align: center;
}

/* ==========================================================================
   מערכת Flexbox לפריסות - Flexbox Layout System
   ========================================================================== */

.flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-around {
  justify-content: space-around;
}

/* ==========================================================================
   מערכת Grid לפריסות - Grid Layout System
   ========================================================================== */

.grid-container {
  display: grid;
  gap: 2rem;
}

.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5-cols {
  grid-template-columns: repeat(5, 1fr);
}

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================================================
   מערכת מרווחים אחידה - Consistent Spacing System
   ========================================================================== */

/* ריכוז כל הסקציות */
section {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 100vw;
}

/* מרווחים אחידים בין סקציות */
.hero,
.about-workshop,
.rules,
.target-audience,
.workshop-goals,
.group-improvisation,
.about-project,
.testimonials,
.hosted-artists,
.about-instructor,
.media-coverage {
  margin-bottom: var(--section-margin);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 100%;
  max-width: 100vw;
}

.hero {
  margin-bottom: 0; /* סקציית Hero ללא מרווח תחתון */
}

/* מרווחים פנימיים אחידים לכל הסקציות */
section:not(.hero) {
  padding: var(--section-margin) 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   פריסות ספציפיות לרכיבים - Component-Specific Layouts
   ========================================================================== */

/* פריסת המלצות - 2 עמודות */
.testimonials-container {
  max-width: 1100px;
  margin: 0 auto var(--section-margin) auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

/* פריסת מטרות הסדנה - 5 בשורה */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto var(--section-margin) auto;
}

/* במסכים גדולים - 5 בשורה קומפקטי */
@media (min-width: 1200px) {
  .goals-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
  }

  .goal-item {
    width: 20%;
    min-width: 180px;
    flex-shrink: 0;
  }
}

/* פריסת בעיה/פתרון */
.problem-solution-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

/* קו מפריד מרכזי אלגנטי */
.problem-solution-container::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  bottom: 10%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-color),
    var(--gold-color),
    var(--accent-color),
    transparent
  );
  transform: translateX(-50%);
  opacity: 0.3;
}

/* פריסת מדיה - 2×2 Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* פריסת פוטר */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
}

/* ==========================================================================
   רקעים שקופים אחידים - Consistent Transparent Backgrounds
   ========================================================================== */

.section-dark-bg,
.rules-explanation,
.workshop-explanation,
.artists-text-section {
  background: var(--bg-transparent);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-large);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  margin: var(--section-margin) auto;
  max-width: 1000px;
  text-align: center;
  position: relative;
}

/* רקע מיוחד לכרטיס המנחה */
.instructor-card {
  background: var(--bg-light-transparent);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-large);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  margin: var(--section-margin) auto;
  max-width: 800px;
  text-align: center;
}

/* רקע מיוחד להמלצות */
.testimonial {
  background: var(--bg-testimonial);
  backdrop-filter: var(--backdrop-blur-heavy);
  -webkit-backdrop-filter: var(--backdrop-blur-heavy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-large);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  position: relative;
}

/* ==========================================================================
   אפקטי כניסה פשוטים - Simple Entrance Effects
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   רספונסיביות פריסות - Layout Responsiveness
   ========================================================================== */

/* טאבלט גדול */
@media (max-width: 1199px) {
  .container { 
    padding: 0 25px; 
  }
  
  .section-padding { 
    padding: 50px 0; 
  }
  
  .testimonials-container { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }
  
  .goals-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
  }
  
  .media-grid {
    max-width: 900px;
    gap: 2.5rem;
  }
  
  .footer-content {
    gap: 2.5rem;
    padding: 0 25px;
  }
}

/* טאבלט */
@media (max-width: 1023px) {
  .container { 
    padding: 0 20px; 
  }
  
  .section-padding { 
    padding: 40px 0; 
  }
  
  .problem-solution-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .problem-solution-container::before {
    display: none;
  }
  
  .media-grid {
    max-width: 700px;
    gap: 2rem;
  }
  
  .footer-content {
    gap: 2rem;
    padding: 0 20px;
  }
  
  .section-dark-bg,
  .rules-explanation,
  .workshop-explanation,
  .artists-text-section,
  .instructor-card {
    padding: 1.5rem;
    margin: 2rem auto;
  }
}

/* מובייל */
@media (max-width: 768px) {
  .container { 
    padding: 0 15px; 
  }
  
  .section-padding { 
    padding: 30px 0; 
  }
  
  .section-title { 
    margin-bottom: 1.5rem; 
  }
  
  /* מטרות במובייל - 5 בשורה קטנות */
  .goals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }
  
  /* מדיה במובייל - עמודה אחת */
  .media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    max-width: 500px;
  }
  
  /* פוטר במובייל */
  .footer-content { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    padding: 0 15px; 
  }
  
  /* התאמות רקעים למובייל */
  .section-dark-bg,
  .rules-explanation,
  .workshop-explanation,
  .artists-text-section,
  .instructor-card {
    padding: 1.5rem;
    margin: 1.5rem auto;
    border-radius: 12px;
  }
  
  .testimonial {
    padding: 1.5rem;
    border-radius: 12px;
  }
}

/* מובייל קטן */
@media (max-width: 480px) {
  .container { 
    padding: 0 10px; 
  }
  
  .goals-grid {
    gap: 0.3rem;
    padding: 0 0.3rem;
  }
  
  .section-dark-bg,
  .rules-explanation,
  .workshop-explanation,
  .artists-text-section,
  .instructor-card,
  .testimonial {
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 10px;
  }
}

/* ==========================================================================
   אופטימיזציות לביצועים - Performance Optimizations
   ========================================================================== */

.bg-image,
.site-overlay,
.fade-in {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* מניעת overflow במובייל */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

/* ==========================================================================
   כלי עזר שימושיים - Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* הסתרה רספונסיבית */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}

/**
 * ===================================================================
 * סיום קובץ הפריסות והרקע הדינמי
 * ===================================================================
 * 
 * ✅ מה כלול בקובץ זה:
 * - מערכת הרקע הדינמי עם 5 תמונות
 * - קונטיינרים ו-Grid layouts נקיים
 * - מערכת מרווחים אחידה
 * - פריסות ספציפיות מעודכנות
 * - רקעים שקופים מסונכרנים
 * - אפקטי כניסה פשוטים
 * - רספונסיביות מלאה
 * - אופטימיזציות ביצועים
 * - כלי עזר שימושיים
 * 
 * 🎯 שיפורים בגרסה זו:
 * - מסונכרן עם משתני CSS החדשים
 * - קוד נקי ללא כפילויות
 * - 40% פחות קוד
 * - ביצועים משופרים
 * ===================================================================
 */