/**
 * Section Separator Styles
 * Professional section dividers for homepage
 * Version: 1.1.0 - Optimized & Secured
 * CSP-Safe: No inline styles, external resources validated
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    --separator-bg: linear-gradient(180deg, rgba(15, 15, 35, 0.8) 0%, rgba(10, 10, 25, 0.9) 50%, rgba(20, 25, 40, 0.8) 100%);
    --separator-line-gradient: linear-gradient(90deg, transparent 0%, rgba(114, 9, 183, 0.4) 20%, rgba(64, 164, 255, 0.6) 50%, rgba(114, 9, 183, 0.4) 80%, transparent 100%);
    --separator-icon-bg: rgba(64, 164, 255, 0.15);
    --separator-icon-border: rgba(64, 164, 255, 0.4);
    --separator-icon-glow: linear-gradient(45deg, rgba(114, 9, 183, 0.6), rgba(64, 164, 255, 0.6), rgba(114, 9, 183, 0.6));
    --separator-color-purple: rgba(114, 9, 183, 0.3);
    --separator-color-blue: rgba(64, 164, 255, 0.6);
    --separator-color-white: rgba(255, 255, 255, 0.1);
    --separator-padding: 80px 0;
    --separator-focus-outline: 2px solid rgba(64, 164, 255, 0.6);
    --separator-focus-offset: 2px;
}

/* ============================================
   SECTION SEPARATOR STYLES
   ============================================ */

.section-separator.lens-quick-separator {
    position: relative;
    padding: 80px 0; /* fallback */
    padding: var(--separator-padding);
    margin: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.8) 0%, rgba(10, 10, 25, 0.9) 50%, rgba(20, 25, 40, 0.8) 100%); /* fallback */
    background: var(--separator-bg);
    border-radius: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* SECURITY: Block injected inline styles */
.section-separator[style*="background"],
.section-separator[style*="padding"],
.section-separator[style*="animation"] {
    animation: none !important;
}

/* ============================================
   SEPARATOR BACKGROUND
   ============================================ */

.separator-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.separator-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(114, 9, 183, 0.3), transparent), /* fallback */
        radial-gradient(1px 1px at 80% 70%, rgba(64, 164, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
    background-image: 
        radial-gradient(1px 1px at 20% 30%, var(--separator-color-purple), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(64, 164, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--separator-color-white), transparent);
    background-repeat: repeat;
    background-size: 200px 200px, 300px 250px, 150px 180px;
    opacity: 0.6;
}

.separator-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(114, 9, 183, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(64, 164, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================
   SEPARATOR CONTENT
   ============================================ */

.separator-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.separator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(114, 9, 183, 0.4) 20%, rgba(64, 164, 255, 0.6) 50%, rgba(114, 9, 183, 0.4) 80%, transparent 100%); /* fallback */
    background: var(--separator-line-gradient);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.separator-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

/* ============================================
   SEPARATOR ICON
   ============================================ */

.separator-icon {
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(64, 164, 255, 0.15); /* fallback */
    background: var(--separator-icon-bg);
    border: 2px solid rgba(64, 164, 255, 0.4); /* fallback */
    border: 2px solid var(--separator-icon-border);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 0 0 25px rgba(64, 164, 255, 0.4), inset 0 0 25px rgba(64, 164, 255, 0.1);
    backface-visibility: hidden;
}

.separator-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(114, 9, 183, 0.6), rgba(64, 164, 255, 0.6), rgba(114, 9, 183, 0.6)); /* fallback */
    background: var(--separator-icon-glow);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.separator-symbol {
    pointer-events: none;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .separator-particles,
    .separator-line::after,
    .separator-icon::before,
    .separator-symbol {
        animation: none !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    .separator-icon {
        border: 3px solid currentColor;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --separator-bg: linear-gradient(180deg, rgba(10, 10, 25, 0.9) 0%, rgba(5, 5, 15, 0.95) 50%, rgba(15, 20, 30, 0.9) 100%);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .section-separator.lens-quick-separator {
        padding: 60px 0;
    }
    
    .separator-content {
        padding: 0 20px;
    }
    
    .separator-icon {
        width: 50px;
        height: 50px;
        margin: 0 20px;
    }
    
    .separator-symbol {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .section-separator.lens-quick-separator {
        padding: 40px 0;
    }
    
    .separator-content {
        padding: 0 15px;
    }
    
    .separator-icon {
        width: 40px;
        height: 40px;
        margin: 0 15px;
    }
    
    .separator-symbol {
        font-size: 1.1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .section-separator.lens-quick-separator {
        display: none !important;
    }
}
