/* ==================================================
   BP EAGLES – MÉRKŐZÉSEK HERO
================================================== */

.bpe-matches-hero {
    --bpe-blue: #009fe3;
    --bpe-blue-light: #20baff;
    --bpe-dark: #02080c;
    --bpe-panel: #07141d;
    --bpe-border: rgba(0, 159, 227, 0.35);
    --bpe-white: #ffffff;
    --bpe-muted: #9aabb5;

    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(0, 159, 227, 0.14),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #02070b 0%,
            #04101a 55%,
            #02070b 100%
        );
}

/* Háttér háló */
.bpe-matches-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(
            rgba(0, 159, 227, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 159, 227, 0.08) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 35%,
        #000 100%
    );
}

/* Átlós fénycsík */
.bpe-matches-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 650px;
    height: 650px;
    right: -170px;
    bottom: -380px;
    border: 1px solid rgba(0, 159, 227, 0.25);
    transform: rotate(45deg);
    box-shadow:
        0 0 80px rgba(0, 159, 227, 0.08),
        inset 0 0 80px rgba(0, 159, 227, 0.05);
}

/* ==================================================
   BELSŐ ELRENDEZÉS
================================================== */

.bpe-matches-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1280px);
    max-width: 1280px;
    min-width: 0;
    margin-inline: auto;
    padding: 100px 24px 90px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 6vw, 80px);
}

.bpe-matches-hero__content {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bpe-matches-hero__result {
    flex: 0 1 440px;
    width: 100%;
    min-width: 0;
}

.bpe-matches-hero__result .elementor-widget-html {
    width: 100%;
}

/* ==================================================
   BAL OLDALI SZÖVEGEK
================================================== */

.bpe-matches-hero__breadcrumb {
    margin: 0 0 32px;
    color: #899aa5;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bpe-matches-hero__breadcrumb p {
    margin: 0;
}

.bpe-matches-hero__breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.bpe-matches-hero__breadcrumb a:hover {
    color: var(--bpe-blue);
}

.bpe-matches-hero__eyebrow {
    position: relative;
    margin: 0 0 14px;
    padding-left: 36px;
    color: var(--bpe-blue-light);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bpe-matches-hero__eyebrow p {
    margin: 0;
}

.bpe-matches-hero__eyebrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 23px;
    height: 2px;
    background: var(--bpe-blue);
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(0, 159, 227, 0.65);
}

.bpe-matches-hero__title {
    margin: 0;
    color: var(--bpe-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(56px, 6vw, 92px);
    font-weight: 800;
    line-height: 0.86;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.bpe-matches-hero__title span,
.bpe-matches-hero__title strong {
    display: block;
}

.bpe-matches-hero__title span {
    margin-bottom: 19px;
    color: transparent;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.015em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.65);
}

.bpe-matches-hero__title strong {
    color: var(--bpe-white);
    font-weight: 800;
}

.bpe-matches-hero__title strong:last-child {
    margin-top: 7px;
    color: var(--bpe-blue);
    text-shadow: 0 0 34px rgba(0, 159, 227, 0.18);
}

.bpe-matches-hero__description {
    width: min(100%, 580px);
    margin-top: 30px;
    color: #b2bec5;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
}

.bpe-matches-hero__description p {
    margin: 0;
}

/* ==================================================
   LEGUTÓBBI MÉRKŐZÉS KÁRTYA
================================================== */

.bpe-latest-match {
    position: relative;
    width: 100%;
    padding: 25px;
    overflow: hidden;
    color: var(--bpe-white);
    background:
        linear-gradient(
            135deg,
            rgba(9, 31, 44, 0.97),
            rgba(4, 13, 20, 0.98)
        );
    border: 1px solid var(--bpe-border);
    clip-path: polygon(
        20px 0,
        100% 0,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        0 100%,
        0 20px
    );
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.48),
        inset 0 0 40px rgba(0, 159, 227, 0.025);
}

.bpe-latest-match::before,
.bpe-latest-match::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--bpe-blue);
    box-shadow: 0 0 12px rgba(0, 159, 227, 0.65);
}

.bpe-latest-match::before {
    top: 0;
    left: 21px;
}

.bpe-latest-match::after {
    right: 21px;
    bottom: 0;
}

