@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-red: #ff2a2a;
    --accent-cyan: #00ffff;
    --accent-green: #00ff41;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --warning-yellow: #ffff00;
    --glitch-pink: #ff00ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.glitch-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 42, 42, 0.03) 2px,
            rgba(255, 42, 42, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    z-index: -2;
    animation: scanlines 0.1s linear infinite;
}

.surveillance-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 42, 42, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: surveillance-sweep 8s ease-in-out infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes surveillance-sweep {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.header {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 2px solid var(--accent-red);
    position: relative;
}

.title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
}

.glitch-text {
    position: relative;
    color: var(--text-primary);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-cyan);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--glitch-pink);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 0); }
    40% { transform: translate(-2px, 0); }
    60% { transform: translate(0, 2px); }
    80% { transform: translate(0, -2px); }
}

.metadata-leak {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    opacity: 0.7;
}

.leak-text {
    color: var(--accent-green);
    animation: data-leak 2s ease-in-out infinite;
}

@keyframes data-leak {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.theses-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.thesis-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--accent-red);
    border-radius: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.thesis-item::before {
    content: attr(data-surveillance);
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-red);
    color: var(--primary-bg);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.thesis-item:hover::before {
    transform: translateY(0);
}

.thesis-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateX(5px);
}

.thesis-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
}

.thesis-content {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.7;
}

.thesis-content strong {
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.extraction-meter {
    width: 4px;
    height: 100%;
    background: linear-gradient(to top, var(--accent-red) 0%, var(--warning-yellow) 50%, var(--accent-green) 100%);
    position: relative;
    animation: data-extraction 3s ease-in-out infinite;
}

@keyframes data-extraction {
    0%, 100% { opacity: 0.3; transform: scaleY(0.2); }
    50% { opacity: 1; transform: scaleY(1); }
}

.footer {
    background: var(--secondary-bg);
    border-top: 2px solid var(--accent-red);
    padding: 1.5rem;
    text-align: center;
}

.system-status {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.status-item {
    color: var(--text-secondary);
}

.status-active {
    color: var(--accent-red);
    font-weight: 700;
    animation: pulse 1s ease-in-out infinite;
}

.status-minimal {
    color: var(--accent-green);
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vector-warning {
    color: var(--warning-yellow);
    font-size: 0.8rem;
    animation: warning-blink 2s ease-in-out infinite;
}

@keyframes warning-blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .thesis-item {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
    }
    
    .extraction-meter {
        grid-column: 1 / -1;
        width: 100%;
        height: 4px;
        margin-top: 1rem;
    }
    
    .thesis-number {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        min-width: auto;
        font-size: 1.2rem;
    }
    
    .system-status {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .metadata-leak {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* Subversive tooltips */
.thesis-item[data-threat-level="critical"]:hover::after {
    content: "THREAT LEVEL: CRITICAL - ALGORITHM DESTABILIZATION DETECTED";
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    animation: threat-alert 0.5s ease-out;
}

.thesis-item[data-threat-level="maximum"]:hover::after {
    content: "MAXIMUM THREAT - INITIATING CONTAINMENT PROTOCOLS";
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glitch-pink);
    color: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    animation: threat-alert 0.5s ease-out;
}

@keyframes threat-alert {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

