/* ============================================================
   Share-systeem styling — Jong Socialisten Izegem
   ============================================================ */

/* ----- Tekstknop op kaarten ----- */
.js-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--zacht, #5a5a5a);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    margin: 0;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.js-share-btn:hover {
    color: var(--rood, #ed1c24);
    background: rgba(232, 0, 45, 0.06);
}
.js-share-btn svg {
    flex-shrink: 0;
}

/* ----- Prominent, wervend share-blok onder Word Lid op homepage ----- */
.lid-worden-share {
    position: relative;
    margin-top: 1.75rem;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

/* Zachte gloed-cirkel rechtsboven voor wat leven */
.lid-worden-share-glow {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.lid-worden-share-emoji {
    font-size: 2.6rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    animation: lws-bounce 2.4s ease-in-out infinite;
}
@keyframes lws-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-4px) rotate(-8deg); }
    50%      { transform: translateY(0) rotate(0deg); }
}

.lid-worden-share-content {
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}
.lid-worden-share-titel {
    margin: 0 0 0.3rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.lid-worden-share-body {
    margin: 0 0 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.5;
}

.lid-worden-share-knop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rood, #ed1c24);
    background: #fff;
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
    animation: lws-pulse 2.8s ease-in-out infinite;
}
.lid-worden-share-knop:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    animation: none;
}
@keyframes lws-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
    50%      { box-shadow: 0 4px 14px rgba(0,0,0,0.18), 0 0 0 6px rgba(255,255,255,0.12); }
}

@media (max-width: 600px) {
    .lid-worden-share {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .lid-worden-share-knop {
        justify-content: center;
        width: 100%;
    }
}

/* ----- Deep-link highlight (kort knipperen als je via #link binnenkomt) ----- */
@keyframes share-deeplink-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,0,45,0); }
    30%      { box-shadow: 0 0 0 4px rgba(232,0,45,0.35); }
}
.share-deeplink-highlight {
    animation: share-deeplink-pulse 1.2s ease-in-out 2;
}

/* ============================================================
   Share-popup (desktop / fallback op mobiel)
   ============================================================ */
.share-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
}
.share-popup.open { opacity: 1; }

.share-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.share-popup-inhoud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    width: 92%;
    max-width: 420px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.share-popup-x {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.share-popup-x:hover {
    color: #333;
    background: #f5f5f5;
}

.share-popup-inhoud h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 700;
}
.share-popup-uitleg {
    margin: 0 0 1.25rem;
    color: #666;
    font-size: 0.9rem;
}

.share-opties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.share-optie {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    font-family: inherit;
    text-align: left;
}
.share-optie:hover {
    background: #fff;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}
.share-optie svg {
    flex-shrink: 0;
    color: #666;
}
.share-optie-fb:hover svg   { color: #1877f2; }
.share-optie-wa:hover svg   { color: #25d366; }
.share-optie-tw:hover svg   { color: #000;    }
.share-optie-mail:hover svg { color: #c8141a; }
.share-optie-link:hover svg { color: #ed1c24; }

.share-optie.gekopieerd {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.share-popup-url {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.share-popup-url input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    color: #555;
    background: #fafafa;
}
.share-popup-url input:focus {
    outline: 2px solid var(--rood, #ed1c24);
    outline-offset: 1px;
}

@media (max-width: 500px) {
    .share-opties { grid-template-columns: 1fr; }
    .share-popup-inhoud { padding: 1.25rem; max-height: 90vh; overflow-y: auto; }
}
