/* Dark Web Hacker Theme CSS */

:root {
    --primary-green: #00ff41;
    --dark-green: #003b00;
    --matrix-green: #00ff00;
    --terminal-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #4a4a4a;
    --warning-red: #ff0040;
    --critical-red: #ff0000;
    --active-blue: #0080ff;
}

/* Force all links to be red in terminal content */
.file-content a {
    color: var(--warning-red) !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.file-content a:hover {
    color: #ff6699 !important;
    text-shadow: 0 0 10px var(--warning-red) !important;
}

.file-content a:visited {
    color: var(--warning-red) !important;
}

.file-content a:active {
    color: var(--warning-red) !important;
}

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

body {
    font-family: 'Share Tech Mono', 'Courier Prime', monospace;
    background: var(--terminal-black);
    color: var(--primary-green);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Matrix Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, var(--terminal-black) 0%, var(--dark-gray) 100%);
    opacity: 0.3;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--matrix-green) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--dark-green) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--primary-green) 0%, transparent 50%);
    animation: matrixPulse 4s ease-in-out infinite alternate;
}

@keyframes matrixPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

/* Terminal Header */
.terminal-header {
    background: var(--medium-gray);
    border: 1px solid var(--primary-green);
    border-bottom: none;
    margin: 20px 20px 0;
}

.terminal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

.terminal-title {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: bold;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn.minimize { background: var(--warning-red); }
.control-btn.maximize { background: var(--active-blue); }
.control-btn.close { background: var(--critical-red); }

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px currentColor;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Warning Banner */
.warning-banner {
    background: var(--warning-red);
    color: var(--terminal-black);
    padding: 15px;
    margin: 20px 0;
    border: 2px solid var(--critical-red);
    text-align: center;
    font-weight: bold;
    animation: warningBlink 1s infinite;
}

@keyframes warningBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.8; }
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Main Content */
.main-content {
    background: var(--terminal-black);
    border: 1px solid var(--primary-green);
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Glitch Title */
.glitch-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: var(--primary-green);
    text-shadow: 2px 2px 0px var(--dark-green);
    animation: glitch 2s infinite;
}

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

.glitch-title::before {
    animation: glitch-1 0.5s infinite;
    color: var(--warning-red);
    z-index: -1;
}

.glitch-title::after {
    animation: glitch-2 0.5s infinite;
    color: var(--active-blue);
    z-index: -2;
}

@keyframes glitch {
    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-1 {
    0%, 100% { clip: rect(0, 900px, 0, 0); transform: translate(0); }
    20% { clip: rect(20px, 900px, 60px, 0); transform: translate(-2px); }
    40% { clip: rect(40px, 900px, 140px, 0); transform: translate(2px); }
    60% { clip: rect(80px, 900px, 180px, 0); transform: translate(-2px); }
    80% { clip: rect(120px, 900px, 220px, 0); transform: translate(2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip: rect(0, 900px, 0, 0); transform: translate(0); }
    20% { clip: rect(60px, 900px, 120px, 0); transform: translate(2px); }
    40% { clip: rect(100px, 900px, 160px, 0); transform: translate(-2px); }
    60% { clip: rect(140px, 900px, 200px, 0); transform: translate(2px); }
    80% { clip: rect(180px, 900px, 240px, 0); transform: translate(-2px); }
}

/* Target Info Grid */
.target-info {
    margin: 30px 0;
    padding: 20px;
    background: var(--dark-gray);
    border: 1px solid var(--primary-green);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--terminal-black);
    border: 1px solid var(--light-gray);
}

.label {
    color: var(--primary-green);
    font-weight: bold;
}

.value {
    color: var(--matrix-green);
    font-weight: bold;
}

.value.active {
    color: var(--primary-green);
    text-shadow: 0 0 5px var(--primary-green);
}

.value.high {
    color: var(--critical-red);
    animation: pulse 1s infinite;
}

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

/* Content Terminal */
.content-terminal {
    background: var(--terminal-black);
    border: 1px solid var(--primary-green);
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier Prime', monospace;
}

.terminal-output {
    line-height: 1.6;
}

.command-line {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--primary-green);
    font-weight: bold;
}

