/* ===========================
   ENTANGLEMENT PAGE STYLES
   Quantum Portal - Entanglement Educational Page
   =========================== */

/* Bell States Section */
.bell-states-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.05), rgba(0, 183, 255, 0.05));
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 8px;
}

.bell-state {
    background: rgba(0, 0, 0, 0.6);
    border-left: 4px solid var(--quantum-cyan);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.bell-label {
    font-family: 'Orbitron', monospace;
    color: var(--quantum-cyan);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.bell-equation {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--quantum-green);
    margin: 15px 0;
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 4px;
}

.bell-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
}

/* Entanglement Interactive Demo */
.entanglement-demo {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(0, 183, 255, 0.1));
    border: 2px solid var(--quantum-magenta);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

.entanglement-demo h2 {
    text-align: center;
    color: var(--quantum-cyan);
    font-family: 'Orbitron', monospace;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.entanglement-visualization {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

.connection-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 110, 0.6) 25%, 
        rgba(0, 255, 170, 0.6) 50%, 
        rgba(255, 0, 110, 0.6) 75%, 
        transparent
    );
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.connection-line.active {
    opacity: 1;
    animation: pulse-connection 2s infinite;
}

@keyframes pulse-connection {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.entangled-particle {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px currentColor;
}

.entangled-particle.particle-a {
    background: radial-gradient(circle at 30% 30%, var(--quantum-cyan), rgba(0, 183, 255, 0.4));
    border: 2px solid var(--quantum-cyan);
}

.entangled-particle.particle-b {
    background: radial-gradient(circle at 30% 30%, var(--quantum-magenta), rgba(255, 0, 110, 0.4));
    border: 2px solid var(--quantum-magenta);
}

.entangled-particle:hover {
    transform: scale(1.2);
    box-shadow: 0 0 40px currentColor;
}

.entangled-particle.superposition {
    animation: quantum-shimmer 1.5s infinite;
}

@keyframes quantum-shimmer {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.entangled-particle.measured {
    animation: collapse-flash 0.5s;
}

@keyframes collapse-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); box-shadow: 0 0 60px currentColor; }
    100% { transform: scale(1); }
}

.spin-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.entangled-particle.measured .spin-arrow {
    opacity: 1;
}

.measurement-readout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin: 30px 0;
    text-align: center;
}

.readout-column {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.readout-label {
    font-family: 'Orbitron', monospace;
    color: var(--quantum-yellow);
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.readout-state {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--quantum-green);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.readout-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--quantum-cyan);
    font-weight: bold;
}

.statistics-panel {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    margin-top: 30px;
}

.statistics-panel h3 {
    text-align: center;
    color: var(--quantum-cyan);
    font-family: 'Orbitron', monospace;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 170, 0.05);
    border-radius: 4px;
}

.stat-label {
    font-family: 'Orbitron', monospace;
    color: var(--quantum-yellow);
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.stat-value {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--quantum-green);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

/* EPR Section */
.epr-section {
    margin: 60px 0;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--quantum-yellow);
    border-radius: 8px;
}

.epr-argument {
    background: rgba(255, 215, 0, 0.05);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.epr-argument h3 {
    color: var(--quantum-yellow);
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
}

.epr-argument ol {
    margin-left: 25px;
    line-height: 2;
}

.epr-argument li {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.epr-argument strong {
    color: var(--quantum-yellow);
}

.bell-theorem-box {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.1), rgba(0, 183, 255, 0.1));
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--quantum-cyan);
    margin: 30px 0;
}

.bell-theorem-box h3 {
    color: var(--quantum-cyan);
    font-family: 'Orbitron', monospace;
    text-align: center;
    margin-bottom: 20px;
}

.bell-theorem-box .equation-display {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    color: var(--quantum-green);
    text-align: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.bell-theorem-box p {
    line-height: 1.8;
    margin: 15px 0;
}

/* Applications Section */
.applications-section {
    margin: 60px 0;
}

.application-list {
    display: grid;
    gap: 25px;
}

.application-item {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.05), rgba(0, 183, 255, 0.05));
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--quantum-green);
    transition: all 0.3s;
}

.application-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(0, 255, 170, 0.3);
    border-left-width: 6px;
}

.application-item h3 {
    color: var(--quantum-cyan);
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.application-item p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Misconceptions Section */
.misconceptions-section {
    margin: 60px 0;
}

.misconception-box {
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.misconception-box.wrong {
    background: rgba(255, 0, 110, 0.1);
    border-left-color: var(--quantum-magenta);
}

.misconception-box.right {
    background: rgba(0, 255, 170, 0.1);
    border-left-color: var(--quantum-green);
}

.misconception-box h3 {
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
}

.misconception-box.wrong h3 {
    color: var(--quantum-magenta);
}

.misconception-box.right h3 {
    color: var(--quantum-green);
}

.misconception-box p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .entanglement-visualization {
        height: 300px;
    }

    .measurement-readout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-controls {
        flex-direction: column;
        gap: 10px;
    }

    .bell-equation {
        font-size: 1.1rem;
    }

    .application-item:hover {
        transform: translateX(0);
    }
}