/* Stereoscopic Mona Lisa Viewer Styles */

/* Variables */
:root {
    --viewer-bg: #0a0a0a;
    --viewer-panel: #1a1a1a;
    --viewer-accent: #8b4513;
    --viewer-gold: #daa520;
    --viewer-text: #ffffff;
    --viewer-text-dim: #cccccc;
}

/* Body and Layout */
.stereoscopic-viewer {
    margin: 0;
    padding: 0;
    background: var(--viewer-bg);
    color: var(--viewer-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Navigation */
.viewer-nav {
    background: var(--viewer-panel);
    border-bottom: 2px solid var(--viewer-accent);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-home {
    color: var(--viewer-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-home:hover {
    color: #fff;
}

.viewer-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--viewer-text);
    margin: 0;
}

.nav-tools {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: var(--viewer-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--viewer-gold);
    transform: translateY(-1px);
}

/* Discovery Introduction */
.discovery-intro {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--viewer-panel), #2a1810);
    text-align: center;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--viewer-gold);
    margin: 0 0 1rem 0;
}

.intro-lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--viewer-text-dim);
    margin: 0 0 3rem 0;
}

.discovery-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.highlight {
    background: var(--viewer-panel);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--viewer-accent);
}

.highlight h3 {
    font-family: 'Cinzel', serif;
    color: var(--viewer-gold);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.highlight p {
    color: var(--viewer-text-dim);
    line-height: 1.6;
    margin: 0;
}

.discovery-btn {
    background: linear-gradient(135deg, var(--viewer-accent), var(--viewer-gold));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.discovery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(218, 165, 32, 0.4);
}

/* Stereoscopic Viewer */
.stereoscopic-section {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.viewer-controls {
    background: var(--viewer-panel);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--viewer-accent);
}

.controls-panel h3 {
    font-family: 'Cinzel', serif;
    color: var(--viewer-gold);
    margin: 0 0 1.5rem 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.control-group label {
    min-width: 120px;
    color: var(--viewer-text-dim);
    font-weight: 500;
}

.control-input {
    background: var(--viewer-bg);
    color: var(--viewer-text);
    border: 1px solid var(--viewer-accent);
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 150px;
}

.control-slider {
    flex: 1;
    max-width: 200px;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.control-btn {
    background: var(--viewer-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--viewer-gold);
}

/* Image Viewer */
.image-viewer {
    background: var(--viewer-panel);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--viewer-accent);
}

.viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stereo-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stereo-image {
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--viewer-accent);
    transition: all 0.3s ease;
}

.stereo-image:hover {
    border-color: var(--viewer-gold);
    transform: scale(1.02);
}

.mona-image {
    width: 100%;
    height: auto;
    display: block;
}

.analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.analysis-canvas {
    width: 100%;
    height: 100%;
}

/* Viewing Instructions */
.viewing-instructions {
    background: var(--viewer-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--viewer-accent);
    max-width: 600px;
    text-align: center;
}

.viewing-instructions h4 {
    font-family: 'Cinzel', serif;
    color: var(--viewer-gold);
    margin: 0 0 1rem 0;
}

.instruction-mode p {
    color: var(--viewer-text-dim);
    line-height: 1.6;
    margin: 0;
}

/* Technical Analysis */
.technical-analysis {
    padding: 4rem 2rem;
    background: var(--viewer-panel);
    margin-top: 2rem;
}

.analysis-content {
    max-width: 1200px;
    margin: 0 auto;
}

.analysis-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--viewer-gold);
    text-align: center;
    margin: 0 0 3rem 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.analysis-card {
    background: var(--viewer-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--viewer-accent);
}

.analysis-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--viewer-gold);
    margin: 0 0 1rem 0;
}

.analysis-card p {
    color: var(--viewer-text-dim);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.analysis-card ul {
    color: var(--viewer-text-dim);
    line-height: 1.6;
    margin: 0;
    padding-left: 1.5rem;
}

.analysis-card li {
    margin: 0.5rem 0;
}

/* Help Modal */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--viewer-panel);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--viewer-accent);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--viewer-text-dim);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--viewer-gold);
}

.help-section {
    margin: 2rem 0;
}

.help-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--viewer-gold);
    margin: 0 0 1rem 0;
}

.help-section p, .help-section li {
    color: var(--viewer-text-dim);
    line-height: 1.6;
}

.method {
    background: var(--viewer-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--viewer-accent);
}

.method h4 {
    color: var(--viewer-gold);
    margin: 0 0 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .discovery-highlights {
        grid-template-columns: 1fr;
    }
    
    .stereo-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem;
    }
}

/* View Mode Specific Styles */
.stereo-display.side-by-side .stereo-image {
    max-width: 350px;
}

.stereo-display.cross-eye .stereo-image {
    max-width: 300px;
}

.stereo-display.anaglyph .left-eye {
    filter: sepia(1) saturate(10) hue-rotate(320deg);
}

.stereo-display.anaglyph .right-eye {
    filter: sepia(1) saturate(10) hue-rotate(180deg);
    position: absolute;
    left: 0;
    top: 0;
    mix-blend-mode: multiply;
}

.stereo-display.animated .right-eye {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: stereoToggle 2s infinite;
}

@keyframes stereoToggle {
    0%, 50% { opacity: 0; }
    51%, 100% { opacity: 1; }
}