.command {
    color: var(--matrix-green);
    animation: typewriter 2s steps(20) 1s both;
}

@keyframes typewriter {
    0% { width: 0; opacity: 0; }
    1% { opacity: 1; }
    100% { width: 100%; opacity: 1; }
}

.file-content {
    margin-left: 20px;
    border-left: 2px solid var(--primary-green);
    padding-left: 20px;
}

.paragraph {
    margin-bottom: 15px;
    color: var(--matrix-green);
    font-size: 14px;
    line-height: 1.5;
    animation: fadeInUp 0.5s ease-out;
}

.paragraph.critical {
    color: var(--critical-red);
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-left: 3px solid var(--critical-red);
}

.paragraph.warning {
    color: var(--warning-red);
    background: rgba(255, 0, 64, 0.1);
    padding: 10px;
    border-left: 3px solid var(--warning-red);
}

.paragraph.warning a {
    color: var(--warning-red) !important;
    text-decoration: underline;
    font-weight: bold;
}

.paragraph.references {
    color: var(--critical-red);
    background: rgba(255, 0, 0, 0.05);
    padding: 15px;
    border-left: 3px solid var(--critical-red);
    margin-top: 20px;
}

.reference-link {
    display: block;
    margin: 8px 0;
}

.reference-url {
    color: var(--warning-red) !important;
    text-decoration: underline;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 0, 64, 0.5);
}

.reference-url:hover {
    color: #ff6699 !important;
    text-shadow: 0 0 15px var(--warning-red);
    transform: translateX(5px);
}

.reference-url:visited {
    color: var(--warning-red) !important;
}

.reference-url:active {
    color: var(--warning-red) !important;
}

/* Simple photo display - minimal styling */
.target-photo-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
}

.simple-photo {
    max-width: 300px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .target-photo-simple {
        flex-direction: column;
        gap: 15px;
    }
    
    .simple-photo {
        max-width: 250px;
        max-height: 350px;
    }
}

/* Tenor GIF styling */
.tenor-gif-simple {
    max-width: 300px;
    height: auto;
}

.tenor-gif-embed {
    border-radius: 8px;
    overflow: hidden;
}

/* Photo row styling for side-by-side images */
.photo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px 0;
}

.photo-row .photo-container {
    margin: 0;
    flex: 1;
    max-width: 300px;
}

.cat-image {
    filter: grayscale(100%) contrast(1.2);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    box-shadow: 0 0 15px var(--primary-green);
}

@media (max-width: 768px) {
    .photo-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .photo-row .photo-container {
        max-width: 250px;
    }
}

/* Reference thumbnail styling */
.reference-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 0, 64, 0.05);
    border-left: 3px solid var(--warning-red);
    animation: slideInRight 0.6s ease-out;
}

/* Click here indicator styling */
.click-here-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    border-radius: 6px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.click-here-text {
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.click-arrow {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    animation: bounceRight 1s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.reference-content {
    flex: 1;
    min-width: 0;
}

.reference-content .paragraph {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.reference-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--warning-red);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.6);
    border-color: #ff6699;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 0, 64, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 0, 64, 0.6);
    }
}

@keyframes bounceRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* System Status */
.system-status {
    margin-top: 30px;
    text-align: center;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
    font-weight: bold;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: statusBlink 1s infinite;
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Footer Terminal */
.footer-terminal {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: var(--dark-gray);
    border: 1px solid var(--primary-green);
}

.terminal-footer p {
    color: var(--primary-green);
    font-size: 12px;
    margin: 5px 0;
    font-style: italic;
}

/* Target Photo */
.target-photo {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.photo-container {
    position: relative;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transition: all 0.3s ease;
}

/* Popping Photo Animation */
.popping-photo {
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               floatAround 4s ease-in-out infinite 0.8s,
               randomJitter 2s infinite 1s;
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) translateX(5px) rotate(-2deg);
    }
    50% {
        transform: translateY(5px) translateX(-8px) rotate(3deg);
    }
    75% {
        transform: translateY(-5px) translateX(10px) rotate(-1deg);
    }
}

