/* ==========================================
   הגדרות בסיס וצבעים לכל האתר
========================================== */
body {
    background-color: #0b1e23; /* רקע כהה אחיד לכל הדף */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

/* קונטיינר מרכזי שעוטף את כל חלקי האתר וממרכז אותם */
.site-wrapper {
    max-width: 1080px; /* שומר על רוחב קבוע ומותאם לנייד */
    margin: 0 auto;
}

/* ==========================================
   חלק 1: גריד ענפי הספורט (הצג עוד)
========================================== */
.sports-block-container {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.sports-grid {
    display: grid;
    /* auto-fit קובע את הכמות אוטומטית. המספר 130px הוא הרוחב המינימלי של כרטיס בודד */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    gap: 12px;
    margin-bottom: 20px;
}


.sport-item {
    position: relative;
    aspect-ratio: 1 / 1.2;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
}

.sport-item:hover {
    transform: scale(1.02);
}

.sport-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.sport-item.hidden {
    display: none !important;
}

.load-more-btn {
    background: transparent;
    color: #8fa7ad;
    border: none;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}

.load-more-btn:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

/* ==========================================
   קרוסלת המבצעים - מבנה עצמאי ומבודד
========================================== */

/* המעטפת החיצונית - לא נוגעת ברוחב של הדף */
.promo-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    clear: both; /* מונע מאלמנטים קודמים "להידחף" לתוכו */
    display: block !important;
}

/* כותרת הסליידר */
.promo-title-main {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: right;
}

/* מיכל הגלילה האופקי - מוגדר כבלוק עצמאי */
.promo-carousel-container {
    display: flex !important; /* מכריח את הכרטיסים לעמוד בשורה אחת */
    flex-direction: row !important;
    gap: 14px;
    overflow-x: auto !important; /* מאפשר גלילה צידית בלבד */
    overflow-y: hidden !important; /* חוסם גלילה אנכית שמעלימה תוכן */
    padding: 8px 4px;
}

/* מסתיר פס גלילה לכרום וספארי */
.promo-carousel-container::-webkit-scrollbar {
    display: none !important;
}

/* מבנה כרטיס המבצע - רוחב קבוע שלא ישבור את הגריד */
.promo-card {
    flex: 0 0 285px; /* מונע מהכרטיסים להתכווץ או להיעלם */
    background-color: #112d35; 
    border-radius: 10px;
    display: flex !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* צד שמאל - תמונה */
.promo-image-side {
    flex: 1;
    min-width: 40%;
    background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* צד ימין - טקסט */
.promo-content-side {
    flex: 1.2;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: right;
}

/* תגית המבצע */
.promo-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

/* כותרת הכרטיס */
.promo-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
}

/* תיאור הכרטיס */
.promo-text {
    margin: 0;
    font-size: 0.78rem;
    color: #b0c4c9;
    line-height: 1.3;
}

/* ==========================================
   חלק 3: טבלת הימורים חיים דינמית
========================================== */
.bets-table-container {
    width: 100%;
    background-color: #112d35;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bets-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left; /* הטבלה במקור משמאל לימין בגלל האנגלית והמטבעות */
    direction: ltr; 
    font-size: 0.9rem;
}

.bets-table th {
    background-color: #0d2329;
    color: #8fa7ad;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.bets-table td {
    padding: 14px 16px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.bets-table tr:last-child td {
    border-bottom: none;
}

/* אלמנטים ייחודיים בתוך השורות */
.sport-icon {
    margin-right: 6px;
    opacity: 0.7;
}

.event-name {
    font-weight: 600;
}

.user-name-display {
    color: #e0f2f1; /* גוון לבן-ירקרק עדין ומקצועי לשמות */
    font-weight: 500;
    font-size: 0.88rem;
}


.bet-time, .bet-odds {
    color: #b0c4c9;
}

.bet-amount {
    font-weight: bold;
}

.crypto-icon {
    font-size: 0.95rem;
    margin-left: 4px;
    vertical-align: middle;
}

.crypto-icon.usdt { color: #00e676; }
.crypto-icon.eth { color: #627eea; }

/* אנימציית כניסה חלקה לשורה חדשה */
@keyframes slideInRow {
    from {
        background-color: rgba(0, 230, 118, 0.2);
        opacity: 0;
    }
    to {
        background-color: transparent;
        opacity: 1;
    }
}

.animate-new {
    animation: slideInRow 0.8s ease-out forwards;
}

/* סרגל מוני גולשים חיים */
.live-counters-bar {
    background-color: #0d2329;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #8fa7ad;
    text-align: right;
}

@media (min-width: 600px) {
    .live-counters-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.main-online-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

/* נקודת לייב מהבהבת */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulseAnimation 1.6s infinite;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.sports-breakdown-counter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #b0c4c9;
}

.sport-count-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ========================================================
   עיצוב תיבת היחס הלבנה והמבריקה - גרסה מבודדת ויציבה
======================================================== */
.odds-badge-fixed {
    background-color: #ffffff !important;
    color: #0b1e23 !important;
    font-weight: bold !important;
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    min-width: 42px !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}
