/* ==========================================================================
   RESULTS + FIXTURES PAGE DESIGN
   --------------------------------------------------------------------------
   Scoped under .rf-page so nothing here leaks into the rest of the site.
   Two heroes: results and fixtures use different photographs.
   ========================================================================== */

.rf-page {
    --rf-bg: #07100d;
    --rf-white: #f4f7f5;
    --rf-muted: #87958f;
    --rf-muted-light: #aab5b0;
    --rf-green: #19d681;
    --rf-yellow: #e4b94d;
    --rf-red: #ed5962;
    --rf-border: rgba(255, 255, 255, .09);

    position: relative;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--rf-white);
    background:
        radial-gradient(circle at 80% 30%, rgba(25, 214, 129, .06), transparent 35%),
        var(--rf-bg);
}

.rf-page a {
    color: inherit;
    text-decoration: none;
}

.rf-page button {
    font-family: inherit;
}


/* =========================================================
   HERO
   ========================================================= */

.rf-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 640px;
    padding: 170px 5vw 140px;
    background-position: center;
    background-size: cover;
}

.rf-page--results .rf-hero {
    background-image:
        linear-gradient(90deg, rgba(4, 12, 9, .97) 0%, rgba(4, 12, 9, .84) 35%, rgba(4, 12, 9, .35) 68%, rgba(4, 12, 9, .7) 100%),
        linear-gradient(0deg, #07100d 0%, transparent 30%),
        url("../../All Asset/assets/results-hero.jpg");
}

.rf-page--fixtures .rf-hero {
    background-image:
        linear-gradient(90deg, rgba(4, 12, 9, .97) 0%, rgba(4, 12, 9, .84) 35%, rgba(4, 12, 9, .35) 68%, rgba(4, 12, 9, .7) 100%),
        linear-gradient(0deg, #07100d 0%, transparent 30%),
        url("../../All Asset/assets/fixtures-hero.jpg");
    background-position: center 35%;
}

.rf-hero::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(25, 214, 129, .12);
    filter: blur(130px);
    pointer-events: none;
}

.rf-hero-decoration {
    position: absolute;
    right: 7%;
    bottom: 80px;
    width: 150px;
    height: 150px;
    border-right: 1px solid rgba(25, 214, 129, .4);
    border-bottom: 1px solid rgba(25, 214, 129, .4);
    transform: skew(-20deg);
    opacity: .5;
}

.rf-hero-content {
    position: relative;
    z-index: 5;
    max-width: 720px;
    animation: rfFadeUp .8s ease both;
}

.rf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rf-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.rf-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--rf-green);
}

.rf-hero h1 {
    margin-top: 20px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(65px, 9vw, 125px);
    font-weight: 700;
    line-height: .83;
    letter-spacing: -.075em;
}

.rf-hero h1 .rf-green {
    color: var(--rf-green);
}

.rf-hero-desc {
    max-width: 520px;
    margin-top: 30px;
    color: #b7c1bd;
    font-size: 15px;
    line-height: 1.8;
}

.rf-hero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 35px;
}

.rf-season {
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 5px;
    background: rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.rf-hero-link {
    color: var(--rf-muted-light);
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   STATS
   ========================================================= */

.rf-stats-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -85px;
    padding: 0 5vw;
}

.rf-stats {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 12px;
    max-width: 1450px;
    margin: auto;
}

.rf-stat {
    position: relative;
    overflow: hidden;
    min-height: 130px;
    padding: 22px 25px;
    border: 1px solid var(--rf-border);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(20, 35, 29, .96), rgba(10, 20, 16, .96));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: transform .3s ease, border-color .3s ease;
    animation: rfFadeUp .7s ease both;
}

.rf-stat:hover {
    transform: translateY(-5px);
    border-color: rgba(25, 214, 129, .3);
}

.rf-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rf-green);
    opacity: .8;
}

.rf-stat.rf-draw::before { background: var(--rf-yellow); }
.rf-stat.rf-loss::before { background: var(--rf-red); }

.rf-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rf-stat-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 43px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
}

.rf-stat-label {
    margin-top: 12px;
    color: var(--rf-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rf-stat-index {
    color: rgba(255, 255, 255, .15);
    font-size: 10px;
    font-weight: 800;
}

.rf-stat-bar {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 18px;
    height: 2px;
    background: rgba(255, 255, 255, .06);
}

.rf-stat-bar span {
    display: block;
    height: 100%;
    width: 56%;
    background: var(--rf-green);
}

.rf-stat.rf-draw .rf-stat-bar span { background: var(--rf-yellow); width: 17%; }
.rf-stat.rf-loss .rf-stat-bar span { background: var(--rf-red); width: 28%; }


/* =========================================================
   RESULTS / FIXTURES SECTION
   ========================================================= */

.rf-section {
    max-width: 1450px;
    margin: 75px auto 0;
    padding: 0 5vw 100px;
}

.rf-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rf-border);
}

.rf-title {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rf-title-line {
    width: 3px;
    height: 43px;
    margin-top: 2px;
    background: var(--rf-green);
}

.rf-title h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 27px;
    letter-spacing: -.04em;
}

.rf-title p {
    margin-top: 6px;
    color: var(--rf-muted);
    font-size: 12px;
}


/* gender switch */

.rf-gender-switch {
    display: flex;
    padding: 4px;
    border: 1px solid var(--rf-border);
    border-radius: 30px;
    background: #0d1915;
}