.bpe-latest-match__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bpe-latest-match__header span {
    color: var(--bpe-blue-light);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bpe-latest-match__header i {
    display: block;
    flex: 1;
    max-width: 85px;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--bpe-blue),
        transparent
    );
}

.bpe-latest-match__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 30px 0;
}

.bpe-latest-match__team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    text-align: center;
}

.bpe-latest-match__team strong {
    color: var(--bpe-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.bpe-latest-match__logo {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 159, 227, 0.52);
    border-radius: 50%;
    color: var(--bpe-blue);
    background:
        radial-gradient(
            circle,
            rgba(0, 159, 227, 0.18),
            rgba(0, 159, 227, 0.02) 65%
        );
    box-shadow: 0 0 28px rgba(0, 159, 227, 0.1);
}

.bpe-latest-match__logo span {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.bpe-latest-match__logo--opponent {
    border-color: rgba(255, 255, 255, 0.2);
    color: #a9b7bf;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

.bpe-latest-match__score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.bpe-latest-match__score strong {
    color: var(--bpe-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 43px;
    font-weight: 800;
    line-height: 1;
}

.bpe-latest-match__score span {
    color: var(--bpe-blue);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.bpe-latest-match__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bpe-latest-match__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bpe-latest-match__meta strong {
    color: var(--bpe-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.bpe-latest-match__meta span {
    color: var(--bpe-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.bpe-latest-match__status {
    min-width: 73px;
    padding: 9px 13px;
    color: var(--bpe-blue-light);
    border: 1px solid var(--bpe-blue);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );
}

.bpe-latest-match__status--loss {
    color: #ff626b;
    border-color: rgba(255, 72, 84, 0.75);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {
    .bpe-matches-hero {
        min-height: 600px;
    }

    .bpe-matches-hero__inner {
        gap: 35px;
        padding: 90px 30px 80px;
    }

    .bpe-matches-hero__content {
        flex-basis: 54%;
    }

    .bpe-matches-hero__result {
        flex-basis: 42%;
    }

    .bpe-matches-hero__title {
        font-size: clamp(50px, 6.3vw, 70px);
    }

    .bpe-matches-hero__description {
        font-size: 16px;
    }

    .bpe-latest-match {
        padding: 21px;
    }

    .bpe-latest-match__teams {
        gap: 12px;
    }

    .bpe-latest-match__logo {
        width: 61px;
        height: 61px;
    }

    .bpe-latest-match__score strong {
        font-size: 34px;
    }

    .bpe-latest-match__team strong {
        font-size: 14px;
    }
}

/* ==================================================
   MOBIL
================================================== */

@media (max-width: 767px) {
    .bpe-matches-hero {
        min-height: auto;
    }

    .bpe-matches-hero::before {
        background-size: 34px 34px;
        opacity: 0.2;
    }

    .bpe-matches-hero__inner {
        width: 100%;
        padding: 75px 20px 60px;
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
    }

    .bpe-matches-hero__content,
    .bpe-matches-hero__result {
        width: 100%;
        flex: 0 0 auto;
    }

    .bpe-matches-hero__breadcrumb {
        margin-bottom: 26px;
        font-size: 12px;
    }

    .bpe-matches-hero__eyebrow {
        font-size: 13px;
    }

    .bpe-matches-hero__title {
        font-size: clamp(48px, 15vw, 68px);
        line-height: 0.9;
    }

    .bpe-matches-hero__title span {
        margin-bottom: 14px;
        font-size: 0.63em;
    }

    .bpe-matches-hero__description {
        margin-top: 25px;
        font-size: 15px;
        line-height: 1.7;
    }

    .bpe-latest-match {
        padding: 20px 16px;
    }

    .bpe-latest-match__header span {
        font-size: 13px;
    }

    .bpe-latest-match__teams {
        gap: 8px;
        padding: 25px 0;
    }

    .bpe-latest-match__logo {
        width: 56px;
        height: 56px;
    }

    .bpe-latest-match__logo span {
        font-size: 16px;
    }

    .bpe-latest-match__team strong {
        font-size: 13px;
    }

    .bpe-latest-match__score {
        gap: 5px;
    }

    .bpe-latest-match__score strong {
        font-size: 30px;
    }

    .bpe-latest-match__score span {
        font-size: 20px;
    }

    .bpe-latest-match__footer {
        align-items: flex-end;
        gap: 12px;
    }

    .bpe-latest-match__meta strong {
        font-size: 14px;
    }

    .bpe-latest-match__meta span {
        font-size: 11px;
    }

    .bpe-latest-match__status {
        min-width: 64px;
        padding: 8px 10px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .bpe-matches-hero__inner {
        padding-inline: 16px;
    }

    .bpe-matches-hero__title {
        font-size: clamp(43px, 14vw, 58px);
    }

    .bpe-latest-match__logo {
        width: 48px;
        height: 48px;
    }

    .bpe-latest-match__team strong {
        font-size: 12px;
    }

    .bpe-latest-match__score strong {
        font-size: 26px;
    }
}

/* ==================================================
   BP EAGLES – MÉRKŐZÉSARCHÍVUM
================================================== */

.bpe-matches-archive {
    --archive-blue: #009fe3;
    --archive-blue-light: #22baff;
    --archive-white: #ffffff;
    --archive-muted: #91a2ad;
    --archive-dark: #02080c;
    --archive-panel: #06131c;
    --archive-border: rgba(99, 132, 150, 0.32);

    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 110px 24px;
    color: var(--archive-white);
    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(0, 159, 227, 0.1),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #02080c 0%,
            #030b11 100%
        );
}

.bpe-matches-archive::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(
            rgba(0, 159, 227, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 159, 227, 0.07) 1px,
            transparent 1px
        );
    background-size: 54px 54px;
    mask-image: linear-gradient(
        180deg,
        transparent,
        #000 20%,
        #000 80%,
        transparent
    );
}

.bpe-matches-archive__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1280px);
    margin-inline: auto;
}

/* ==================================================
   SZAKASZFEJLÉC
================================================== */

.bpe-matches-archive__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.bpe-matches-archive__eyebrow {
    position: relative;
    display: block;
    margin-bottom: 11px;
    padding-left: 32px;
    color: var(--archive-blue);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bpe-matches-archive__eyebrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--archive-blue);
    transform: translateY(-50%);
}

.bpe-matches-archive__header h2 {
    margin: 0;
    color: var(--archive-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.bpe-matches-archive__count {
    position: relative;
    margin-bottom: 5px;
    padding-left: 18px;
    color: var(--archive-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.bpe-matches-archive__count::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 7px;
    height: 7px;
    border: 1px solid var(--archive-blue);
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(0, 159, 227, 0.6);
}

/* ==================================================
   VÁLTÓFÜLEK
================================================== */

.bpe-matches-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(120, 148, 162, 0.42);
    clip-path: polygon(
        14px 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        14px 100%,
        0 calc(100% - 14px),
        0 14px
    );
    background: rgba(5, 15, 22, 0.88);
}

.bpe-matches-tabs__button {
    position: relative;
    min-height: 58px;
    padding: 14px 20px;
    appearance: none;
    border: 0;
    border-right: 1px solid rgba(120, 148, 162, 0.25);
    border-radius: 0;
    outline: none;
    cursor: pointer;
    color: #c3cdd3;
    background: transparent;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.bpe-matches-tabs__button:last-child {
    border-right: 0;
}

.bpe-matches-tabs__button::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    opacity: 0;
    background: var(--archive-blue);
    box-shadow: 0 0 15px rgba(0, 159, 227, 0.75);
    transform: scaleX(0.4);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.bpe-matches-tabs__button:hover,
.bpe-matches-tabs__button.is-active {
    color: var(--archive-blue-light);
    background: rgba(0, 159, 227, 0.07);
}

.bpe-matches-tabs__button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.bpe-matches-tabs__button:focus-visible {
    box-shadow: inset 0 0 0 2px var(--archive-blue);
}

/* ==================================================
   MÉRKŐZÉSLISTA
================================================== */

.bpe-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.bpe-matches-archive.is-loading .bpe-matches-list {
    opacity: 0.38;
    pointer-events: none;
}

/* ==================================================
   MÉRKŐZÉSKÁRTYA – ASZTAL
================================================== */

.bpe-match-card {
    position: relative;
    display: grid;
    grid-template-columns:
        105px
        160px
        82px
        minmax(175px, 1fr)
        86px
        minmax(165px, 1fr)
        125px;
    grid-template-areas:
        "date event type club score opponent result";
    align-items: center;
    gap: 17px;
    width: 100%;
    min-height: 118px;
    padding: 18px 22px;
    overflow: hidden;
    color: var(--archive-white);
    border: 1px solid var(--archive-border);
    background:
        linear-gradient(
            100deg,
            rgba(7, 24, 34, 0.96),
            rgba(3, 12, 18, 0.98)
        );
    clip-path: polygon(
        11px 0,
        100% 0,
        100% calc(100% - 11px),
        calc(100% - 11px) 100%,
        0 100%,
        0 11px
    );
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.bpe-match-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    opacity: 0;
    background: var(--archive-blue);
    box-shadow: 0 0 18px rgba(0, 159, 227, 0.7);
    transition: opacity 0.25s ease;
}

.bpe-match-card:hover {
    border-color: rgba(0, 159, 227, 0.62);
    background:
        linear-gradient(
            100deg,
            rgba(7, 31, 45, 0.98),
            rgba(3, 14, 21, 0.99)
        );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.bpe-match-card:hover::before {
    opacity: 1;
}

/* Dátum */

.bpe-match-card__date {
    grid-area: date;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bpe-match-card__date strong {
    color: #dce5ea;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.bpe-match-card__date span {
    color: var(--archive-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
}

/* Verseny */

.bpe-match-card__event {
    grid-area: event;
    min-width: 0;
    padding-left: 17px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.bpe-match-card__event strong {
    display: block;
    color: #dbe4e8;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.bpe-match-card__event span {
    display: block;
    margin-top: 5px;
    color: var(--archive-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.35;
}

/* COMP / Academy */

.bpe-match-card__team-type {
    grid-area: type;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 31px;
    padding: 7px 10px;
    color: var(--archive-blue-light);
    border: 1px solid rgba(0, 159, 227, 0.55);
    background: rgba(0, 159, 227, 0.06);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Budapest Eagles */

.bpe-match-card__club {
    grid-area: club;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.bpe-match-card__club img {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    object-fit: contain;
}

.bpe-match-card__club > strong {
    min-width: 0;
    color: var(--archive-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.bpe-match-card__club small {
    display: block;
    margin-top: 5px;
    color: var(--archive-blue-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Pontszám */

.bpe-match-card__score {
    grid-area: score;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.bpe-match-card__score strong {
    color: var(--archive-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.bpe-match-card__score span {
    color: var(--archive-blue);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 21px;
    font-weight: 700;
}

/* Ellenfél */

.bpe-match-card__opponent {
    grid-area: opponent;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.bpe-match-card__opponent-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
}

.bpe-match-card__opponent-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bpe-match-card__placeholder {
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #8ea0aa;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.035);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 18px;
    font-weight: 700;
    clip-path: polygon(
        50% 0,
        100% 15%,
        88% 80%,
        50% 100%,
        12% 80%,
        0 15%
    );
}

.bpe-match-card__opponent > strong {
    min-width: 0;
    color: #e5ebee;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Eredmény */

.bpe-match-card__result {
    grid-area: result;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.bpe-match-card__status {
    min-width: 66px;
    padding: 7px 10px;
    border: 1px solid;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.07em;
    text-align: center;
    clip-path: polygon(
        7px 0,
        100% 0,
        100% calc(100% - 7px),
        calc(100% - 7px) 100%,
        0 100%,
        0 7px
    );
}

.bpe-match-card__status--win {
    color: var(--archive-blue-light);
    border-color: var(--archive-blue);
    background: rgba(0, 159, 227, 0.07);
}

.bpe-match-card__status--loss {
    color: #ff626b;
    border-color: rgba(255, 75, 87, 0.75);
    background: rgba(255, 75, 87, 0.05);
}

.bpe-match-card__status--draw {
    color: #d2dce1;
    border-color: rgba(210, 220, 225, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.bpe-match-card__result small {
    color: var(--archive-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.4;
}

.bpe-match-card__result a {
    color: var(--archive-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.bpe-match-card__result a span {
    margin-left: 4px;
    color: var(--archive-blue);
}

.bpe-match-card__result a:hover {
    color: var(--archive-blue-light);
}

/* ==================================================
   TOVÁBBI MÉRKŐZÉSEK
================================================== */

.bpe-matches-archive__actions {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.bpe-matches-load-more {
    position: relative;
    min-width: 245px;
    min-height: 52px;
    padding: 14px 28px;
    cursor: pointer;
    color: var(--archive-white);
    border: 1px solid var(--archive-blue);
    border-radius: 0;
    background: rgba(0, 159, 227, 0.04);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.bpe-matches-load-more:hover {
    color: #ffffff;
    background: var(--archive-blue);
    box-shadow: 0 0 30px rgba(0, 159, 227, 0.25);
}

.bpe-matches-load-more[hidden] {
    display: none;
}

.bpe-matches-archive.is-loading .bpe-matches-load-more {
    cursor: wait;
    opacity: 0.5;
}

/* Üres kategória */

.bpe-matches-empty {
    margin: 0;
    padding: 50px 25px;
    color: var(--archive-muted);
    border: 1px solid var(--archive-border);
    background: rgba(7, 19, 28, 0.7);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    text-align: center;
}

/* ==================================================
   KISEBB ASZTAL / TABLET
================================================== */

@media (max-width: 1180px) {
    .bpe-match-card {
        grid-template-columns: 115px minmax(0, 1fr) 90px;
        grid-template-areas:
            "date event type"
            "club score opponent"
            "result result result";
        row-gap: 18px;
        padding: 20px;
    }

    .bpe-match-card__event {
        padding-left: 0;
        border-left: 0;
    }

    .bpe-match-card__result {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
        padding: 14px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 0;
        text-align: left;
    }

    .bpe-match-card__result small {
        margin-right: auto;
    }
}

/* ==================================================
   MOBIL
================================================== */

@media (max-width: 767px) {
    .bpe-matches-archive {
        padding: 75px 18px;
    }

    .bpe-matches-archive__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin-bottom: 30px;
    }

    .bpe-matches-archive__header h2 {
        font-size: clamp(39px, 11vw, 55px);
    }

    .bpe-matches-archive__count {
        margin: 0;
    }

    .bpe-matches-tabs {
        margin-bottom: 22px;
    }

    .bpe-matches-tabs__button {
        min-height: 51px;
        padding-inline: 8px;
        font-size: 15px;
    }

    .bpe-match-card {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);
        grid-template-areas:
            "date date type"
            "event event event"
            "club score opponent"
            "result result result";
        gap: 15px 10px;
        min-height: 0;
        padding: 18px 14px;
    }

    .bpe-match-card__date {
        flex-direction: row;
        align-items: center;
        gap: 9px;
    }

    .bpe-match-card__date strong {
        font-size: 15px;
    }

    .bpe-match-card__event {
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .bpe-match-card__event strong {
        font-size: 14px;
    }

    .bpe-match-card__team-type {
        min-width: 69px;
        min-height: 28px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .bpe-match-card__club,
    .bpe-match-card__opponent {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .bpe-match-card__club img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .bpe-match-card__opponent-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .bpe-match-card__club > strong,
    .bpe-match-card__opponent > strong {
        font-size: 13px;
    }

    .bpe-match-card__club small {
        font-size: 9px;
    }

    .bpe-match-card__score {
        align-self: center;
        gap: 5px;
    }

    .bpe-match-card__score strong {
        font-size: 28px;
    }

    .bpe-match-card__score span {
        font-size: 18px;
    }

    .bpe-match-card__result {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 15px;
    }

    .bpe-match-card__result small {
        order: 2;
        flex: 1;
        margin: 0;
    }

    .bpe-match-card__result a {
        order: 3;
        margin-left: auto;
    }

    .bpe-match-card__status {
        order: 1;
    }

    .bpe-matches-load-more {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .bpe-matches-archive {
        padding-inline: 14px;
    }

    .bpe-matches-tabs__button {
        font-size: 13px;
    }

    .bpe-match-card__club img {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .bpe-match-card__opponent-logo {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .bpe-match-card__score strong {
        font-size: 25px;
    }
}

/* Váltófülek közötti térköz */

.bpe-matches-tabs {
    gap: 6px;
    padding: 5px;
}

.bpe-matches-tabs__button {
    border: 1px solid rgba(120, 148, 162, 0.22);
}

.bpe-matches-tabs__button:last-child {
    border-right: 1px solid rgba(120, 148, 162, 0.22);
}

.bpe-matches-tabs__button.is-active {
    border-color: rgba(0, 159, 227, 0.6);
}

@media (max-width: 767px) {
    .bpe-matches-tabs {
        gap: 3px;
        padding: 4px;
    }
}

/* Dinamikus HERO mérkőzéslogók */

.bpe-latest-match__logo img {
    display: block;
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.bpe-latest-match__logo--opponent img {
    width: 82%;
    height: 82%;
}

.bpe-latest-match__status--draw {
    color: #d6e0e5;
    border-color: rgba(214, 224, 229, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.bpe-latest-match__empty {
    width: 100%;
    margin: 0;
    padding: 35px 25px;
    color: #91a2ad;
    border: 1px solid rgba(0, 159, 227, 0.32);
    background: rgba(5, 18, 27, 0.92);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    text-align: center;
}

/* ==================================================
   BP EAGLES – MÉRKŐZÉSEK CTA
================================================== */

.bpe-matches-cta {
    --cta-blue: #009fe3;
    --cta-blue-light: #25bbff;
    --cta-white: #ffffff;
    --cta-muted: #9aabb5;

    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--cta-white);
    border-top: 1px solid rgba(0, 159, 227, 0.28);
    border-bottom: 1px solid rgba(0, 159, 227, 0.28);
    background:
        radial-gradient(
            circle at 16% 50%,
            rgba(0, 159, 227, 0.18),
            transparent 25%
        ),
        linear-gradient(
            105deg,
            #061723 0%,
            #030b11 44%,
            #02070b 100%
        );
}

.bpe-matches-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(
            120deg,
            transparent 0 20%,
            rgba(0, 159, 227, 0.11) 20% 20.15%,
            transparent 20.15% 100%
        ),
        linear-gradient(
            rgba(0, 159, 227, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 159, 227, 0.07) 1px,
            transparent 1px
        );
    background-size:
        100% 100%,
        45px 45px,
        45px 45px;
}

.bpe-matches-cta::after {
    content: "";
    position: absolute;
    top: -150px;
    left: 12%;
    width: 240px;
    height: 400px;
    pointer-events: none;
    border: 1px solid rgba(0, 159, 227, 0.18);
    transform: rotate(34deg);
}

/* Belső tartalom */

.bpe-matches-cta__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1280px);
    max-width: 1280px;
    min-width: 0;
    margin-inline: auto;
    padding: 42px 32px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

/* Sarokdíszítések */

.bpe-matches-cta__inner::before,
.bpe-matches-cta__inner::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.bpe-matches-cta__inner::before {
    top: 18px;
    left: 20px;
    border-top: 2px solid var(--cta-blue);
    border-left: 2px solid var(--cta-blue);
}

.bpe-matches-cta__inner::after {
    right: 20px;
    bottom: 18px;
    border-right: 2px solid var(--cta-blue);
    border-bottom: 2px solid var(--cta-blue);
}

/* Logó */

.bpe-matches-cta__logo {
    width: 150px;
    max-width: 150px;
    flex: 0 0 150px;
    opacity: 0.75;
}

.bpe-matches-cta__logo .elementor-widget-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpe-matches-cta__logo img {
    display: block;
    width: 125px;
    max-height: 120px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 22px rgba(0, 159, 227, 0.2))
        saturate(0.9);
}

/* Szöveges tartalom */

.bpe-matches-cta__content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.bpe-matches-cta__eyebrow {
    position: relative;
    margin: 0 0 10px;
    padding-left: 29px;
    color: var(--cta-blue-light);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bpe-matches-cta__eyebrow p {
    margin: 0;
}

.bpe-matches-cta__eyebrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--cta-blue);
    transform: translateY(-50%);
}

.bpe-matches-cta__title {
    margin: 0;
}

.bpe-matches-cta__title .elementor-heading-title {
    margin: 0;
    max-width: 580px;
    color: var(--cta-white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.bpe-matches-cta__description {
    margin-top: 12px;
    max-width: 620px;
    color: var(--cta-muted);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.bpe-matches-cta__description p {
    margin: 0;
}

/* Gomb */

.bpe-matches-cta__button {
    flex: 0 0 auto;
}

.bpe-matches-cta__button .elementor-button {
    min-width: 210px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 15px 27px;

    color: var(--cta-blue-light);
    border: 1px solid var(--cta-blue);
    border-radius: 0;
    background: rgba(0, 159, 227, 0.04);

    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.bpe-matches-cta__button .elementor-button:hover {
    color: #ffffff;
    background: var(--cta-blue);
    box-shadow: 0 0 32px rgba(0, 159, 227, 0.28);
    transform: translateY(-2px);
}

.bpe-matches-cta__button .elementor-button-icon {
    color: inherit;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {
    .bpe-matches-cta__inner {
        gap: 28px;
        padding: 40px 30px;
    }

    .bpe-matches-cta__logo {
        width: 105px;
        max-width: 105px;
        flex-basis: 105px;
    }

    .bpe-matches-cta__logo img {
        width: 95px;
        max-height: 95px;
    }

    .bpe-matches-cta__title .elementor-heading-title {
        font-size: clamp(29px, 4vw, 39px);
    }

    .bpe-matches-cta__button .elementor-button {
        min-width: 175px;
        padding-inline: 20px;
    }
}

/* ==================================================
   MOBIL
================================================== */

@media (max-width: 767px) {
    .bpe-matches-cta__inner {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 50px 25px;
        text-align: center;
    }

    .bpe-matches-cta__logo {
        width: 90px;
        max-width: 90px;
        flex: 0 0 auto;
    }

    .bpe-matches-cta__logo img {
        width: 82px;
        max-height: 82px;
    }

    .bpe-matches-cta__content {
        align-items: center;
    }

    .bpe-matches-cta__eyebrow {
        padding-left: 0;
        font-size: 12px;
    }

    .bpe-matches-cta__eyebrow::before {
        display: none;
    }

    .bpe-matches-cta__title .elementor-heading-title {
        max-width: 500px;
        font-size: clamp(31px, 9vw, 42px);
    }

    .bpe-matches-cta__description {
        max-width: 500px;
        font-size: 13px;
    }

    .bpe-matches-cta__button {
        width: 100%;
        max-width: 330px;
    }

    .bpe-matches-cta__button .elementor-button {
        width: 100%;
        min-width: 0;
    }
}

/* Elementor flexbeállításának felülírása */

.bpe-matches-cta__inner.e-con {
    --display: flex;
    --flex-direction: row;
    --justify-content: space-between;
    --align-items: center;
    --flex-wrap: nowrap;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.bpe-matches-cta__inner > .elementor-element {
    min-width: 0;
}

.bpe-matches-cta__logo {
    width: 150px !important;
    max-width: 150px !important;
    flex: 0 0 150px !important;
}

.bpe-matches-cta__content {
    width: auto !important;
    flex: 1 1 auto !important;
}

.bpe-matches-cta__button {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 0 0 auto !important;
}

@media (max-width: 767px) {
    .bpe-matches-cta__inner.e-con {
        --flex-direction: column;
        --align-items: center;

        flex-direction: column !important;
        align-items: center !important;
    }

    .bpe-matches-cta__logo {
        width: 90px !important;
        max-width: 90px !important;
        flex: 0 0 auto !important;
    }

    .bpe-matches-cta__content {
        width: 100% !important;
    }

    .bpe-matches-cta__button {
        width: 100% !important;
        max-width: 330px !important;
        margin: 0 !important;
    }
}

/* CTA belső térköz és gombpozíció javítása */

.bpe-matches-cta__inner.e-con {
    width: min(calc(100% - 48px), 1280px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 46px 38px 52px !important;
    box-sizing: border-box;
}

.bpe-matches-cta__button {
    align-self: center !important;
    margin: 0 16px 0 auto !important;
}

@media (max-width: 1024px) {
    .bpe-matches-cta__inner.e-con {
        width: calc(100% - 36px) !important;
        padding: 42px 25px 48px !important;
    }

    .bpe-matches-cta__button {
        margin-right: 8px !important;
    }
}

@media (max-width: 767px) {
    .bpe-matches-cta__inner.e-con {
        width: calc(100% - 28px) !important;
        padding: 45px 20px 48px !important;
    }

    .bpe-matches-cta__button {
        margin: 0 auto !important;
    }
}