/* ========================================
   تنسيقات جدول مباريات اليوم
   ======================================== */

/* مقدمة المقال */
.post-intro-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border-right: 5px solid #667eea;
    direction: rtl;
}

.intro-paragraph {
    line-height: 1.9;
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 16px;
}

.intro-paragraph:last-child {
    margin-bottom: 0;
}

.intro-paragraph strong {
    color: #667eea;
    font-weight: 700;
}

.intro-main {
    font-size: 17px;
}

/* جدول المباريات */
.matches-table-wrapper {
    margin: 35px 0;
    overflow-x: auto;
    direction: rtl;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* رأس الجدول */
.matches-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.matches-table th {
    padding: 18px 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* صفوف الجدول */
.matches-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.matches-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.matches-table tbody tr:last-child {
    border-bottom: none;
}

.matches-table td {
    padding: 15px 10px;
    text-align: center;
    vertical-align: middle;
}

/* عمود البطولة */
.match-championship {
    font-weight: 600;
    color: #764ba2;
    font-size: 14px;
}

/* عمود المباراة */
.match-teams {
    padding: 10px;
}

.teams-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.team-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.team-logo:hover {
    transform: scale(1.15);
}

.team-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-align: center;
}

.vs-separator {
    font-weight: bold;
    color: #667eea;
    font-size: 20px;
    padding: 0 10px;
}

/* عمود التوقيت */
.match-time {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    direction: ltr;
}

/* عمود النتيجة */
.match-score {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    direction: ltr;
}

/* عمود الحالة */
.match-status {
    padding: 8px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.status-live {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.status-ended {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

/* قسم تفاصيل البطولات */
.championships-details-wrapper {
    margin: 40px 0;
    direction: rtl;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    text-align: center;
}

.championship-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-right: 5px solid #667eea;
    transition: all 0.3s ease;
}

.championship-section:hover {
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.championship-title {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.championship-content p {
    line-height: 1.9;
    margin-bottom: 16px;
    color: #495057;
    font-size: 15px;
}

.championship-intro {
    font-weight: 500;
}

.championship-analysis {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-right: 3px solid #764ba2;
}

.championship-expectation {
    font-style: italic;
    color: #6c757d;
}

/* قائمة المباريات داخل البطولة */
.championship-matches-list {
    margin-top: 25px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 8px;
}

.matches-list-title {
    font-size: 18px;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 15px;
    padding-right: 10px;
    border-right: 4px solid #764ba2;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-right: 4px solid #667eea;
    transition: all 0.3s ease;
}

.match-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.match-item:last-child {
    margin-bottom: 0;
}

.match-item-time {
    font-weight: 600;
    color: #495057;
    font-size: 15px;
}

.match-item-teams {
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
}

/* التصميم المتجاوب */
@media (max-width: 992px) {
    .matches-table th,
    .matches-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .team-logo {
        width: 45px;
        height: 45px;
    }
    
    .vs-separator {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .post-intro-section {
        padding: 18px;
    }
    
    .intro-paragraph {
        font-size: 15px;
    }
    
    .matches-table {
        font-size: 13px;
    }
    
    .matches-table th {
        padding: 12px 6px;
        font-size: 13px;
    }
    
    .matches-table td {
        padding: 10px 5px;
    }
    
    .team-logo {
        width: 38px;
        height: 38px;
    }
    
    .team-name {
        font-size: 12px;
    }
    
    .vs-separator {
        font-size: 14px;
        padding: 0 5px;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .championship-section {
        padding: 18px;
    }
    
    .championship-title {
        font-size: 20px;
    }
    
    .match-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .column-championship {
        display: none;
    }
    
    .teams-container {
        gap: 10px;
    }
    
    .team-container {
        min-width: 70px;
    }
    
    .team-logo {
        width: 32px;
        height: 32px;
    }
    
    .team-name {
        font-size: 11px;
    }
    
    .match-time {
        font-size: 14px;
    }
    
    .match-score {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 22px;
    }
}