/* Abooda Home / Match Day UI 13.8 - clean single system, no layered legacy overrides. */

.abo-home {
    --abo-live: #d32032;
    direction: rtl;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--abo-border);
    border-radius: var(--abo-radius);
    background: var(--abo-surface);
    box-shadow: var(--abo-shadow);
}

/* Intro is an internal section, not a detached card. */
.abo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin: 0;
    padding: 30px 24px 26px;
    border: 0;
    border-bottom: 1px solid var(--abo-border);
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--abo-accent) 4%, transparent) 0 90px, transparent 91px),
        linear-gradient(180deg, #fff 0%, #fdfefe 100%);
    box-shadow: none;
    text-align: center;
}

.abo-hero-content { width: min(100%, 820px); margin: 0 auto; }
.abo-hero h1 {
    margin: 0;
    color: var(--abo-text);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: -.35px;
    text-align: center;
}
.abo-hero p {
    max-width: 760px;
    margin: 9px auto 0;
    color: var(--abo-muted);
    font-size: 13px;
    line-height: 1.9;
    font-weight: 500;
    text-align: center;
}

/* Schedule is another internal section in the same surface. */
.abo-schedule {
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.abo-schedule-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 20px 18px 17px;
    border-bottom: 1px solid var(--abo-border);
    background: #fff;
    text-align: center;
}

.abo-schedule-heading { width: 100%; text-align: center; }
.abo-schedule-heading h2 {
    margin: 0;
    color: var(--abo-text);
    font-size: 21px;
    line-height: 1.45;
    font-weight: 900;
    text-align: center;
}
.abo-schedule-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--abo-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.abo-day-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    width: min(100%, 370px);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--abo-border);
    border-radius: 13px;
    background: #f1f4f7;
}
.abo-day-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 11px;
    border-radius: 9px;
    color: #667381;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
}
.abo-day-tab:hover { color: var(--abo-text); }
.abo-day-tab.is-active {
    background: #fff;
    color: var(--abo-accent);
    box-shadow: 0 3px 10px rgba(25,35,45,.07);
}

.abo-schedule-body {
    padding: 14px;
    background: var(--abo-soft);
}
.abo-match-list { display: grid; gap: 11px; }

.abo-match-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--abo-border);
    border-radius: 15px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.abo-match-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--abo-accent) 18%, var(--abo-border));
    box-shadow: 0 7px 20px rgba(25,35,45,.045);
}
.abo-match-card.is-live { border-color: color-mix(in srgb, var(--abo-live) 22%, var(--abo-border)); }

.abo-match-competition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 132px;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid #e8edf1;
    border-radius: 999px;
    background: #f8fafb;
    color: #76818c;
    font-size: 9.5px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    white-space: normal;
}

.abo-match-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) 145px minmax(0,1fr);
    align-items: center;
    min-height: 118px;
    padding: 13px 20px 14px;
}
.abo-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 8px;
    text-align: center;
}
.abo-team-logo {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    padding: 6px;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    background: #fff;
}
.abo-team-logo img {
    display: block;
    width: 49px;
    height: 49px;
    margin: 0;
    object-fit: contain;
}
.abo-team-name {
    max-width: 210px;
    color: var(--abo-text);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.abo-match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}
