/* ===========================
   בסיס ורקע
   =========================== */
html, body { min-height: 100%; margin: 0; padding: 0; }
body{
  background: url('/assets/images/bg-stadium.jpg') center center/cover no-repeat fixed;
  background-color:#000;
  color:#fff;
}
/* שכבת כהות עדינה מעל הרקע */
body::before{
  content:"";
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  pointer-events:none;
  z-index:0;
}
/* שכל התוכן יהיה מעל שכבת הרקע */
body > * { position:relative; z-index:1; }

/* ===========================
   כרטיס "זכוכית"
   =========================== */
.bg-glass{
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  position: relative; /* כדי שלא יעלה מעל מודאל */
  z-index: 1;
}

/* ===========================
   לוגואים ושמות קבוצות
   =========================== */
.team-logo{
  width:36px; height:36px;
  object-fit:contain;
  border-radius:50%;
  background:#111;
}
.team-name{ font-weight:600; }

/* ===========================
   טבלאות
   =========================== */
.table-dark td, .table-dark th { color:#fff; }
.table thead th{
  position:sticky; top:0;
  background:rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

/* ===========================
   ניווט תחתון (מובייל)
   =========================== */
.bottom-nav{
  position: fixed; bottom: 0; left: 0; right: 0;
  display:flex; justify-content:space-around; gap:.5rem;
  background:rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding:.35rem .5rem;
  border-top:1px solid rgba(255,255,255,.18);
  z-index:10;
}
.bottom-nav a{
  color:#ddd; text-decoration:none;
  display:flex; flex-direction:column; align-items:center;
  font-size:.8rem;
}
.bottom-nav a .icon{ font-size:1.2rem; line-height:1; }
.bottom-nav a.active{ color:#ff6666; }

@media (min-width:768px){ .bottom-nav{ display:none; } }

/* ===========================
   Topbar (דסקטופ)
   =========================== */
.topbar{
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: .5rem 0;
}
.topbar .brand{ color:#fff; text-decoration:none; font-weight:800; }
.topbar .topmenu a{
  color:#ddd; text-decoration:none; margin-inline: .6rem;
}
.topbar .topmenu a.active{ color:#ff6666; }
.topbar .topmenu .sep{ color:#888; margin-inline: .6rem; }
.topbar .acct a{ color:#fff; text-decoration:none; }

/* לשמור מקום לניווט התחתון במובייל */
@media (max-width: 767.98px){
  main.container{ padding-bottom: 4.5rem; }
}

/* ===========================
   טפסים: טקסט לבן בכרטיסים, אבל קלטים שחורים וקריאים
   =========================== */
.card.bg-dark *:not(input):not(select):not(textarea),
.card.bg-glass *:not(input):not(select):not(textarea),
.card.match-card *:not(input):not(select):not(textarea),
.card.today-card *:not(input):not(select):not(textarea){
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
}

/* שדות קלט – טקסט כהה ברור */
.card.bg-dark input, .card.bg-dark select, .card.bg-dark textarea,
.card.bg-glass input, .card.bg-glass select, .card.bg-glass textarea,
.card.match-card input, .card.match-card select, .card.match-card textarea,
.card.today-card input, .card.today-card select, .card.today-card textarea,
input, select, textarea{
  color:#000 !important;
  -webkit-text-fill-color:#000 !important; /* חשוב ל-iOS */
  background-color:#fff;
}

/* Placeholder אפור */
input::placeholder, textarea::placeholder{
  color:#999 !important;
  opacity:1;
}

/* ===========================
   כפתורי בחירה (בית/תיקו/חוץ)
   =========================== */
.btn-group{
  display:flex;
  justify-content:center;
  gap:.5rem;
  width:100%;
}
.btn-group .btn{
  flex:1;
  max-width:100px;
  text-align:center;
}

/* פידבק שמירה */
.btn-success{
  background-color:#28a745 !important;
  border-color:#28a745 !important;
  color:#fff !important;
  transition: background-color .3s ease, color .3s ease;
}

/* ===========================
   MODAL – תיקון מלא ל-iOS/Safari
   =========================== */
.modal{ z-index:1060; }

/* שכבת הרקע של מודל Bootstrap */
.modal-backdrop{
  z-index:1050;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);
}

/* כשהמודל סגור – אם נשאר backdrop ב-DOM שלא יחסום קליקים */
body:not(.modal-open) .modal-backdrop{
  display:none !important;
  pointer-events:none !important;
  opacity:0 !important;
}

/* חשוב: לא להתערב ב-overflow כשmodal-open – לתת ל-Bootstrap לנהל גלילה,
   לכן אין כאן כללים כמו html.modal-open/body.modal-open { overflow:visible } */

/* לוודא שלכפתורים תמיד יש קליקים (גם בתוך שכבות חצי שקופות) */
button, .btn { pointer-events:auto; }



.league-name {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700; /* זהב לדגש */
    margin-bottom: 4px;
}



