/* =========================================================
   HERO
   ========================================================= */

.records-hero {
    position: relative;
    overflow: hidden;

    padding: 4.5rem 0 3.5rem;

    color: var(--color-white);

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(223, 77, 40, .24),
            transparent 30%
        ),
        radial-gradient(
            circle at 12% 85%,
            rgba(229, 182, 47, .13),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--color-blue-deep),
            var(--color-blue-dark)
        );
}

.records-hero::after {
    content: "🏆";

    position: absolute;
    right: 5%;
    bottom: -30%;

    opacity: .05;

    font-size: clamp(8rem, 18vw, 14rem);

    pointer-events: none;
}

.records-hero__content {
    position: relative;
    z-index: 1;

    max-width: 800px;
}

.records-hero .eyebrow {
    width: fit-content;

    padding: .28rem .65rem;

    color: var(--color-blue-deep);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--color-gold-light),
            var(--color-gold)
        );
}

.records-hero h1 {
    margin-bottom: 1rem;

    color: var(--color-white);

    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.records-hero__intro {
    max-width: 700px;

    margin-bottom: 0;

    color: #dce6f0;

    font-size: clamp(1rem, 2vw, 1.2rem);
}


/* =========================================================
   RECORD OVERZICHT
   ========================================================= */

.records-overview {
    padding: 1.5rem 0;

    background: #f7f9fb;

    border-bottom: 1px solid #e6ebf0;
}

.records-overview__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: .8rem;
}

.records-overview__card {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: .15rem;

    padding: .9rem;

    text-align: center;

    border: 1px solid #e2e8ee;
    border-radius: 12px;

    background: var(--color-white);

    box-shadow:
        0 6px 18px rgba(6, 30, 56, .06);
}

.records-overview__icon {
    font-size: 1.35rem;
}

.records-overview__label {
    color: #6d7987;

    font-size: .7rem;
    font-weight: 800;
}

.records-overview__card strong {
    color: var(--color-red-orange);

    font-size: 1.6rem;
    line-height: 1.1;
}


/* =========================================================
   RECORD NAVIGATIE
   ========================================================= */

.records-navigation {
    position: sticky;
    top: 84px;

    z-index: 80;

    padding: .65rem 0;

    background: rgba(255, 255, 255, .97);

    border-bottom: 1px solid #e4e9ef;

    box-shadow:
        0 5px 16px rgba(6, 30, 56, .06);

    backdrop-filter: blur(10px);
}

.records-navigation__links {
    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: .4rem;
}

.records-navigation__links a {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: .25rem;

    padding: .4rem .45rem;

    color: var(--color-blue-deep);

    border: 1px solid #e2e7ed;
    border-radius: 8px;

    background: #f8fafc;

    text-align: center;
    text-decoration: none;

    font-size: .66rem;
    font-weight: 850;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.records-navigation__links a:hover {
    transform: translateY(-1px);

    color: var(--color-white);

    background: var(--color-red-orange);
}


/* =========================================================
   ALGEMENE RECORD SECTIE
   ========================================================= */

.record-section {
    scroll-margin-top: 160px;

    background: var(--color-white);
}

.record-section--alt {
    background: #f7f9fb;
}

.record-section__heading {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: .8rem;

    align-items: flex-start;

    max-width: 800px;

    margin-bottom: 1.5rem;
}

.record-section__icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--color-gold-light),
            var(--color-gold)
        );

    font-size: 1.3rem;
}

.record-section__heading h2 {
    margin-bottom: .4rem;

    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.record-section__heading p:last-child {
    max-width: 700px;

    margin-bottom: 0;

    color: #687584;

    font-size: .88rem;
}

.record-section__heading--light h2 {
    color: var(--color-gold-light);
}

.record-section__heading--light p:last-child {
    color: #b8c6d4;
}


/* =========================================================
   RECORD SLIDER
   ========================================================= */

.record-slider {
    position: relative;
}

.record-slider__track {
    display: flex;

    gap: 1rem;

    overflow-x: auto;
    overflow-y: hidden;

    padding: .35rem 3rem 1rem;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(22, 63, 115, .30)
        transparent;
}

.record-slider__track::-webkit-scrollbar {
    height: 7px;
}

.record-slider__track::-webkit-scrollbar-track {
    background: transparent;
}

.record-slider__track::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(22, 63, 115, .28);
}

.record-slider--dark
.record-slider__track {
    scrollbar-color:
        rgba(241, 210, 122, .30)
        transparent;
}


/* =========================================================
   SLIDER PIJLEN
   ========================================================= */

.record-slider__arrow {
    position: absolute;

    top: 50%;

    z-index: 20;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    transform: translateY(-50%);

    color: var(--color-blue-deep);

    border: 1px solid rgba(13, 61, 107, .12);
    border-radius: 50%;

    background: rgba(255, 255, 255, .97);

    box-shadow:
        0 6px 20px rgba(6, 30, 56, .15);

    font-size: 1.6rem;
    line-height: 1;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease,
        opacity .18s ease;
}

