/* Reset and Base for Split Screen */
html, html[lang] { 
    margin: 0 !important; 
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.mk-split-screen-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

/* Hide WP Admin Bar to prevent black bars and scrolling on 100vh template */
#wpadminbar { display: none !important; }

.mk-split-screen-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* The Individual Sides */
.mk-split-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Logos — 100% native scaling (geen artificial bounding boxes) */
.mk-split-logo {
    position: absolute !important;
    top: 6% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 28vh !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    display: block !important;
    z-index: 3;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}

.mk-split-side:hover .mk-split-logo {
    transform: translateX(-50%) scale(1.05) !important;
}

/* Foreground Person/Character */
.mk-split-fg {
    position: absolute;
    bottom: 0;
    max-width: 95%;
    max-height: 55%;
    object-fit: contain;
    object-position: bottom;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.mk-split-side:hover .mk-split-fg {
    transform: scale(1.02);
}

/* Buttons */
.mk-split-button {
    position: relative;
    z-index: 100;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border: none;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        filter 0.3s ease;
}

/* Gloss top layer */
.mk-split-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.0) 58%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* Shine sweep on hover */
.mk-split-button::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -120%;
    width: 55%;
    height: 120%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    transform: skewX(-18deg);
    transition: left 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.mk-split-side:hover .mk-split-button::after {
    left: 150%;
}

.mk-split-side:hover .mk-split-button {
    transform: translateY(-7px) scale(1.04);
    filter: brightness(1.06);
}

.mk-btn-a {
    background: linear-gradient(160deg, #ffffff 0%, #eef4ff 45%, #d4e5ff 100%);
    color: #1762d4;
    border: 1.5px solid rgba(23, 98, 212, 0.25);
    box-shadow:
        0 7px 0 #0e44a0,
        0 14px 35px rgba(23, 98, 212, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(23, 98, 212, 0.1);
}

.mk-btn-b {
    background: linear-gradient(160deg, #ffffff 0%, #fff3f3 45%, #ffd8d8 100%);
    color: #a80b14;
    border: 1.5px solid rgba(168, 11, 20, 0.22);
    box-shadow:
        0 7px 0 #6e0007,
        0 14px 35px rgba(168, 10, 20, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(168, 10, 20, 0.1);
}

.mk-side-a:hover .mk-btn-a {
    box-shadow:
        0 3px 0 #0e44a0,
        0 18px 45px rgba(23, 98, 212, 0.6),
        0 0 28px rgba(23, 98, 212, 0.45);
}

.mk-side-b:hover .mk-btn-b {
    box-shadow:
        0 3px 0 #6e0007,
        0 18px 45px rgba(168, 10, 20, 0.6),
        0 0 28px rgba(230, 30, 45, 0.45);
}

.mk-btn-arrow {
    font-size: 17px;
    line-height: 1;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

.mk-split-side:hover .mk-btn-arrow {
    transform: translateX(5px);
}

/* Center Divider "OF" */
.mk-split-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 100px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    line-height: 1;
}

/* Responsive - Mobile Stack */
@media (max-width: 768px) {
    .mk-split-screen-container {
        flex-direction: column;
    }

    .mk-split-side {
        height: 50%;
        flex: none;
        padding-bottom: 0;
        background-position: center top;
    }

    /* Logo formaat - Native scaling voor mobiel */
    .mk-split-logo {
        position: absolute !important;
        top: 8% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 12vh !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: fill !important;
        display: block !important;
    }

    .mk-split-side:hover .mk-split-logo {
        transform: translateX(-50%) scale(1.02) !important;
    }

    /* Foto formaat - Hersteld naar groter formaat (zoals eerder) */
    .mk-split-fg {
        max-height: 68%;
        max-width: 90%;
    }

    /* Knop absoluut gepositioneerd op vaste hoogte boven cookiebalk */
    .mk-split-button {
        position: absolute;
        bottom: 60px; /* Iets verder naar beneden geplaatst */
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        font-size: 11px !important;
        font-family: 'Inter', 'Arial Black', sans-serif !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 0.5px currentColor; /* Maakt de tekst extra dik */
        padding: 8px 16px !important;
        letter-spacing: 0.5px !important;
        z-index: 2147483647 !important; /* Max z-index voor cookie balk */
    }

    /* Voorkom dat de knop naar rechts schiet bij aanraken (hover reset de transform) */
    .mk-split-side:hover .mk-split-button {
        transform: translateX(-50%) translateY(-3px) scale(1.02) !important;
    }

    .mk-btn-a {
        box-shadow: 0 4px 0 #072680, 0 8px 20px rgba(10,55,190,0.4) !important;
    }

    .mk-btn-b {
        box-shadow: 0 4px 0 #6e0007, 0 8px 20px rgba(168,10,20,0.4) !important;
    }

    .mk-split-divider {
        font-size: 26px;
        text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    }
}
