:root { /* מגדירים משתנים */
  --cream: #fdf6ee;
  --warm: #f5e6d3;
  --blush: #e8b4a0;
  --rose: #c97b63;
  --brown: #7a4a3a;
  --dark: #2d1a14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Heebo', sans-serif;
  background: linear-gradient(180deg, #fdf6ee 0%, #f5ddd0 100%);
  color: var(--dark);
  overflow-x: hidden; /* מסתיר כל תוכן שיוצא מחוץ לרוחב המסך */
}

/* ===== NAV ===== */
nav {
  position: fixed; /* התפריט קבוע במקום ולא גולל עם הדף */
  top: 0;
  right: 0;
  left: 0;
  z-index: 100; /* התפריט יהיה מעל כל שאר האלמנטים בדף */
  display: flex; 
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem; /* רווח פנימי */
  background: rgba(253, 246, 238, 0.95);
  border-bottom: 1px solid rgba(232, 180, 160, 0.3);
  transition: background 0.6s ease;
}

.nav-logo { /* לוגו דוגי דייט */
  font-family: 'Secular One', sans-serif;
  font-size: 1.5rem;
  color: var(--rose);
  text-decoration: none; /* מסיר את הקו התחתון */
}

.nav-links { /* תפריט הלינקים */
  display: flex;
  gap: 2rem;
  list-style: none; /* מסיר את הנקודות */
}

.nav-links a {  /* הקישורים בתפריט הלינקים */
  text-decoration: none; /* מסיר את הקו התחתון */
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { 
  color: var(--rose);
}

.nav-btn { /* כפתור התחל עכשיו */
  background: var(--rose);
  color: white;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.nav-btn:hover {
  background: var(--brown);
}

/* ===== HAMBURGER - מוסתר בדסקטופ ===== */
.hamburger { /* תפריט פסים */
  display: none; /* מסתיר את כפתור ההמבורגר כברירת מחדל */
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--brown);
}

/* ===== WELCOME ===== */
#welcome { /* הסקשן הראשון בדף הבית */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.welcome-tag { /* הכירו את חבר הכי טוב שלכם */
  display: inline-block; /* האלמנט לא מתפשט לכל רוחב הדף */
  background: var(--warm);
  border: 1px solid var(--blush);
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.welcome-title { /* דוגי דייט */
  font-family: 'Secular One', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 1; /* כמה מרווח יש בין שורה לשורה , 1 - הגובה שווה בדיוק לגודל הגופן */
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.welcome-title span {
  color: var(--rose);
  display: block; /* גורם לספאן להתנהג כמו שורה חדשה */
}

.welcome-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--brown);
  margin: 1.5rem auto 2.5rem;
  max-width: 500px;
  line-height: 1.7;
  font-weight: 300;
}

.welcome-cta { /* התחל לסוויפ , איך זה עובד*/
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary { /* התחל לסוויפ */
  background: var(--rose);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 123, 99, 0.35);
}

.btn-primary:hover {
  background: var(--brown);
}

.btn-secondary { /* איך זה עובד */
  background: transparent;
  color: var(--brown);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--blush);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.welcome-stats { /* נתונים על האתר */
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-num { /* מספרי נתונים */
  font-family: 'Secular One', sans-serif;
  font-size: 2rem;
  color: var(--rose);
}

.stat-label { /* הסבר נתונים */
  font-size: 0.85rem;
  color: var(--brown);
  margin-top: 0.2rem;
}

.section-tag { /* איך זה עובד */
  display: inline-block; /* האלמנט לא מתפשט לכל רוחב הדף */
  background: white;
  border: 1px solid var(--blush);
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.07em;
}

.section-title { /* שלושה צעדים פשוטים */
  font-family: 'Secular One', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.section-sub { /* ההתאמה המושלמת לכלב שלך */
  color: var(--brown);
  font-size: 1rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 3.5rem;
}

#how-it-works { 
  padding: 6rem 2rem;
  background: var(--warm);
  text-align: center;
  border-top: 1px solid rgba(232, 180, 160, 0.4);
  border-bottom: 1px solid rgba(232, 180, 160, 0.4);
}

.steps { 
  display: flex;
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  background: white;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  position: relative;
  box-shadow: 0 8px 32px rgba(122, 74, 58, 0.18);
}

.step-num { /* מספר צעד */
  position: absolute; /* מוצמד לאלמנט האב שמכיל אותו ויגלול איתו כשגוללים */
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--rose);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { /* אימוגי */
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.step h3 { /* כותרת */
  font-family: 'Secular One', sans-serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.step p { /* הסבר */
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.6;
  font-weight: 300;
}

#why-doggy-date { /* סקשן למה דוגי דייט */
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.why-grid { /* קוביות למה דוגי דייט */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.why-card { /* קובייה אחת למה דוגי דייט */
  background: var(--warm);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(232, 180, 160, 0.4);
  text-align: right;
}

.why-icon { /* אימוגי */
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.why-card h3 { /* כותרת */
  font-family: 'Secular One', sans-serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.why-card p { /* הסבר */
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.6;
  font-weight: 300;
}

#reviews { /* סקשן ביקורות */
  padding: 6rem 2rem;
  background: var(--warm);
  text-align: center;
  border-top: 1px solid rgba(232, 180, 160, 0.4);
  border-bottom: 1px solid rgba(232, 180, 160, 0.4);
}

.reviews-grid { /* ביקורות */
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1000px;
  margin: 3.5rem auto 0;
  flex-wrap: wrap;
}

.review-card { /* ביקורת אחת */
  background: white;
  border-radius: 20px;
  padding: 2rem;
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  text-align: right;
  box-shadow: 0 8px 28px rgba(122, 74, 58, 0.16);
}

.review-quote { /* מרכאות */
  font-size: 3rem;
  color: var(--blush);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.review-text { /* הביקורת עצמה */
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.review-stars { /* כוכבים */
  color: #f4b942;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.review-author { /* שם תמונה וסוג כלב */
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.review-avatar { /* תמונה */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.review-name { /* שם */
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.review-dog { /* סוג כלב */
  font-size: 0.8rem;
  color: var(--rose);
}

footer { 
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-logo { /* דוגי דייט */
  font-family: 'Secular One', sans-serif;
  font-size: 1.8rem;
  color: var(--blush);
  margin-bottom: 1.5rem;
}

.footer-links { /* תפריט לינקים */
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a { /* קישורים */
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-copy { /* כי לכל כלב מגיע חבר */
  font-size: 0.8rem;
  opacity: 0.4; /* שקיפות */
  margin-top: 1rem;
}


@media (max-width: 600px) { /* כשרוחב המסך הוא 600 פיקסל או פחות שנה את הריווח הפנימי לקטן יותר */
  nav {
    padding: 1rem 1.2rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    /* הקישורים מסודרים בעמודה מלמעלה למטה במקום שורה אחת */
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    /* התפריט נפתח ממש מתחת לסרגל הניווט ומתפרש לכל רוחב המסך */
    background: rgba(253, 246, 238, 0.85);
    padding: 1rem 1.5rem;
    gap: 1rem;
    /* ריווח בין הקישורים */
    border-bottom: 1px solid rgba(232, 180, 160, 0.3); /* קו בתחתית התפריט */
    backdrop-filter: blur(8px); /* טשטוש ברקע כשנפתח */
    opacity: 0; 
    transform: translateY(-12px);
    pointer-events: none;
    /* התפריט מוסתר ומוזז קצת למעלה — מוכן לאנימציה של הפתיחה */
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open { 
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-btn {  /* מסתיר את כפתור התחל עכשיו */
    display: none;
  }

  .hamburger {  /* מציגים את תפריט הפסים */
    display: block;
  }
}

.nav-links a.active { /* הקישור שמייצג את הדף שנמצאים בו כרגע */
  color: var(--rose);
  font-weight: 700;
  pointer-events: none;

}

/* ===== SPLASH SCREEN ===== */
.splash { 
  position: fixed; /* מוצמד למסך ולא גולל עם הדף */
  inset: 0; /* מכסה את כל המסך */ 
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  /* ממרכז את התוכן אנכית ואופקית */
  z-index: 9999; /* מופיע מעל הכל כדי שיכסה את כל הדף */
  transition: opacity 0.6s ease, transform 0.6s ease; /* אנימציה חלקה של 0.6 שניות */
}

.splash.hide { /* לאחר 2 שניות */
  opacity: 0;
  pointer-events: none;
}

.splash-content { /* כל התוכן */
  text-align: center;
  animation: splashIn 0.8s ease forwards;
}

.splash-logo { /* כפות רגליים אימוגי */
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bouncePaw 1s ease infinite;
}

.splash-title { /* דוגי דייט */
  font-family: 'Secular One', sans-serif;
  font-size: 3.5rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.splash-sub { /* מצא חבר לכלב שלך */
  font-size: 1rem;
  color: var(--brown);
  font-weight: 300;
}

@keyframes splashIn { /* מגדיר אנימציה בשם ספלאש אין */
  from { opacity: 0; transform: scale(0.8); } /* נקודת ההתחלה של האנימציה , מתחיל בלתי נראה וקטן קצת */
  to { opacity: 1; transform: scale(1); } /* נקודת הסיום של האנימציה , מסתיים נראה לגמרי ובגודל רגיל */
}

@keyframes bouncePaw { /* מגדיר אנימציה בשם באונס פאו */
  0%, 100% { transform: translateY(0); } /* בהתחלה ובסוף האנימציה , האלמנט במקום הרגיל שלו */
  50% { transform: translateY(-12px); } /* באמצע האנימציה האלמנט עולה 12 פיקסלים למעלה */
}

/* ===== קו תחתון נע בתפריט ===== */
.nav-links a { 
  position: relative; /* כדי שהקו התחתון שנוסיף יהיה ממוקם ביחס לקישור עצמו */
  padding-bottom: 4px;
}

.nav-links a::after {  /* אלמנט וירטואלי שנוצר אחרי הקישור , משתמשים בו כדי ליצור את הקו התחתון בלי להוסיף תגית חדשה */
  content: ''; /* חייבים לכתוב את זה כדי שהאפטר יופיע בכלל */
  position: absolute; /* ממוקם ביחס לקישור שמכיל אותו */
  bottom: 0; /* מוצמד לתחתית הקישור */
  right: 0; /* מתחיל מהצד הימני */
  width: 0; /* ברוחב 0 */
  height: 2px; /* גובה של 2 פיקסלים - עובי הקו */
  background: var(--rose);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, /* הקו שמופיע כשמרחפי מעל קישור */
.nav-links a.active::after { /* הקו שמופיע מתחת לקישור של הדף הנוכחי */
  width: 100%;
  left: 0;
  right: auto;
}

/* ===== כפתור פועם ===== */
@keyframes pulse-btn {
  0%, 100% { transform: scale(1); } /* בהתחלה ובסוף הכפתור בגודל רגיל */
  50% { transform: scale(1.06); } /* באמצע האנימציה הכפתור גדל 6 אחוז יותר גדול מהרגיל */
}

.nav-btn {
  animation: pulse-btn 2s ease-in-out infinite; /* האנימציה תיקח 2 שניות , מתחילה לאט , מואצת באמצע , ומאטה בסוף , חוזרת על עצמה לצח */
}


/* ===== מצב לילה ===== */
.dark-mode-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  background: white;
  border: 1px solid var(--blush);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(122, 74, 58, 0.2);
  transition: all 0.2s;
}

.dark-mode-btn:hover {
  background: var(--warm);
  transform: scale(1.1);
}
 
.dark-mode-btn:hover {
  background: var(--warm);
}
 
body.dark { /* כשלוחצים על כפתור הלילה גאווה סקריפט מוסיף את הקלאס דארק לבאדי ומחליף את הצבעים לכהים */
  --cream: #2d1f18;
  --warm: #3a2820;
  --blush: #7a4a3a;
  --rose: #c97b63;
  --brown: #e8b4a0;
  --dark: #fdf6ee;
  background: linear-gradient(180deg, #2d1f18 0%, #3a2820 100%);
}
 
body.dark nav { /* צבע הרקע של התפריט */
  background: rgba(45, 31, 24, 0.95);
  border-bottom-color: rgba(122, 74, 58, 0.4);
}
 

body.dark .step, 
body.dark .review-card,
body.dark .why-card,
body.dark .why-card,
body.dark .dog-card,
body.dark .question-card,
body.dark .result-card,
body.dark .matches-list,
body.dark .match-item,
body.dark .chat-header,
body.dark .chat-input,
body.dark .profile-card {
  background: #3a2820;
  color: var(--dark); 
/* כשהדף במצב לילה שנה את צבע הרקע וצבע הטקסט של כל הכרטיסים והאלמנטים הלבנים באתר לצבעים כהים */
}
 