.record-slider__arrow:hover {
    color: var(--color-white);

    background: var(--color-red-orange);
}

.record-slider__arrow--left {
    left: 0;
}

.record-slider__arrow--right {
    right: 0;
}

.record-slider--dark
.record-slider__arrow {
    color: var(--color-blue-deep);

    background: var(--color-gold-light);

    border-color:
        rgba(241, 210, 122, .35);
}

.record-slider--dark
.record-slider__arrow:hover {
    color: var(--color-white);

    background: var(--color-red-orange);
}

.record-slider__arrow.is-disabled,
.record-slider__arrow:disabled {
    opacity: .25;

    cursor: default;

    pointer-events: none;
}


/* =========================================================
   RECORD KAARTEN
   ========================================================= */

.record-proof-card {
    flex: 0 0 285px;

    min-width: 285px;

    overflow: hidden;

    scroll-snap-align: start;

    border: 1px solid #e3e8ee;
    border-radius: 15px;

    background: var(--color-white);

    box-shadow:
        0 8px 24px rgba(6, 30, 56, .08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.record-proof-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 32px rgba(6, 30, 56, .12);
}


/* =========================================================
   SCREENSHOT
   ========================================================= */

.record-proof-card__image {
    position: relative;

    width: 100%;
    height: 320px;

    display: block;

    padding: 0;

    overflow: hidden;

    border: 0;

    background: #050d0c;

    cursor: pointer;
}

.record-proof-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    background: #050d0c;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.record-proof-card:hover
.record-proof-card__image img {
    transform: scale(1.015);

    filter: brightness(.88);
}


/* =========================================================
   SCREENSHOT OVERLAY
   ========================================================= */

.record-proof-card__zoom {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        scale(.95);

    padding: .42rem .7rem;

    opacity: 0;

    color: var(--color-white);

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;

    background: rgba(6, 20, 38, .88);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .2);

    font-size: .65rem;
    font-weight: 800;

    white-space: nowrap;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.record-proof-card__image:hover
.record-proof-card__zoom {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   RECORD CONTENT
   ========================================================= */

.record-proof-card__content {
    padding: .85rem .9rem 1rem;
}

.record-proof-card__category {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    margin-bottom: .45rem;

    padding: .2rem .5rem;

    color: var(--color-blue-deep);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--color-gold-light),
            var(--color-gold)
        );

    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.record-proof-card__category--elite {
    color: var(--color-white);

    background:
        linear-gradient(
            135deg,
            #7456e4,
            #4d37a8
        );
}

.record-proof-card__content h3 {
    margin-bottom: .3rem;

    color: var(--color-red-orange);

    font-size: .9rem;
}

.record-proof-card__value {
    margin-bottom: .2rem;

    color: var(--color-blue-deep);

    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.05;
}

.record-proof-card__player {
    margin-bottom: .2rem;

    color: var(--color-blue-dark);

    font-size: .76rem;
    font-weight: 900;
}

.record-proof-card__date {
    color: #929ba7;

    font-size: .64rem;
}


/* =========================================================
   TEAMRECORDS
   ========================================================= */

.record-section--team {
    position: relative;

    overflow: hidden;

    color: var(--color-white);

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(229, 182, 47, .12),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(223, 77, 40, .14),
            transparent 28%
        ),
        var(--color-blue-deep);
}

.team-record-card {
    flex: 0 0 285px;

    min-width: 285px;
    min-height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: .2rem;

    padding: 1rem;

    scroll-snap-align: start;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;

    background: rgba(255, 255, 255, .055);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, .08);
}

.team-record-card__icon {
    font-size: 1.6rem;
}

.team-record-card__label {
    color: #bac7d4;

    font-size: .72rem;
    font-weight: 800;
}

.team-record-card strong {
    color: var(--color-gold-light);

    font-size: 2rem;
    line-height: 1;
}


/* =========================================================
   SPELERSRECORDS
   ========================================================= */

.player-record-card {
    flex: 0 0 285px;

    min-width: 285px;
    min-height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: .2rem;

    padding: 1rem;

    scroll-snap-align: start;

    text-align: center;

    border: 1px solid #e3e8ee;
    border-radius: 14px;

    background: var(--color-white);

    box-shadow:
        0 7px 20px rgba(6, 30, 56, .07);
}

.player-record-card__icon {
    font-size: 1.55rem;
}

.player-record-card__title {
    color: #687584;

    font-size: .72rem;
    font-weight: 800;
}

.player-record-card__value {
    color: var(--color-red-orange);

    font-size: 1.25rem;
}

.player-record-card__player {
    color: var(--color-blue-deep);

    font-size: .76rem;
    font-weight: 900;
}


/* =========================================================
   MILJONAIRSCLUB
   ========================================================= */

.record-section--million {
    position: relative;

    overflow: hidden;

    color: var(--color-white);

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(229, 182, 47, .14),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #061426,
            #0a2949
        );
}

