/* ═══════════════════════════════════════════════════════════
   QRSports Pro - Frontend Styles
   ═══════════════════════════════════════════════════════════ */

.qrs-wrapper {
    font-family: 'Cairo', Tahoma, sans-serif;
    direction: rtl;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* التبويبات (أمس، اليوم، غداً) */
.qrs-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.qrs-tab {
    padding: 10px 30px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.qrs-tab:hover {
    background: #e2e8f0;
}
.qrs-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* الشبكة (Grid) */
.qrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* بطاقة المباراة */
.qrs-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.qrs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ترويسة البطاقة (البطولة) */
.qrs-card-header {
    background: #f8fafc;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

/* جسم البطاقة (الفرق والنتيجة) */
.qrs-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 15px;
    flex: 1;
}

.qrs-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}
.qrs-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.qrs-card:hover .qrs-team img {
    transform: scale(1.1);
}
.qrs-team span {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qrs-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}
.qrs-score-nums {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    direction: ltr;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qrs-score-nums span {
    color: #cbd5e1;
    font-size: 18px;
}
.qrs-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    background: #ef4444; /* افتراضي للمباشر */
}
.qrs-status.finished { background: #64748b; }
.qrs-status.upcoming { background: #10b981; }
.qrs-time {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 600;
    direction: ltr;
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .qrs-grid { grid-template-columns: 1fr; }
    .qrs-tab { padding: 8px 20px; font-size: 14px; }
    .qrs-team img { width: 45px; height: 45px; }
    .qrs-team span { font-size: 12px; }
    .qrs-score-nums { font-size: 22px; }
}

/* الوضع الليلي (اختياري) */
body.dark-mode .qrs-card { background: #1e293b; border-color: #334155; }
body.dark-mode .qrs-card-header { background: #0f172a; color: #94a3b8; border-color: #334155; }
body.dark-mode .qrs-team span { color: #f1f5f9; }
body.dark-mode .qrs-score-nums { color: #fff; }
body.dark-mode .qrs-tab { background: #1e293b; color: #94a3b8; border-color: #334155; }
body.dark-mode .qrs-tab.active { background: #2563eb; color: #fff; }
/* تذييل البطاقة (القناة والمعلق) */
.qrs-card-footer {
    background: #f8fafc;
    padding: 10px 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.qrs-card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}