.abo-match-time {
    color: var(--abo-text);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.abo-match-score {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 85px;
    color: var(--abo-text);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.abo-match-card.is-live .abo-match-score,
.abo-match-card.is-finished .abo-match-score { display: flex; }
.abo-match-card.is-live .abo-match-time,
.abo-match-card.is-finished .abo-match-time { display: none; }
.abo-match-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf1f4;
    color: #65717d;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}
.abo-match-card.is-live .abo-match-status { background: #fff0f2; color: var(--abo-live); }
.abo-match-card.is-soon .abo-match-status { background: #eef9f2; color: #177746; }
.abo-match-link { position: absolute; z-index: 2; inset: 0; }
.abo-match-link:focus-visible { outline: 2px solid var(--abo-accent); outline-offset: -3px; }

.abo-empty-state {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 28px;
    border: 1px dashed #dce3e9;
    border-radius: 14px;
    background: #fff;
    color: var(--abo-muted);
    text-align: center;
}
.abo-empty-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #f2f5f8;
    font-size: 20px;
}
.abo-empty-state strong { color: var(--abo-text); font-size: 14px; font-weight: 900; }
.abo-empty-state small { font-size: 11px; }

/* News remains inside the same visual surface. */
.abo-home-widgets {
    margin: 0;
    border-top: 1px solid var(--abo-border);
    background: #fff;
}
.abo-home-widgets .AY_Block,
.abo-news-block {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.abo-home-widgets .AYb_Head,
.abo-news-head {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 15px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--abo-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    text-align: center !important;
}
.abo-home-widgets .AYb_Head h2,
.abo-news-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--abo-text) !important;
    font-size: 19px !important;
    line-height: 1.5;
    font-weight: 900 !important;
}
.abo-news-more { margin-inline-start: 12px; color: var(--abo-accent); font-size: 12px; font-weight: 800; }

.abo-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    padding: 16px;
}
.abo-news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--abo-border);
    border-radius: 14px;
    background: #fff;
}
.abo-news-image { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #eef2f5; }
.abo-news-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.abo-news-content { padding: 12px 13px 14px; }
.abo-news-content h3 {
    margin: 0;
    color: var(--abo-text);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: anywhere;
}
.abo-news-content h3 a { color: inherit; }
.abo-news-content time { display: block; margin-top: 7px; color: var(--abo-muted); font-size: 10px; }
.abo-news-empty { grid-column: 1/-1; padding: 24px; color: var(--abo-muted); text-align: center; }

.abo-home-description {
    margin: 0;
    border-top: 1px solid var(--abo-border);
    background: #fff;
}
.abo-home-description:empty { display: none; }
.abo-home-description .AY_Block { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

@media (max-width: 900px) {
    .abo-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .abo-match-main { grid-template-columns: minmax(0,1fr) 118px minmax(0,1fr); }
}

@media (max-width: 640px) {
    .abo-home { margin-bottom: 10px; border-radius: 14px; }
    .abo-hero { min-height: 124px; padding: 22px 14px 19px; background: #fff; }
    .abo-hero h1 { font-size: 23px; line-height: 1.55; }
    .abo-hero p { margin-top: 6px; font-size: 11.5px; line-height: 1.8; }

    .abo-schedule-head { min-height: 110px; gap: 10px; padding: 16px 10px 14px; }
    .abo-schedule-heading h2 { font-size: 18px; }
    .abo-day-tabs { width: min(100%, 330px); }
    .abo-day-tab { min-height: 36px; font-size: 12px; }

    .abo-schedule-body { padding: 8px; }
    .abo-match-list { gap: 8px; }
    .abo-match-card { border-radius: 13px; }
    .abo-match-competition { max-width: 78px; min-height: 19px; padding: 3px 5px; font-size: 8px; line-height: 1.2; }
    .abo-match-main { grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr); min-height: 96px; padding: 9px 6px 10px; }
    .abo-team { gap: 6px; }
    .abo-team-logo { width: 48px; height: 48px; padding: 4px; border-radius: 13px; }
    .abo-team-logo img { width: 38px; height: 38px; }
    .abo-team-name { max-width: 110px; font-size: 11.5px; line-height: 1.55; }
    .abo-match-time { font-size: 14px; }
    .abo-match-score { min-width: 66px; gap: 5px; font-size: 18px; }
    .abo-match-status { min-width: 58px; min-height: 22px; padding: 4px 6px; font-size: 9px; }

    .abo-news-grid { grid-template-columns: 1fr; gap: 9px; padding: 10px; }
    .abo-news-card { display: grid; grid-template-columns: 118px minmax(0,1fr); min-height: 104px; }
    .abo-news-image { height: 100%; min-height: 104px; aspect-ratio: auto; }
    .abo-news-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 10px 11px; text-align: right; }
    .abo-news-content h3 { font-size: 13px; line-height: 1.7; }
}