.million-card {
    flex: 0 0 285px;

    min-width: 285px;

    overflow: hidden;

    scroll-snap-align: start;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;

    background: rgba(255, 255, 255, .055);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .1);
}

.million-card__image {
    width: 100%;
    height: 320px;

    display: block;

    padding: 0;

    overflow: hidden;

    border: 0;

    background: #050d0c;

    cursor: pointer;
}

.million-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    background: #050d0c;
}

.million-card > strong {
    display: block;

    margin-top: .8rem;

    color: var(--color-white);

    font-size: .9rem;
}

.million-card__score {
    display: block;

    margin-top: .15rem;

    color: var(--color-gold-light);

    font-size: 1.2rem;
    font-weight: 900;
}

.million-card__date {
    display: block;

    margin: .15rem 0 .8rem;

    color: var(--color-muted);

    font-size: .64rem;
}


/* =========================================================
   INSTUREN
   ========================================================= */

.submit-record {
    background: #f7f9fb;
}

.submit-record__box {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 1.5rem;

    padding: 1.8rem;

    border: 1px solid #e3e8ee;
    border-radius: var(--radius-lg);

    background: var(--color-white);

    box-shadow:
        0 10px 28px rgba(6, 30, 56, .07);
}

.submit-record__box h2 {
    margin-bottom: .45rem;
}

.submit-record__box p:last-child {
    max-width: 700px;

    margin-bottom: 0;

    color: #687584;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.record-lightbox {
    position: fixed;
    inset: 0;

    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    visibility: hidden;
    opacity: 0;

    background: rgba(0, 8, 18, .94);

    backdrop-filter: blur(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.record-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.record-lightbox__content {
    width: min(1200px, 100%);
    max-height: calc(100vh - 4rem);

    display: flex;
    align-items: center;
    justify-content: center;
}

.record-lightbox__content img {
    max-width: 100%;
    max-height: calc(100vh - 4rem);

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .55);
}

.record-lightbox__close {
    position: fixed;

    top: 20px;
    right: 24px;

    z-index: 5100;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    padding: 0;

    color: var(--color-white);

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;

    background: rgba(255,255,255,.08);

    font-size: 1.8rem;

    cursor: pointer;
}


/* =========================================================
   TERUG NAAR BOVEN
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 900;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    color: var(--color-blue-deep);

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--color-gold-light),
            var(--color-gold)
        );

    box-shadow:
        0 8px 22px rgba(6, 30, 56, .22);

    text-decoration: none;

    font-size: 1.2rem;
    font-weight: 900;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}


/* =========================================================
   MIDDEL GROOT SCHERM
   ========================================================= */

@media (max-width: 1150px) {

    .records-navigation__links {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .record-proof-card,
    .team-record-card,
    .player-record-card,
    .million-card {
        flex-basis: 270px;
        min-width: 270px;
    }

    .record-proof-card__image,
    .million-card__image {
        height: 300px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .records-overview__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .records-navigation {
        top: 72px;
    }

    .records-navigation__links {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .record-proof-card,
    .team-record-card,
    .player-record-card,
    .million-card {
        flex-basis: 260px;
        min-width: 260px;
    }

    .record-proof-card__image,
    .million-card__image {
        height: 290px;
    }

    .submit-record__box {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 600px) {

    .records-hero {
        padding: 3.5rem 0 3rem;
    }

    .records-navigation {
        position: static;
    }

    .records-navigation__links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .record-section {
        scroll-margin-top: 90px;
    }

    .record-section__heading {
        grid-template-columns: 1fr;

        gap: .55rem;
    }

    .record-slider__track {
        gap: .8rem;

        padding:
            .25rem
            .25rem
            .75rem;
    }

    .record-slider__arrow {
        display: none;
    }

    .record-proof-card,
    .million-card {
        flex-basis: 82%;

        min-width: 255px;
    }

    .team-record-card,
    .player-record-card {
        flex-basis: 78%;

        min-width: 235px;
    }

    .record-proof-card__image,
    .million-card__image {
        height: 320px;
    }

    .record-proof-card__zoom {
        opacity: 1;

        transform:
            translate(-50%, -50%);
    }

    .submit-record__box {
        padding: 1.4rem;
    }

    .submit-record__box .button {
        width: 100%;
    }

    .record-lightbox {
        padding: .75rem;
    }

    .record-lightbox__content img {
        max-height: calc(100vh - 1.5rem);
    }

    .record-lightbox__close {
        top: 10px;
        right: 10px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;

        width: 43px;
        height: 43px;
    }
}


/* =========================================================
   KLEINE MOBIELE SCHERMEN
   ========================================================= */

@media (max-width: 400px) {

    .records-overview__grid {
        grid-template-columns: 1fr;
    }

    .records-navigation__links {
        grid-template-columns: 1fr;
    }

    .record-proof-card,
    .million-card {
        flex-basis: 88%;

        min-width: 245px;
    }

    .team-record-card,
    .player-record-card {
        flex-basis: 86%;

        min-width: 230px;
    }

    .record-proof-card__image,
    .million-card__image {
        height: 305px;
    }
}