/* Illuminants Guide Article Specific Styles */
/* Scientific Lighting Laboratory Theme */

/* Scientific lighting color variables */
:root {
    --daylight-cool: #C8E6FF;
    --daylight-warm: #FFE4B8;
    --fluorescent-green: #E8FFE8;
    --incandescent-amber: #FFD68A;
    --led-white: #F0F8FF;
    --spectral-violet: #8A2BE2;
    --spectral-blue: #0000FF;
    --spectral-green: #00FF00;
    --spectral-yellow: #FFFF00;
    --spectral-orange: #FF8C00;
    --spectral-red: #FF0000;
    --lab-dark: #1E2A3A;
    --lab-medium: #2C3E50;
    --instrument-gray: #6C7B7F;
    --wavelength-lines: rgba(255, 255, 255, 0.2);
    --temperature-glow: rgba(255, 180, 120, 0.4);
}

/* Lighting Hero Variant */
.lighting-hero {
    background: linear-gradient(135deg, 
        var(--lab-dark) 0%, 
        var(--lab-medium) 30%,
        var(--lab-dark) 60%,
        var(--lab-medium) 100%);
    position: relative;
    overflow: hidden;
}

.lighting-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        var(--spectral-violet) 0%,
        var(--spectral-blue) 16.66%,
        var(--spectral-green) 33.33%,
        var(--spectral-yellow) 50%,
        var(--spectral-orange) 66.66%,
        var(--spectral-red) 83.33%,
        var(--spectral-violet) 100%
    );
    opacity: 0.1;
    background-size: 300% 100%;
    animation: spectrumFlow 12s linear infinite;
}

.lighting-hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 8%;
    width: 250px;
    height: 180px;
    background: radial-gradient(ellipse at center,
        var(--temperature-glow) 0%,
        rgba(255, 180, 120, 0.2) 40%,
        transparent 70%);
    clip-path: polygon(20% 0%, 100% 20%, 80% 100%, 0% 80%);
    animation: temperatureGlow 8s ease-in-out infinite;
}

@keyframes spectrumFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

@keyframes temperatureGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.1) rotate(2deg);
    }
}

/* Spectral Gradient Effect */
.spectral-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top,
        var(--spectral-violet) 0%,
        var(--spectral-blue) 20%,
        var(--spectral-green) 40%,
        var(--spectral-yellow) 60%,
        var(--spectral-orange) 80%,
        var(--spectral-red) 100%);
    opacity: 0.15;
    background-size: 100% 300%;
    animation: spectralShift 10s ease-in-out infinite;
}

@keyframes spectralShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

/* Lighting Badge Styling */
.lighting-badge {
    background: linear-gradient(135deg, 
        var(--daylight-cool) 0%, 
        var(--scientific-cyan) 100%);
    color: var(--lab-dark);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Spectrum Effect for Metrics */
.spectrum-effect {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-weight: 600;
    background: linear-gradient(
        45deg,
        var(--spectral-blue) 0%,
        var(--spectral-green) 25%,
        var(--spectral-yellow) 50%,
        var(--spectral-orange) 75%,
        var(--spectral-red) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spectralFlow 4s ease-in-out infinite;
}

@keyframes spectralFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Spectral Indicator */
.spectral-indicator {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--spectral-violet) 0%,
        var(--spectral-blue) 16.66%,
        var(--spectral-green) 33.33%,
        var(--spectral-yellow) 50%,
        var(--spectral-orange) 66.66%,
        var(--spectral-red) 83.33%,
        var(--spectral-violet) 100%);
    border-radius: 2px;
    animation: wavelengthPulse 3s ease-in-out infinite;
}

@keyframes wavelengthPulse {
    0%, 100% { 
        opacity: 0.7;
        transform: scaleX(1);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1.3);
    }
}

/* Illuminant Lists */
.illuminant-list,
.environment-list,
.equipment-list,
.future-trends {
    list-style: none;
    padding: 0;
}

