/* أنماط خاصة بالصفحات التفصيلية */

/* صفحة المباراة (Match Details) */
.match-detail-header {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.match-league-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-hover);
    border-radius: 15px;
}

.match-teams-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 150px;
}

.match-team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.match-team h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.match-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-main-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 5px;
    line-height: 1;
}

.match-status {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.match-status.live {
    color: var(--color-live);
    animation: blink 2s infinite;
}

/* التبويبات (Tabs) */
.tabs-container {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

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

/* الإحصائيات (Stats) */
.stat-row {
    margin-bottom: 15px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.stat-bars {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-hover);
    gap: 4px;
}

.stat-bar {
    height: 100%;
}

.stat-bar.home {
    background-color: var(--color-primary);
}

.stat-bar.away {
    background-color: var(--color-warning);
}

/* التشكيلة (Lineups) */
.pitch-container {
    background-color: #2e8b57; /* لون العشب */
    border-radius: 8px;
    padding: 20px;
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid rgba(255,255,255,0.3);
}

.pitch-line {
    position: absolute;
    background-color: rgba(255,255,255,0.3);
}

.pitch-center-line {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
}

.pitch-center-circle {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
}

/* صفحة البطولة (League) */
.league-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.league-header-card img {
    width: 80px;
    height: 80px;
}

/* جدول الترتيب */
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th, .standings-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.standings-table .team-cell {
    text-align: right; /* RTL */
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-table .team-cell img {
    width: 24px;
    height: 24px;
}

.pos-cl { border-right: 3px solid #00529f; } /* دوري الأبطال */
.pos-el { border-right: 3px solid #f08022; } /* الدوري الأوروبي */
.pos-rel { border-right: 3px solid var(--color-danger); } /* هبوط */
