/* ==========================================
   هيرو البطولات والأندية - Light Theme Fluid Grid
   ========================================== */
.competition-hero {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.competition-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #4285f4, #a855f7);
}

.competition-hero--cup::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.competition-hero--team::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.competition-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.competition-hero-logo-ring {
    flex-shrink: 0;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}
.competition-hero--cup .competition-hero-logo-ring {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
}
.competition-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 8px;
}
.competition-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.competition-hero-body {
    flex: 1 1 300px;
    min-width: 0;
}

.competition-hero-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    margin-bottom: 8px;
}

.competition-hero-title {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px;
}

.competition-hero-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px;
}

.competition-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.competition-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
}

.competition-hero-side {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-right: auto; /* Push to left in RTL */
}

.competition-hero-chip {
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
    min-width: 80px;
}

.competition-hero-chip-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 4px;
}
.competition-hero-chip-value {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

/* Tab Navigation */
.team-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
.team-tab {
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}
.team-tab:hover {
    background: #f8fafc;
    color: #0f172a;
}
.team-tab.is-active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Fluid Grids for Team Info */
.team-info-grid, .team-key-stats, .team-stats-lite-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.team-info-grid > *, .team-key-stats > *, .team-stats-lite-grid > * {
    flex: 1 1 140px;
    min-width: 0;
}

.team-info-card, .team-key-stat {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}
.team-info-card .lbl { font-size: 12px; color: #64748b; font-weight: 800; margin-bottom: 4px; }
.team-info-card .val { font-size: 15px; color: #0f172a; font-weight: 800; }

.team-bio-block {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    margin-bottom: 24px;
    line-height: 1.8;
    color: #334155;
}
.team-bio-block h2 { margin: 0 0 16px; font-size: 18px; color: #0f172a; }
