/* Nudity Filter Styles */
/* Enhanced blur effects and user interactions */

*,
*::before,
*::after {
        box-sizing: border-box;
}

html {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

html::-webkit-scrollbar {
    display: none;
}

body {
        font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', 'Source Sans Pro', 'Lora', 'Merriweather', Arial, sans-serif;
        margin: 0;
        padding: 0;
        line-height: 1.6;
        min-height: 100%;
        background: var(--bg-secondary);
        color: var(--text-primary);
        display: flex;
        justify-content: center; 
        align-items: flex-start;
        margin: auto;
        width: 100%;
        max-width: 1130px;
        letter-spacing: 0.5px;
}

img, video {
        max-width: 100%;
        height:auto
}

video {
        border: none;
        background: black;
        border-radius: 15px;
        cursor: pointer;
}

/* Blur Effect for Inappropriate Content */
.blurred-image,
.post-image.blurred-image,
.user-post-card-image.blurred-image {
    filter: blur(20px);
    transition: filter 0.3s ease;
    position: relative;
    border-radius: 25px ;
}

/* Ensure container also has border radius */
.image-container .blurred-image,
.user-post-card-image-container .blurred-image {
    border-radius: 25px ;
    overflow: hidden;
}

.blurred-image:hover,
.post-image.blurred-image:hover,
.user-post-card-image.blurred-image:hover {
    filter: blur(15px);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px) saturate(1.5);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 25px;
    z-index: 10;
    transition: opacity 0.3s ease;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.blur-warning {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.blur-warning i {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.blur-warning small {
    display: block;
    margin-top: 5px;
    opacity: 0.9;
}

/* Hover effects for blurred images */
.image-container:hover .blur-overlay {
    opacity: 0.8;
}

.image-container:hover .blurred-image {
    filter: blur(15px);
}

/* Admin override for blurred content */
.admin-override .blurred-image {
    filter: none ;
}

.admin-override .blur-overlay {
    display: none ;
}

/* Age warning modal styles */
.age-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.age-warning-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.age-warning-content h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 20px;
}

.age-warning-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.age-warning-buttons {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-warning-buttons button {
    padding: 10px 20px;
    border: 2px solid #555;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    background: none;
    color: var(--text-primary);
}

.btn-danger {
    background: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-danger:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.btn-success {
    background: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-success:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .blur-warning {
        padding: 12px 16px;
        font-size: 13px;
        max-width: 200px;
    }
    
    .blur-warning i {
        font-size: 24px;
    }
    
    .age-warning-content {
        margin: 20px;
        padding: 20px;
    }
    
    .age-warning-buttons {
        flex-direction: column;
    }
    
    .age-warning-buttons button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .age-warning-content {
        background: #2d3748;
        color: white;
    }
    
    .age-warning-content p {
        color: #a0aec0;
    }
}

/* Accessibility improvements */
.blurred-image:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.blur-warning:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blur-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .blur-warning {
        background: rgba(255, 0, 0, 0.9);
        border: 2px solid white;
    }
}