/* CSS للواجهة الأمامية */

/* تنسيق حاوية المباريات */
.fmp-matches-container {
    margin: 20px 0;
}

/* تنسيق التبويبات في الواجهة الأمامية */
.fmp-frontend-tabs {
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.fmp-frontend-tab-link {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 5px;
    margin-bottom: -2px; /* لرفع الرابط فوق الخط السفلي */
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s, color 0.3s;
}

.fmp-frontend-tab-link:hover {
    background-color: #eee;
    color: #333;
}

.fmp-frontend-tab-link.active {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-bottom: 2px solid #fff; /* لجعل الخط السفلي يختفي */
    color: #0073aa;
}

.fmp-frontend-tab-content {
    display: none;
    padding: 20px 0;
}

.fmp-frontend-tab-content.active {
    display: block;
}

/* تنسيق عام للمباريات */
.fmp-match {
    border: 1px solid #e5e5e5;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    transition: box-shadow 0.3s;
    position: relative;
}

.fmp-match-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fmp-match-link:hover .fmp-match {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fmp-match-competition {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
    text-align: center;
}

.fmp-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fmp-team {
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: bold;
    font-size: 1.1em;
}

.fmp-home-team {
    justify-content: flex-start;
}

.fmp-away-team {
    justify-content: flex-end;
    text-align: right;
}

.fmp-team-logo {
    width: 24px;
    height: 24px;
    margin: 0 8px;
    object-fit: contain;
}

.fmp-home-team .fmp-team-logo {
    order: 1; /* الشعار بعد الاسم */
}

.fmp-away-team .fmp-team-logo {
    order: -1; /* الشعار قبل الاسم */
}

.fmp-match-result {
    text-align: center;
    padding: 0 20px;
}

.fmp-score {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
}

.fmp-match-status {
    font-size: 0.9em;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.fmp-status-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px; /* مسافة بين الأيقونة والنص */
    vertical-align: middle;
}

.fmp-status-icon.live {
    /* يمكن إضافة تأثيرات خاصة للأيقونة المباشرة هنا إذا لزم الأمر */
}

.fmp-match-time, .fmp-match-date {
    font-size: 0.85em;
    color: #888;
}

.fmp-match-extra-info {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    text-align: center;
}

.fmp-match-extra-info div {
    margin-bottom: 3px;
}

.fmp-label {
    font-weight: bold;
    margin-left: 5px;
}

.fmp-no-matches {
    text-align: center;
    color: #777;
    padding: 20px;
    border: 1px dashed #ddd;
    background-color: #f9f9f9;
}

/* تخطيطات مختلفة (يمكن تخصيصها أكثر) */
.fmp-layout-compact .fmp-match-extra-info {
    display: none;
}

.fmp-layout-full .fmp-match {
    /* يمكن إضافة تنسيقات خاصة للتخطيط الكامل */
}


/* التعديلات الجديدة */
.fmp-extra-info {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 4px;
}

.fmp-countdown {
    font-family: monospace;
    font-size: 1.2em;
    color: #d9534f;
    font-weight: bold;
}

.fmp-live-icon {
    color: #d9534f;
    animation: fmp-pulse 1.5s infinite;
}

@keyframes fmp-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
