/* =============================================================
   ZWEEF.CSS — WhatsApp knop + Social zweefbalk
   ============================================================= */

/* WHATSAPP KNOP */
.whatsapp-knop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    animation: waPuls 3s ease-in-out infinite;
}

.whatsapp-knop:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.whatsapp-knop svg { width: 30px; height: 30px; }

@keyframes waPuls {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15); }
    50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.65), 0 2px 8px rgba(0,0,0,0.15); }
}

/* BACK TO TOP KNOP */
.naar-top-knop {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--donker);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
}

.naar-top-knop.zichtbaar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.naar-top-knop:hover {
    background: var(--hoofdkleur);
}

@media (max-width: 899px) {
    /* Onderbalk is 60px + safe area — alles erboven plaatsen */
    .naar-top-knop {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* SOCIALE ZWEEFBALK */
.zweef-social {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.zweef-social-knop {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: width 0.25s ease, background 0.2s ease;
    overflow: visible;
}

.zweef-social-knop svg { width: 18px; height: 18px; flex-shrink: 0; position: relative; z-index: 1; }

.zweef-facebook,
.zweef-instagram,
.zweef-linkedin,
.zweef-youtube   { background: var(--hoofdkleur); }

.zweef-social-knop:hover { width: 160px; text-decoration: none; }

/* Tooltip label */
.zweef-tooltip {
    position: absolute;
    left: 44px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding-left: 10px;
}

.zweef-social-knop:hover .zweef-tooltip { opacity: 1; }

/* Eerste en laatste afgerond */
.zweef-social-knop:first-child { border-radius: 0 8px 0 0; }
.zweef-social-knop:last-child  { border-radius: 0 0 8px 0; }

/* Mobiel — kleiner */
@media (max-width: 899px) {
    .zweef-social { display: none; }
    .whatsapp-knop {
        /* Boven de onderbalk (60px) + ademruimte */
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 50px;
        height: 50px;
    }
}
