/* Yusef Match Frontend Styles - Full Responsiveness & Vertical Matches Schedule */

/* 1. Global Single Match Container Wrappers */
.yusef-top-banner-wrapper,
.yusef-bottom-details-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 24px 0;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    background: #151c2c !important;
    border: 1px solid #283548 !important;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    color: #ffffff !important;
}

.yusef-todays-matches-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0 !important;
    width: 100% !important;
    background: #151c2c !important;
    border: 1px solid #283548 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
    padding: 20px !important;
    color: #ffffff !important;
}

/* 2. Top Banner Card (Dark Header) */
.yusef-card-banner {
    background: linear-gradient(135deg, #030712, #0f172a);
    color: #ffffff;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.yusef-banner-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.yusef-banner-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
    transition: transform 0.2s ease;
}

.yusef-banner-logo:hover {
    transform: scale(1.08);
}

.yusef-banner-name {
    font-weight: 800;
    font-size: 16px;
    color: #ffffff !important;
    line-height: 1.2;
}

.yusef-banner-time-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 14px;
    color: #38bdf8;
    font-weight: 800;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.yusef-time-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.yusef-tz-subtitle {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 2px;
}

.yusef-card-sub-info {
    background: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
}

.yusef-info-chip {
    font-size: 14px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yusef-info-chip strong {
    color: #38bdf8;
}

/* 3. Section H2 Header */
h2.yusef-card-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff !important;
    background: #030712 !important;
    margin: 0;
    padding: 16px 20px;
    border-bottom: 2px solid #283548 !important;
    line-height: 1.4;
}

/* 4. Match Details Table */
.yusef-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.yusef-details-table tr {
    border-bottom: 1px solid #283548;
}

.yusef-details-table tr:last-child {
    border-bottom: none;
}

.yusef-details-table th.yusef-label-col {
    background-color: #030712 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    text-align: right;
    width: 35%;
    vertical-align: middle;
}

.yusef-label-icon {
    margin-left: 6px;
    font-size: 16px;
}

.yusef-details-table td.yusef-val-col {
    background-color: #151c2c !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 20px;
    text-align: center;
    vertical-align: middle;
}

/* 5. Today's Matches Vertical Stacked List Schedule */
.yusef-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    background: #0f172a !important;
    border: 1px solid #283548 !important;
    border-radius: 12px;
    padding: 12px 18px;
}

.yusef-no-matches {
    background: #0f172a !important;
    border: 1px solid #283548 !important;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
}

.yusef-schedule-title {
    margin: 0;
    font-size: 20px;
    color: #ffffff !important;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yusef-count-badge {
    background: #1e293b !important;
    color: #f59e0b !important;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
}

.yusef-matches-stacked-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Vertical Match Row Item */
.yusef-match-row-item {
    background: #0f172a !important;
    border: 1px solid #283548 !important;
    border-radius: 14px;
    padding: 16px 20px;
    text-decoration: none !important;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

.yusef-match-row-item:hover {
    transform: translateY(-2px);
    border-color: #f59e0b !important;
    box-shadow: 0 12px 20px -5px rgba(245, 158, 11, 0.2);
}

/* Row Top: League Tag & Time */
.yusef-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yusef-league-chip {
    font-weight: 700;
    font-size: 13px;
    color: #38bdf8 !important;
    background: #1e293b !important;
    padding: 4px 10px;
    border-radius: 6px;
}

.yusef-row-time {
    font-weight: 700;
    font-size: 13px;
    color: #cbd5e1 !important;
    background: #1e293b !important;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Row Teams (Flex Layout) */
.yusef-row-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.yusef-team-col {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.yusef-team-col.team-left {
    justify-content: flex-end;
    text-align: left;
}

.yusef-team-col.team-right {
    justify-content: flex-start;
    text-align: right;
}

.yusef-row-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.yusef-row-team-name {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff !important;
}

.yusef-center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #151c2c !important;
    border: 1px solid #283548 !important;
    padding: 6px 16px;
    border-radius: 10px;
    min-width: 80px;
    margin: 0 15px;
}

.yusef-center-clock {
    font-weight: 900;
    font-size: 15px;
    color: #f59e0b !important;
}

.yusef-center-status {
    font-size: 11px;
    color: #94a3b8 !important;
    font-weight: 600;
    margin-top: 2px;
}

.yusef-live-indicator {
    color: #ef4444;
    animation: yusefPulse 1.5s infinite;
}

@keyframes yusefPulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Row Bottom: Channel, Commentator & CTA Link */
.yusef-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #283548 !important;
    padding-top: 10px;
    font-size: 13px;
    color: #94a3b8 !important;
}

.yusef-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.yusef-meta-dot {
    color: #cbd5e1;
}

.yusef-view-link {
    font-weight: 700;
    color: #0284c7;
    font-size: 13px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .yusef-card-banner {
        flex-direction: column;
        gap: 16px;
        padding: 20px 14px;
    }

    .yusef-banner-team {
        width: 100%;
    }

    .yusef-banner-time-center {
        width: 100%;
    }

    .yusef-row-teams {
        flex-direction: column;
        gap: 12px;
    }

    .yusef-team-col.team-left,
    .yusef-team-col.team-right {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .yusef-center-box {
        margin: 6px 0;
        width: 100%;
    }

    .yusef-details-table th.yusef-label-col {
        width: 45%;
        font-size: 13px;
        padding: 10px 12px;
    }

    .yusef-details-table td.yusef-val-col {
        font-size: 13px;
        padding: 10px 12px;
    }
}