@keyframes randomJitter {
    0%, 90%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-2px, -1px);
    }
    20% {
        transform: translate(3px, 1px);
    }
    30% {
        transform: translate(-1px, 2px);
    }
    40% {
        transform: translate(2px, -3px);
    }
    50% {
        transform: translate(-3px, 1px);
    }
    60% {
        transform: translate(1px, -1px);
    }
    70% {
        transform: translate(-2px, 3px);
    }
    80% {
        transform: translate(3px, -2px);
    }
}

/* Floating Emoji */
.floating-emoji {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 30px;
    animation: emojiFloat 3s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(-10deg) scale(1.2);
    }
    50% {
        transform: translateY(-5px) rotate(10deg) scale(0.8);
    }
    75% {
        transform: translateY(-20px) rotate(-5deg) scale(1.1);
    }
}

/* Additional silly animations */
@keyframes spinnyBoi {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes wiggleWiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    20% { transform: rotate(5deg); }
    30% { transform: rotate(-3deg); }
    40% { transform: rotate(3deg); }
    50% { transform: rotate(-1deg); }
    60% { transform: rotate(1deg); }
    70% { transform: rotate(-2deg); }
    80% { transform: rotate(2deg); }
    90% { transform: rotate(-1deg); }
}

@keyframes boingBoing {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) translateY(-5px); }
    50% { transform: scale(0.95) translateY(5px); }
    75% { transform: scale(1.05) translateY(-3px); }
}

/* Random silly animation classes */
.silly-spin {
    animation: spinnyBoi 2s ease-in-out infinite;
}

.silly-wiggle {
    animation: wiggleWiggle 1s ease-in-out infinite;
}

.silly-boing {
    animation: boingBoing 1.5s ease-in-out infinite;
}

.photo-container:hover {
    animation-play-state: paused;
    transform: scale(1.05) !important;
}

.target-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    transition: all 0.3s ease;
}

.photo-container:hover .target-image {
    filter: grayscale(80%) contrast(1.3) brightness(0.9);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 0, 64, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--warning-red);
    font-weight: bold;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: blink 1s infinite;
}

/* Glitch effect for photo */
.photo-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-green) 0%, transparent 50%, var(--warning-red) 100%);
    opacity: 0;
    z-index: 2;
    mix-blend-mode: screen;
    animation: photoGlitch 3s infinite;
}

@keyframes photoGlitch {
    0%, 90%, 100% { opacity: 0; }
    5%, 85% { opacity: 0.1; }
}

.photo-container::before,
.photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 1;
}

.photo-container::before {
    animation: glitch-photo-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.photo-container::after {
    animation: glitch-photo-2 2s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitch-photo-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-photo-2 {
    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); }
}

/* Target Navigation */
.target-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: var(--dark-gray);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover {
    background: var(--primary-green);
    color: var(--terminal-black);
    box-shadow: 0 0 10px var(--primary-green);
}

.nav-btn.active {
    background: var(--primary-green);
    color: var(--terminal-black);
    box-shadow: 0 0 15px var(--primary-green);
    animation: pulse 1s infinite;
}

/* Target Sections */
.target-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.target-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Medium threat level color */
.value.medium {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-title {
        font-size: 2rem;
    }
    
    .target-image {
        width: 250px;
        height: 167px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .file-content {
        margin-left: 10px;
        padding-left: 10px;
    }
    
    .paragraph {
        font-size: 13px;
    }
    
    .nav-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .glitch-title {
        font-size: 1.5rem;
    }
    
    .target-image {
        width: 200px;
        height: 133px;
    }
    
    .overlay-text {
        font-size: 14px;
    }
    
    .terminal-header {
        margin: 10px 10px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav-btn {
        font-size: 10px;
        padding: 8px 12px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-green);
}

/* Selection Styling */
::selection {
    background: var(--primary-green);
    color: var(--terminal-black);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 25px;
    height: 35px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}