/*
 * site.css — עיצוב העמודים הציבוריים של "מתרסקות".
 */

/* ---------- ניווט ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-brd);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s var(--ease);
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand img {
  height: 38px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: var(--wing-soft);
  color: var(--purple);
}

.nav-links a.active {
  background: var(--wing-soft);
  color: var(--pink);
}

.nav-cta {
  padding: 9px 18px;
  font-size: 0.95rem;
}

/* קישור המעבדה — כפתור זכוכית עם מבטא סגול */
.nav-lab {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-brd);
  box-shadow: 0 6px 18px rgba(144, 112, 240, 0.14);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-lab:hover {
  color: var(--navy);
  transform: translateY(-2px);
  border-color: var(--violet-light);
  box-shadow: 0 12px 26px rgba(144, 112, 240, 0.28);
}

.nav-lab.active {
  background: var(--wing);
  color: var(--white);
  border-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(23, 182, 224, 0.18), transparent),
    radial-gradient(1000px 500px at 10% -20%, rgba(214, 36, 159, 0.2), transparent);
  padding: 72px 0 110px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
}

.hero .accent {
  background: var(--wing);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 540px;
}

.hero-wings {
  position: absolute;
  inset-inline-start: -40px;
  bottom: -30px;
  width: 420px;
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- ווידג'ט חיפוש ---------- */
.search-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.field input:focus {
  outline: none;
  border-color: var(--pink-light);
  background: var(--white);
}

/* ---------- אזורי תוכן ---------- */
.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 2rem;
  font-weight: 800;
}

.muted {
  color: var(--ink-soft);
}

/* ---------- כרטיסי יעד ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.dest-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dest-top {
  height: 120px;
  background: var(--wing);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.dest-body {
  padding: 16px 18px 20px;
}

.dest-body h3 {
  margin-bottom: 2px;
}

.dest-price {
  font-weight: 800;
  color: var(--pink);
}

/* ---------- טבלת/כרטיסי תוצאות טיסה ---------- */
.flight-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.flight-route {
  font-weight: 800;
  font-size: 1.1rem;
}

.flight-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.flight-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--pink);
  white-space: nowrap;
}

.flight-secret {
  border: 2px solid var(--cyan);
  background: linear-gradient(135deg, rgba(23, 182, 224, 0.08), rgba(214, 36, 159, 0.08));
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-weight: 600;
}

.notice-empty {
  background: #fff6ea;
  color: #8a5a10;
}

.notice-error {
  background: #fdeaf0;
  color: #99214a;
}

.notice-win {
  background: linear-gradient(135deg, rgba(23, 182, 224, 0.15), rgba(214, 36, 159, 0.15));
  border: 2px solid var(--pink-light);
  color: var(--purple);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cfc3e4;
  margin-top: 60px;
  padding-top: 40px;
}

.footer a {
  color: #cfc3e4;
  display: block;
  padding: 3px 0;
}

.footer a:hover {
  color: var(--cyan-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}

.footer-logo {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-cols {
  display: flex;
  gap: 56px;
}

.footer h4 {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.85rem;
}

/* ---------- רספונסיבי ---------- */
@media (max-width: 760px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .flight-card {
    grid-template-columns: 1fr;
    text-align: start;
  }
}

/* שדות המוצא/היעד מוצגים משמאל לימין, כדי שקלט עם קוד (למשל הזרקת SQL)
   ייכתב ויוצג בסדר הנכון. התוויות והטופס עצמו נשארים בעברית. */
input.code-input {
  direction: ltr;
  text-align: left;
}