.illuminant-list li,
.environment-list li,
.equipment-list li,
.future-trends li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.illuminant-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.environment-list li::before {
    content: '🏢';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.equipment-list li::before {
    content: '🔬';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.future-trends li::before {
    content: '🚀';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Protocol Steps */
.protocol-steps,
.troubleshoot-steps {
    list-style: none;
    padding: 0;
    counter-reset: lab-step;
}

.protocol-steps li,
.troubleshoot-steps li {
    counter-increment: lab-step;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.protocol-steps li::before,
.troubleshoot-steps li::before {
    content: counter(lab-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, 
        var(--scientific-cyan) 0%, 
        var(--daylight-cool) 100%);
    color: var(--lab-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 169, 224, 0.3);
}

/* Specification Examples */
.specification-examples {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(0, 169, 224, 0.05) 0%,
        rgba(0, 169, 224, 0.02) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--scientific-cyan);
}

.spec-bad,
.spec-good,
.spec-excellent {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
}

.spec-bad {
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #E74C3C;
}

.spec-good {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #FFC107;
}

.spec-excellent {
    background: rgba(87, 204, 153, 0.1);
    border-left: 3px solid #57CC99;
}

/* CRI Breakdown */
.cri-breakdown {
    background: linear-gradient(135deg,
        rgba(0, 169, 224, 0.08) 0%,
        rgba(0, 169, 224, 0.03) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.cri-list {
    list-style: none;
    padding: 0;
}

.cri-list li {
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
    position: relative;
}

.cri-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.5rem;
    height: 1rem;
    background: linear-gradient(90deg, 
        var(--spectral-green) 0%, 
        var(--spectral-yellow) 50%, 
        var(--spectral-red) 100%);
    border-radius: 2px;
}

/* Enhanced Demo Integration */
.demo-integration {
    background: linear-gradient(135deg,
        rgba(0, 169, 224, 0.06) 0%,
        rgba(200, 230, 255, 0.06) 50%,
        rgba(0, 169, 224, 0.06) 100%);
    border: 2px solid rgba(0, 169, 224, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.demo-integration::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(0, 169, 224, 0.2) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%);
    transition: left 0.8s ease;
}

.demo-integration:hover::before {
    left: 100%;
}

.demo-launch-btn {
    background: linear-gradient(135deg, 
        var(--scientific-cyan) 0%, 
        var(--daylight-cool) 100%);
    color: var(--lab-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 169, 224, 0.3);
}

.demo-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 224, 0.4);
    background: linear-gradient(135deg, 
        var(--daylight-cool) 0%, 
        var(--scientific-cyan) 100%);
}

/* Callout Enhancements */
.callout-insight {
    border-left: 4px solid var(--daylight-cool);
    background: linear-gradient(135deg,
        rgba(200, 230, 255, 0.1) 0%,
        rgba(200, 230, 255, 0.05) 100%);
}

.callout-science {
    border-left: 4px solid var(--scientific-cyan);
    background: linear-gradient(135deg,
        rgba(0, 169, 224, 0.1) 0%,
        rgba(0, 169, 224, 0.05) 100%);
}

.callout-tip {
    border-left: 4px solid var(--spectral-green);
    background: linear-gradient(135deg,
        rgba(0, 255, 0, 0.1) 0%,
        rgba(0, 255, 0, 0.05) 100%);
}

.callout-warning {
    border-left: 4px solid var(--spectral-orange);
    background: linear-gradient(135deg,
        rgba(255, 140, 0, 0.1) 0%,
        rgba(255, 140, 0, 0.05) 100%);
}

/* Typography Enhancements */
.article-content h2 {
    background: linear-gradient(135deg, 
        var(--scientific-cyan) 0%, 
        var(--daylight-cool) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--spectral-blue) 0%, 
        var(--spectral-green) 50%, 
        var(--spectral-yellow) 100%);
}

.article-content h3 {
    color: var(--scientific-cyan);
    position: relative;
}

/* Related Articles Enhancement */
.related-card {
    background: linear-gradient(135deg,
        rgba(0, 169, 224, 0.05) 0%,
        rgba(200, 230, 255, 0.05) 100%);
    border: 1px solid rgba(0, 169, 224, 0.2);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 169, 224, 0.2);
    border-color: var(--scientific-cyan);
}

/* Wavelength Pattern */
.wavelength-pattern {
    position: relative;
}

.wavelength-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        var(--wavelength-lines) 1px,
        var(--wavelength-lines) 2px,
        transparent 3px,
        transparent 20px
    );
    opacity: 0.3;
    pointer-events: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .lighting-hero::after {
        width: 180px;
        height: 120px;
        top: 25%;
        right: 5%;
    }
    
    .spectrum-effect {
        font-size: 1.5rem;
    }
    
    .spectral-indicator {
        width: 60px;
    }
    
    .protocol-steps li,
    .troubleshoot-steps li {
        padding-left: 2.5rem;
    }
    
    .protocol-steps li::before,
    .troubleshoot-steps li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .lighting-hero::before,
    .lighting-hero::after,
    .spectral-gradient {
        display: none;
    }
    
    .spectrum-effect {
        -webkit-text-fill-color: var(--lab-dark);
        background: none;
    }
    
    .demo-integration::before {
        display: none;
    }
    
    .wavelength-pattern::before {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .lighting-hero {
        background: var(--lab-dark);
    }
    
    .spectrum-effect {
        -webkit-text-fill-color: var(--scientific-cyan);
        background: none;
    }
    
    .demo-integration {
        border-color: var(--scientific-cyan);
        background: transparent;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .spectrumFlow,
    .temperatureGlow,
    .spectralShift,
    .spectralFlow,
    .wavelengthPulse {
        animation: none;
    }
    
    .demo-integration::before {
        display: none;
    }
    
    .lighting-hero::before {
        background-size: 100% 100%;
    }
}