/**
 * Copy protection styling voor RechtsBrief.nl
 * Dit verhindert het kopiëren van tekst in beschermde elementen
 */

.copy-protected {
    -webkit-user-select: none;  /* Safari */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Standaard syntax */
    position: relative;
    overflow: hidden;
}

/* Overlay om rechtermuisklik/context menu te voorkomen */
.copy-protected::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: auto;
    background-color: transparent;
}

/* Watermerk */
.copy-protected::after {
    content: "";
    background-image: url('../images/watermark.png');
    background-repeat: repeat;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Voor mobiele apparaten */
@media (max-width: 768px) {
    .copy-protected {
        touch-action: none;
    }
}

/* Maak het blurren van de tekst mogelijk voor niet-betalende gebruikers */
.blur-preview {
    filter: blur(3px);
    -webkit-filter: blur(3px);
}

/* Toon dit wanneer tekst beschermd is */
.protected-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(30, 64, 175, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    text-align: center;
    max-width: 80%;
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #FFC107;
}

/* Toon alleen op hover bij desktop */
@media (min-width: 769px) {
    .protected-notice {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .copy-protected:hover .protected-notice {
        opacity: 1;
    }
}