.rf-gender {
    padding: 9px 25px;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: var(--rf-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    transition: .25s ease;
}

.rf-gender.active {
    color: #06100c;
    background: var(--rf-green);
}


/* filters */

.rf-filters {
    display: flex;
    gap: 7px;
    margin: 25px 0 15px;
}

.rf-filter {
    padding: 10px 19px;
    border: 1px solid var(--rf-border);
    border-radius: 5px;
    background: transparent;
    color: var(--rf-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
    transition: .25s ease;
}

.rf-filter:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
}

.rf-filter.active {
    color: #06100c;
    background: var(--rf-green);
    border-color: var(--rf-green);
}


/* =========================================================
   MATCH TABLE
   ========================================================= */

.rf-matches {
    overflow: hidden;
    border: 1px solid var(--rf-border);
    border-radius: 12px;
    background: rgba(10, 20, 16, .55);
}

.rf-match-head,
.rf-match {
    display: grid;
    grid-template-columns: 120px 1.35fr 80px 1.35fr 1fr 100px 90px 30px;
    align-items: center;
    gap: 15px;
    padding: 0 25px;
}

.rf-match-head {
    height: 50px;
    border-bottom: 1px solid var(--rf-border);
    color: #66746e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rf-match {
    min-height: 78px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    transition: background .25s ease;
}

.rf-match:last-child {
    border-bottom: none;
}

.rf-match:hover {
    background: rgba(25, 214, 129, .035);
}

.rf-date {
    color: #aeb8b4;
    font-size: 11px;
    line-height: 1.5;
}

.rf-date span {
    display: block;
    color: #687670;
    font-size: 9px;
}

.rf-opponent {
    display: flex;
    align-items: center;
    gap: 13px;
}

.rf-team-logo {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    background: #17251f;
    color: #d7e0dc;
    font-size: 10px;
    font-weight: 800;
}

.rf-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rf-team-name {
    font-size: 12px;
    font-weight: 600;
}

.rf-team-name.rf-us {
    color: var(--rf-green);
    font-weight: 700;
}

.rf-team-name span {
    display: block;
    margin-top: 3px;
    color: #687670;
    font-size: 9px;
    font-weight: 400;
}

.rf-competition {
    color: var(--rf-muted);
    font-size: 10px;
}

.rf-comp-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: -7px;
    margin-right: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.rf-pens {
    font-size: 0.72em;
    font-weight: 700;
    color: #fbbf24;
    white-space: nowrap;
}

.rf-venue {
    color: #9ba7a2;
    font-size: 10px;
}

.rf-score {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.rf-result {
    display: inline-flex;
    justify-content: center;
    width: max-content;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .1em;
}

.rf-result.rf-win {
    color: var(--rf-green);
    border: 1px solid rgba(25, 214, 129, .25);
    background: rgba(25, 214, 129, .08);
}

.rf-result.rf-draw {
    color: var(--rf-yellow);
    border: 1px solid rgba(228, 185, 77, .25);
    background: rgba(228, 185, 77, .08);
}

.rf-result.rf-loss {
    color: var(--rf-red);
    border: 1px solid rgba(237, 89, 98, .25);
    background: rgba(237, 89, 98, .08);
}

.rf-result.rf-upcoming {
    color: #9ba7a2;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
}

.rf-result.rf-postponed {
    color: #e4b94d;
    border: 1px solid rgba(228, 185, 77, .35);
    background: rgba(228, 185, 77, .08);
}

.rf-arrow {
    color: #53615c;
    font-size: 18px;
    transition: .25s ease;
}

.rf-match:hover .rf-arrow {
    color: var(--rf-green);
    transform: translateX(4px);
}

.rf-empty {
    padding: 55px 25px;
    color: var(--rf-muted);
    font-size: 13px;
    text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .rf-stats {
        grid-template-columns: 1fr 1fr;
    }
    .rf-stat:first-child {
        grid-column: span 2;
    }
    .rf-match-head,
    .rf-match {
        grid-template-columns: 96px 1.4fr 70px 1.4fr 90px 80px 30px;
    }
    .rf-competition {
        display: none;
    }
}

@media (max-width: 700px) {
    .rf-hero {
        min-height: 580px;
        padding: 150px 22px 150px;
        background-position: 62% center;
    }
    .rf-hero h1 {
        font-size: 67px;
    }
    .rf-hero-desc {
        max-width: 380px;
        font-size: 13px;
    }
    .rf-stats-wrapper {
        margin-top: -70px;
        padding: 0 15px;
    }
    .rf-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .rf-stat {
        min-height: 115px;
        padding: 18px;
    }
    .rf-stat-number {
        font-size: 34px;
    }
    .rf-stat-label {
        font-size: 8px;
    }
    .rf-stat-bar {
        left: 18px;
        right: 18px;
    }
    .rf-section {
        margin-top: 55px;
        padding: 0 15px 70px;
    }
    .rf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
    .rf-gender-switch {
        width: 100%;
    }
    .rf-gender {
        flex: 1;
    }
    .rf-filters {
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .rf-filter {
        white-space: nowrap;
    }
    .rf-matches {
        overflow-x: auto;
    }
    .rf-match-head,
    .rf-match {
        min-width: 800px;
    }
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes rfFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   LEAGUE STANDINGS (embedded in the results page)
   ========================================================= */

.rf-page .league-table-section {
    background: transparent;
    padding: 0 0 95px;
}

.rf-page .league-table-section .container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 5vw;
}

.rf-league-empty {
    padding: 46px !important;
    color: rgba(255, 255, 255, .32);
    text-align: center;
}

.rf-page .league-table .ahudiyannem-row td.rf-pts {
    color: var(--rf-green);
}

@media (max-width: 700px) {
    .rf-page .league-table-section {
        padding: 0 0 70px;
    }
    .rf-page .league-table-section .container {
        padding: 0 15px;
    }
}
