/* Geolocation-based content filtering for UK compliance */

.geo-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
    position: relative;
}

.geo-blurred::after {
    content: "Content Restricted - Location Compliance";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10;
    white-space: nowrap;
    max-width: 80%;
}

.geo-unblurred {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
    opacity: 1 !important;
}

/* Compliance notice */
.geo-compliance-notice {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 20px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.geo-compliance-notice p {
    margin: 0;
}

.geo-compliance-notice a {
    color: #856404;
    text-decoration: underline;
}

/* Blur overlay for better UX */
.geo-blurred::before {
    content: "Location Restricted";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    z-index: 2;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-blurred {
        filter: blur(2px); /* Less blur on mobile for better UX */
    }

    .geo-compliance-notice {
        margin: 15px 10px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Animation for smooth transitions */
.geo-blurred,
.geo-unblurred {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Ensure buttons and links in blurred content don't interfere */
.geo-blurred a,
.geo-blurred button {
    pointer-events: none !important;
}

/* Override for unblurred content */
.geo-unblurred a,
.geo-unblurred button {
    pointer-events: auto !important;
}
