/* === MATCH CARD STYLING ===
   يستهدف هذا الملف الكلاسات الفعلية المُخرَجة من [football_fixture] في match.php:
   .match-card > .match-header + .match-content + .goals-section + .bet-button
   (تم توحيدها مع الكلاسات الحقيقية بعد اكتشاف أن التصميم السابق كان مكتوباً
    لبنية HTML مختلفة لم تعد مستخدمة: match-card-header, teams-and-score... إلخ) */

.match-card {
    background: var(--modern-card-bg, #ffffff);
    border-radius: var(--modern-border-radius, 12px);
    box-shadow: var(--modern-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
    margin: 0 2px 12px 2px;
    padding: 0;
    border: none;
    font-family: var(--modern-font);
    color: var(--modern-text-primary);
    overflow: hidden;
}

/* 1. رأس البطاقة (اسم الدوري + الأيقونات) */
.match-card .match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--modern-table-border-color, #e9ecef);
}

.match-card .league {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--modern-text-primary);
}

.match-card .league-logo {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    object-fit: contain;
}

.match-card .icons i {
    font-size: 15px;
    color: var(--modern-text-secondary, #888);
    margin-right: 10px;
    cursor: pointer;
}

.match-card .icons i:hover {
    color: var(--modern-accent, #007bff);
}

/* 2. الفرق والنتيجة */
.match-card .match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 15px;
}

.match-card .team {
    flex: 1;
    display: flex;
    align-items: center;
}

.match-card .team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--modern-text-primary);
}

.match-card .score-section {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 12px;
}

.match-card .match-time {
    font-size: 13px;
    color: var(--modern-text-secondary, #888);
    margin-bottom: 6px;
}

.match-card .match-time .kvwsHg {
    color: #dc3545;
    font-weight: bold;
}

.match-card .score {
    font-size: 26px;
    font-weight: 700;
    color: var(--modern-text-primary);
}

.match-card .score-separator {
    margin: 0 6px;
    color: var(--modern-text-secondary, #888);
}

.match-card .odds {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--modern-text-secondary, #ccc);
}

/* 3. قائمة الأهداف */
.match-card .goals-section {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 15px 15px;
    font-size: 12px;
    color: var(--modern-text-secondary, #666);
}

.match-card .home-team-goals,
.match-card .away-team-goals {
    flex: 1;
}

.match-card .away-team-goals {
    text-align: left;
}

.match-card .home-team-goals {
    text-align: right;
}

.match-card .goal-detail {
    margin-bottom: 3px;
    line-height: 1.4;
}

.match-card .goal-detail i.fa-futbol {
    color: var(--modern-goal-icon-color, #28a745);
    margin: 0 4px;
}

/* 4. زر تفاصيل المباراة */
.match-card .bet-button {
    display: block;
    width: 100%;
    background-color: var(--modern-accent, #007bff);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.match-card .bet-button:hover {
    background-color: #0056b3;
}

/* === استجابة الشاشات الصغيرة === */
@media (max-width: 480px) {
    .match-card .match-header {
        padding: 10px 12px;
    }
    .match-card .league {
        font-size: 13px;
    }
    .match-card .match-content {
        padding: 14px 10px;
    }
    .match-card .team-name {
        font-size: 13px;
    }
    .match-card .score {
        font-size: 22px;
    }
    .match-card .goals-section {
        font-size: 11px;
    }
    .match-card .bet-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}
