/* style.css – גרסה מעודכנת ונקייה */

/* משתנים גלובליים */
:root {
  --main-bg: #f6f6f6;
  --dark-bg: #121212;
  --primary: #1e88e5;
  --secondary: #43a047;
  --accent: #ffd700;
  --text: #212121;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
  font-size: 1em;
}

/* גוף האתר */
body {
  background: linear-gradient(to bottom,
      #fffde7,
      /* צהוב בהיר – כמו דף חדש */
      #ffe082,
      /* צהוב בננה רך */
      #ffecb3,
      /* זהוב חמים */
      #fff3e0
      /* כתמתם-שמנת */
      /* אפור בהיר */
    );
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}


/* ניווט עליון */
nav.navbar {
  display: flex;
  position: fixed;
  /* מצמיד את הניווט לחלק העליון של המסך */
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1em;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--text-light);
  box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.2);
}

nav.navbar .logo {
  font-weight: bold;
  font-size: 1.6em;
}

nav.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}

nav.navbar .nav-links li a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

nav.navbar .nav-links li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/*נב בר קבוע*/
nav.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary); /* צבע רקע קבוע */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  box-shadow: 0 0.1em 0.4em rgba(0, 0, 0, 0.1); /* הצללה עדינה */
  box-sizing: border-box;
}
.coin-logo {
  max-width: 100%;
  height: auto;
  margin: 0;
}
main {
  margin-top: 6em;
  /* מתאים לגובה ה-navbar */
}





.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

/* כותרת ראשית */
.hero {
  padding: 2em;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
    url('עגלת סופר עם פרות.png') center center / cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.hero-overlay {
  padding: 1em;
  max-width: 90%;
}

.hero h1 {
  font-size: clamp(1.4em, 6vw, 4em);
  font-weight: 900;
  background: linear-gradient(to right, #ffd700, #fff8dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5em;
  animation: fadeInDown 1s ease-in-out;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
}

/* כפתורי סופרים */
.supermarket-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.supermarket-buttons a {
  background: var(--primary);
  color: var(--text-light);
  padding: 1em 2em;
  border-radius: 2em;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.supermarket-buttons a:hover {
  background: var(--accent);
  color: var(--text);
  transform: scale(1.05);
}

/*כפתורים*/
.btn-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1em;
  max-width: 31.25em;
  /* שווה ערך ל-500px כשגודל בסיס הוא 16px */
  margin: 0 auto;
  width: 100%;
}

.btn-super-link {
  display: block;
  text-align: center;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 1em;
  font-size: 1em;
  border-radius: 0.5em;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-super-link:hover,
.btn-super-link:focus {
  background-color: #0056b3;
  outline: none;
}


/* טיפים לחיסכון */
.tip2 {
  text-align: center;
  font-size: 2em;
  color: var(--primary);
  font-weight: 700;
  margin: 2em 0 1em;
  position: relative;
  line-height: 1.6;
}

.tip2::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent), var(--primary));
  margin: 0.4em auto 0;
  border-radius: 2px;
}

/* אזור פרסומות */
.ad-section {
  display: flex;
  justify-content: space-between;
  padding: 2em;
  background: #fff8e1;
}

.banner-top,
.side-ad {
  background-color: var(--accent);
  color: var(--text);
  padding: 1em;
  font-weight: bold;
  border-radius: 1em;
  text-align: center;
}

.side-ad {
  width: 15em;
}

/* אזור iframe */
.iframe-section {
  padding: 2em;
  text-align: center;
}

.skeleton {
  font-size: 1.2em;
  color: #888;
  animation: fadeIn 1.5s ease-in-out infinite alternate;
}

@keyframes fadeIn {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* פוטר */
footer {
  background-color: var(--primary);
  /* רקע ראשי */
  color: #fff;
  /* טקסט לבן */
  text-align: center;
  padding: 1em;
  margin-top: 2em;
  font-size: 0.95em;
}

footer a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffd700;
  /* גוון זהוב קל בלחיצה */
}


.mail {
  color: rgb(96, 66, 246);
  /* סגול כהה */
}

footer .mail {
  color: #ffffff !important;
}

a {
  color: rgb(96, 66, 246);
  /* סגול כהה */
}


/* אודות */
.about-page {
  padding: 2em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-page h1,
.about-page h2 {
  color: var(--primary);
  margin-bottom: 0.5em;
}

.about-page ul {
  list-style: square;
  padding-right: 1.5em;
}

/* מדיה למסכים קטנים */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav.navbar .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: var(--primary);
    margin-top: 1em;
  }

  nav.navbar .nav-links.active {
    display: flex;
  }

  nav.navbar .nav-links li {
    text-align: center;
    padding: 0.5em 0;
  }

  .supermarket-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    padding: 1em;
  }

  .supermarket-buttons a {
    font-size: 1em;
    padding: 0.8em;
    border-radius: 2em;
    text-align: center;
  }
}

/* כפתור חזרה לעמוד הבית */
.home-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  margin: 1em auto;
  font-size: 1.1em;
  background-color: #d4af37;
  /* זהב */
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 0.75em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease, background-color 0.3s ease;
  cursor: pointer;
}

/* מצב ריחוף ומיקוד */
.home-button:hover,
.home-button:focus {
  background-color: #c29e2c;
  outline: none;
}

