/* =========================================================
 * TCG Drachten gedeelde componenten
 * - notificatiebalk
 * - mobiele/desktop footer
 * ========================================================= */

:root {
    --tcgd-pink: #c01d66;
    --tcgd-pink-light: #ea73a8;
    --tcgd-footer-border: rgba(255, 255, 255, .12);
    --tcgd-footer-muted: rgba(255, 255, 255, .68);
}

[hidden] {
    display: none !important;
}

#live-events {
    scroll-margin-top: 1rem;
}

/* -------------------------
 * Notificatiebalk
 * ------------------------- */
.site-notification-bar {
    position: relative;
    z-index: 1080;
    width: 100%;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.site-notification-bar--info {
    background: linear-gradient(110deg, #125a86, #183b68);
}

.site-notification-bar--success {
    background: linear-gradient(110deg, #18794e, #0c5135);
}

.site-notification-bar--warning {
    background: linear-gradient(110deg, #c55b12, #8d3510);
}

.site-notification-bar--danger {
    background: linear-gradient(110deg, #b42332, #721c2a);
}

.site-notification-bar--event {
    background: linear-gradient(110deg, #f05a28, #c01d66 52%, #542067);
    background-size: 180% 180%;
    animation: tcgd-notification-gradient 8s ease infinite;
}

.site-notification-bar .site-notification-bar__inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.site-notification-bar__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 12px;
}

.site-notification-bar__icon i {
    color: #fff;
    font-size: 1.15rem;
}

.site-notification-bar__content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    gap: .55rem;
    line-height: 1.4;
}

.site-notification-bar__content strong {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 800;
}

.site-notification-bar__content span {
    color: rgba(255, 255, 255, .94);
}

.site-notification-bar__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .85rem;
    color: #161616;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.site-notification-bar__link i {
    color: currentColor;
}

.site-notification-bar__link:hover,
.site-notification-bar__link:focus-visible {
    color: #161616;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .22);
}

.site-notification-bar__close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    transition: background .18s ease, transform .18s ease;
}

.site-notification-bar__close i {
    color: #fff;
}

.site-notification-bar__close:hover,
.site-notification-bar__close:focus-visible {
    background: rgba(0, 0, 0, .28);
    transform: rotate(5deg);
}

@media (max-width: 767.98px) {
    .site-notification-bar .site-notification-bar__inner {
        min-height: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .65rem;
        padding-top: .72rem;
        padding-bottom: .72rem;
    }

    .site-notification-bar__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .site-notification-bar__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .08rem;
        font-size: .9rem;
    }

    .site-notification-bar__content strong {
        font-size: .92rem;
    }

    .site-notification-bar__link {
        grid-column: 2 / 4;
        justify-self: start;
        padding: .45rem .7rem;
        font-size: .84rem;
    }

    .site-notification-bar__close {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

/* -------------------------
 * Footer basis
 * ------------------------- */
footer.site-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background:
        radial-gradient(circle at 14% 0%, rgba(192, 29, 102, .18), transparent 34%),
        radial-gradient(circle at 90% 25%, rgba(80, 77, 119, .2), transparent 30%),
        #08080b;
    border-top: 1px solid rgba(234, 115, 168, .2);
}

footer.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c01d66 25%, #ea73a8 50%, #504d77 75%, transparent);
}

.site-footer__mobile {
    display: none !important;
}

footer.site-footer .site-footer__container {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(440px, 1.8fr) minmax(260px, .95fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    padding: 64px 15px 42px;
}

footer.site-footer .site-footer__brand,
footer.site-footer .site-footer__navigation,
footer.site-footer .site-footer__visit {
    width: auto;
    max-width: none;
    min-width: 0;
}

.site-footer__brand {
    align-self: start;
}

footer.site-footer .site-footer__logo {
    width: fit-content;
    max-width: 260px;
    display: block;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
}

footer.site-footer .site-footer__logo img {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0;
    object-fit: contain;
}

.site-footer__intro {
    max-width: 300px;
    margin: 1rem 0 1.25rem;
    color: var(--tcgd-footer-muted);
    font-size: .94rem;
    line-height: 1.7;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.site-footer__socials a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.site-footer__socials a i {
    color: #fff;
    font-size: 1.15rem;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
    background: #c01d66;
    border-color: #ea73a8;
    transform: translateY(-2px);
}

.site-footer__navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
    align-items: start;
}

.site-footer__section {
    min-width: 0;
}

.site-footer__section summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    color: #fff;
    cursor: default;
    font-size: .95rem;
    font-weight: 800;
}

.site-footer__section summary::-webkit-details-marker {
    display: none;
}

.site-footer__section summary > span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.site-footer__section summary > span i {
    color: #ea73a8;
}

.site-footer__chevron {
    display: none;
}

footer.site-footer .site-footer__links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.site-footer .site-footer__links li {
    display: block;
    margin: 0;
}

footer.site-footer .site-footer__links a {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .45rem .55rem;
    color: rgba(255, 255, 255, .72);
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.35;
    transition: color .18s ease, background .18s ease, padding-left .18s ease;
}

footer.site-footer .site-footer__links a i {
    color: #ea73a8;
    font-size: .75rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .18s ease, transform .18s ease;
}

footer.site-footer .site-footer__links a:hover,
footer.site-footer .site-footer__links a:focus-visible,
footer.site-footer .site-footer__links a.active {
    color: #fff;
    background: rgba(255, 255, 255, .065);
    padding-left: .75rem;
}

footer.site-footer .site-footer__links a:hover i,
footer.site-footer .site-footer__links a:focus-visible i,
footer.site-footer .site-footer__links a.active i {
    opacity: 1;
    transform: translateX(0);
}

.site-footer__visit h2 {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.site-footer__visit h2 i {
    color: #ea73a8;
}

.site-footer__address-grid {
    display: grid;
    gap: .8rem;
}

footer.site-footer .site-footer__address-grid address {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .18rem;
    margin: 0;
    padding: .9rem 1rem;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    font-style: normal;
}

.site-footer__address-label {
    margin-bottom: .25rem;
    color: #ea73a8;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

footer.site-footer .site-footer__address-grid address strong {
    color: #fff;
}

footer.site-footer .site-footer__address-grid address a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    align-self: flex-start;
    margin-top: .45rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

footer.site-footer .site-footer__address-grid address a i {
    color: #ea73a8;
}

footer.site-footer .site-footer__games {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.05rem 15px;
    border-top: 1px solid var(--tcgd-footer-border);
    border-bottom: 1px solid var(--tcgd-footer-border);
}

.site-footer__games-copy {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-footer__games-copy strong {
    color: #fff;
    font-size: .88rem;
}

.site-footer__games-copy span {
    margin-top: .15rem;
    color: var(--tcgd-footer-muted);
    font-size: .75rem;
}

footer.site-footer .site-footer__game-logos {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.site-footer .site-footer__game-logos li {
    display: flex;
    margin: 0;
}

footer.site-footer .site-footer__game-logos a {
    min-width: 94px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .8rem;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 10px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

footer.site-footer .site-footer__game-logos a:hover,
footer.site-footer .site-footer__game-logos a:focus-visible {
    background: rgba(192, 29, 102, .18);
    border-color: rgba(234, 115, 168, .45);
    transform: translateY(-2px);
}

footer.site-footer .site-footer__game-logos img {
    width: auto;
    max-width: 108px;
    height: auto;
    max-height: 34px;
    margin: 0;
    object-fit: contain;
}

footer.site-footer .site-footer__bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 18px 15px 22px;
    color: rgba(255, 255, 255, .52);
    font-size: .78rem;
    text-align: center;
}

.site-footer__bottom-separator {
    color: #c01d66;
}

@media (min-width: 768px) {
    footer.site-footer .site-footer__mobile {
        display: none !important;
    }

    footer.site-footer .site-footer__container {
        display: grid !important;
    }

    /* De desktopfooter is informatief en blijft bewust volledig uitgeklapt. */
    footer.site-footer .site-footer__section > summary {
        pointer-events: none;
        user-select: none;
    }

    footer.site-footer .site-footer__section > .site-footer__section-content,
    footer.site-footer .site-footer__section:not([open]) > .site-footer__section-content {
        display: block !important;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    footer.site-footer .site-footer__container {
        grid-template-columns: minmax(220px, .8fr) minmax(0, 1.55fr);
    }

    .site-footer__visit {
        grid-column: 1 / -1;
    }

    .site-footer__address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* -------------------------
 * Compacte mobiele footer
 * ------------------------- */
@media (max-width: 767.98px) {
    footer.site-footer {
        background:
            linear-gradient(180deg, rgba(192, 29, 102, .07), transparent 170px),
            #08080b;
    }

    footer.site-footer::before {
        height: 2px;
        background: linear-gradient(90deg, #504d77, #c01d66 52%, #ea73a8);
    }

    footer.site-footer .site-footer__container {
        display: none !important;
    }

    footer.site-footer .site-footer__mobile {
        display: block !important;
        padding: 30px 16px 22px;
    }

    .site-footer-mobile__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .site-footer-mobile__logo {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    .site-footer-mobile__logo img {
        width: 148px;
        max-width: 42vw;
        height: auto;
        display: block;
        margin: 0;
        object-fit: contain;
    }

    .site-footer-mobile__socials {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .4rem;
    }

    .site-footer-mobile__socials a {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, .9);
        background: rgba(255, 255, 255, .035);
        border: 1px solid rgba(255, 255, 255, .11);
        border-radius: 9px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .site-footer-mobile__socials a:active,
    .site-footer-mobile__socials a:focus-visible {
        color: #fff;
        background: rgba(192, 29, 102, .22);
        border-color: rgba(234, 115, 168, .55);
    }

    .site-footer-mobile__socials i {
        color: currentColor;
        font-size: .92rem;
    }

    .site-footer-mobile__intro {
        margin: .8rem 0 1.1rem;
        color: rgba(255, 255, 255, .6);
        font-size: .82rem;
        line-height: 1.55;
    }

    .site-footer-mobile__quick-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .site-footer-mobile__quick-links > a {
        min-width: 0;
        min-height: 54px;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        align-items: center;
        gap: .55rem;
        padding: .62rem .68rem;
        color: rgba(255, 255, 255, .9);
        background: rgba(255, 255, 255, .035);
        border: 1px solid rgba(255, 255, 255, .09);
        border-radius: 11px;
        font-size: .82rem;
        font-weight: 700;
        line-height: 1.15;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .site-footer-mobile__quick-links > a.active,
    .site-footer-mobile__quick-links > a:active,
    .site-footer-mobile__quick-links > a:focus-visible {
        color: #fff;
        background: rgba(192, 29, 102, .16);
        border-color: rgba(234, 115, 168, .42);
    }

    .site-footer-mobile__quick-icon {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ea73a8;
        background: rgba(192, 29, 102, .13);
        border-radius: 8px;
    }

    .site-footer-mobile__quick-links > a > i:last-child {
        color: rgba(255, 255, 255, .42);
        font-size: .68rem;
    }

    .site-footer-mobile__link-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
        margin-top: 1.2rem;
        padding-top: 1.15rem;
        border-top: 1px solid rgba(255, 255, 255, .085);
    }

    .site-footer-mobile__link-groups section {
        min-width: 0;
    }

    .site-footer-mobile__link-groups h2 {
        margin: 0 0 .48rem;
        color: rgba(255, 255, 255, .48);
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .09em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .site-footer-mobile__link-groups a {
        display: block;
        padding: .28rem 0;
        color: rgba(255, 255, 255, .76);
        font-size: .82rem;
        line-height: 1.35;
        text-decoration: none;
    }

    .site-footer-mobile__link-groups a.active,
    .site-footer-mobile__link-groups a:active,
    .site-footer-mobile__link-groups a:focus-visible {
        color: #ea73a8;
    }

    .site-footer-mobile__visit {
        margin-top: 1.15rem;
        padding-top: 1.1rem;
        border-top: 1px solid rgba(255, 255, 255, .085);
    }

    .site-footer-mobile__visit-title {
        display: flex;
        align-items: center;
        gap: .42rem;
        margin-bottom: .62rem;
    }

    .site-footer-mobile__visit-title i {
        color: #ea73a8;
        font-size: .88rem;
    }

    .site-footer-mobile__visit-title h2 {
        margin: 0;
        color: rgba(255, 255, 255, .82);
        font-size: .78rem;
        font-weight: 800;
    }

    .site-footer-mobile__routes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .site-footer-mobile__routes a {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .45rem;
        padding: .62rem .68rem;
        color: rgba(255, 255, 255, .84);
        background: rgba(255, 255, 255, .025);
        border: 1px solid rgba(255, 255, 255, .075);
        border-radius: 10px;
        text-decoration: none;
    }

    .site-footer-mobile__routes a > span {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .08rem;
    }

    .site-footer-mobile__routes strong {
        color: #fff;
        font-size: .75rem;
        line-height: 1.2;
    }

    .site-footer-mobile__routes small {
        overflow: hidden;
        color: rgba(255, 255, 255, .48);
        font-size: .65rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-footer-mobile__routes > a > i {
        flex: 0 0 auto;
        color: #ea73a8;
        font-size: .68rem;
    }

    footer.site-footer .site-footer__games {
        display: block;
        padding: .95rem 16px .85rem;
        border-top: 1px solid rgba(255, 255, 255, .085);
        border-bottom: 0;
    }

    .site-footer__games-copy {
        margin-bottom: .55rem;
    }

    .site-footer__games-copy strong {
        font-size: .74rem;
    }

    .site-footer__games-copy span {
        display: none;
    }

    footer.site-footer .site-footer__game-logos {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: .45rem;
        overflow-x: auto;
        padding: 0 0 .2rem;
        scroll-padding-inline: 1px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    footer.site-footer .site-footer__game-logos::-webkit-scrollbar {
        display: none;
    }

    footer.site-footer .site-footer__game-logos li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    footer.site-footer .site-footer__game-logos a {
        width: 88px;
        min-width: 88px;
        min-height: 42px;
        padding: .38rem .55rem;
        background: rgba(255, 255, 255, .025);
        border-color: rgba(255, 255, 255, .075);
        border-radius: 9px;
    }

    footer.site-footer .site-footer__game-logos img {
        max-width: 76px;
        max-height: 27px;
    }

    footer.site-footer .site-footer__bottom {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .35rem;
        padding: .7rem 16px 1.15rem;
        color: rgba(255, 255, 255, .4);
        font-size: .68rem;
    }

    .site-footer__bottom-separator {
        display: inline;
    }
}

@media (max-width: 379.98px) {
    .site-footer-mobile__top {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }

    .site-footer-mobile__logo img {
        width: 142px;
        max-width: 100%;
    }

    .site-footer-mobile__quick-links,
    .site-footer-mobile__routes {
        grid-template-columns: 1fr;
    }
}

@keyframes tcgd-notification-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-notification-bar--event {
        animation: none;
    }

    .site-footer__socials a,
    footer.site-footer .site-footer__links a,
    footer.site-footer .site-footer__game-logos a,
    .site-notification-bar__link,
    .site-notification-bar__close {
        transition: none;
    }
}

/* v14: herkenbare routelinks voor alle zichtbare TCG-adressen. */
a.tcg-route-link{
    color:inherit;
    text-decoration-line:underline;
    text-decoration-color:rgba(234,115,168,.7);
    text-decoration-thickness:1px;
    text-underline-offset:.18em;
    transition:color .18s ease, text-decoration-color .18s ease;
}

a.tcg-route-link::after{
    content:" ↗";
    color:#ea73a8;
    font-size:.78em;
    font-weight:700;
    white-space:nowrap;
}

a.tcg-route-link:hover,
a.tcg-route-link:focus-visible{
    color:#fff;
    text-decoration-color:#ea73a8;
}