/* לחיצה */
.home-button:active {
  transform: scale(0.97);
  box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.3) inset;
}

/* רספונסיביות למסכים קטנים */
@media (max-width: 600px) {
  .home-button {
    display: block;
    margin: 1em auto;
    width: fit-content;
    font-size: 0.9em;
    padding: 0.5em 1em;
  }
}

/* נגישות */
.home-button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}


/*מבצעי הסופר השבועים- כפתור*/
.btn-super-link {
  display: inline-block;
  padding: 1em 2em;
  font-size: 1.2em;
  color: #fff;
  background-color: #007BFF;
  /* כחול */
  border: none;
  border-radius: 0.5em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.2);
  font-weight: bold;
  cursor: pointer;
}

.btn-super-link:hover,
.btn-super-link:focus {
  background-color: #FFD700;
  /* זהב */
  color: #000;
  /* שחור */
}

.btn-super-link:active {
  transform: scale(0.96);
}

/*עיצוב מקום הפירסומת*/
.ad-space {
  background-color: #f9f9f9;
  border: 0.05em dashed #ccc;
  border-radius: 0.5em;
  text-align: center;
  padding: 1em;
  margin: 2em auto;
  font-size: 0.9em;
  color: #888;
  box-sizing: border-box;
}

/* מלבן גדול (336x280) */
.ad-rectangle {
  min-height: 17.5em;
  /* ≈ 280px */
  max-width: 42em;
  /* ≈ 672px */
}

/* באנר אופקי (728x90) */
.ad-banner {
  min-height: 5.6em;
  /* ≈ 90px */
  max-width: 45.5em;
  /* ≈ 728px */
}

/* סיידבר אנכי (160x600) */
.ad-skyscraper {
  min-height: 37.5em;
  /* ≈ 600px */
  max-width: 10em;
  /* ≈ 160px */
}

/* התאמה לסמארטפונים – מגדיל גובה כשצריך */
@media screen and (max-width: 30em) {
  .ad-space {
    min-height: 10em;
    padding: 0.8em;
    font-size: 0.85em;
  }
}

/*פרסומת*/
.ad-fixed {
  width: 100%;
  max-width: 42em;
  /* בערך 672px */
  height: 17.5em;
  /* בדיוק 280px */
  background-color: #f9f9f9;
  border: 0.05em dashed #ccc;
  border-radius: 0.5em;
  text-align: center;
  padding: 1em;
  box-sizing: border-box;
  overflow: hidden;
  /* כדי להסתיר מודעה קטנה שלא ממלאת את הגובה */
  margin: 2em auto;
}

/* יש עוד דברים שאולי יענינו אתכם*/
.scroll-hint {
  text-align: center;
  font-size: 1em;
  color: #222;
  /* ניגוד טוב ונגיש */
  margin: 1.5em auto;
  font-style: italic;
  max-width: 90%;
  line-height: 1.6;
}

@media (max-width: 30em) {
  .scroll-hint {
    font-size: 0.95em;
    padding: 0 1em;
  }
}

/*לוגו מטבע*/
.logo-area {
  display: flex;
  align-items: center;
  gap: 1em;
}

.coin-logo {
  width: 4em;
  /* הגדלת המטבע */
  height: auto;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  /* טקסט לבן */
}

a.logo-text {
  text-decoration: none;
  color: inherit;
}


.site-tagline {
  font-size: 1em;
  font-style: italic;
  color: #fff;
  /* טקסט לבן */
  text-shadow: 0 0 0.2em #000;
  /* טיפה הדגשה על רקע כהה */
}

/*ממומן*/
.disclaimer {
  font-size: 1em;
  color: #555;
  background-color: #f9f9f9;
  padding: 1em;
  margin: 2em auto;
  border: 1px solid #ddd;
  border-radius: 0.5em;
  max-width: 90%;
  text-align: center;
}

/* כפתור קישור לעמוד המבצעים באתר*/
.small-accordion {
  font-size: 0.9em;
  padding: 0.4em 0.8em;
}

/*כבר עניתים על השאלון*/
.btn-subtle {
  font-size: 0.85em;
  padding: 0.4em 0.7em;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 0.3em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-subtle:hover,
.btn-subtle:focus {
  background-color: #d0d0d0;
  color: #000;
}


/* מטבע בסוף העמוד*/
/* עוטף את המטבע וממרכז אותו */
.big-coin-wrapper {
  display: flex;
  /* מיישר את התוכן עם Flexbox */
  justify-content: center;
  /* ממרכז את המטבע לרוחב */
  align-items: center;
  /* ממרכז את המטבע לגובה (אם יש צורך) */
  margin-top: 3em;
  /* רווח עליון לפני המטבע */
  margin-bottom: 2em;
  /* רווח תחתון אחרי המטבע */
}

/* תמונת המטבע עצמה */
.big-coin {
  width: 15em;
  /* גודל המטבע – יגדל/יקטין לפי גודל הפונט */
  height: auto;
  /* גובה יחסי לרוחב – כדי לשמור על פרופורציות */
  max-width: 80vw;
  /* לא יחרוג מ־80% מרוחב המסך במובייל */
}


h1.page-title {
  margin-top: 4em; /* או יותר/פחות לפי הצורך */
  text-align: center;
  color: #0077cc;
  font-size: 2em;
}
