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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #1a1a1a;
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --neon-red: #ff0040;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --border-color: #333333;
}

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

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

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.03) 0px,
        rgba(0, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid var(--neon-cyan);
    margin-bottom: 40px;
    position: relative;
}

.header-content {
    margin-bottom: 20px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 30px var(--neon-cyan);
}

/* Glitch effect */
.glitch {
    position: relative;
    animation: glitch-skew 5s infinite;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-green);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(84px, 9999px, 40px, 0); }
    40% { clip: rect(65px, 9999px, 25px, 0); }
    60% { clip: rect(17px, 9999px, 99px, 0); }
    80% { clip: rect(53px, 9999px, 12px, 0); }
    100% { clip: rect(76px, 9999px, 68px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(15px, 9999px, 55px, 0); }
    40% { clip: rect(90px, 9999px, 30px, 0); }
    60% { clip: rect(45px, 9999px, 80px, 0); }
    80% { clip: rect(25px, 9999px, 70px, 0); }
    100% { clip: rect(5px, 9999px, 95px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(0.5deg); }
    20% { transform: skew(0deg); }
    30% { transform: skew(-0.5deg); }
    40% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.lang-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-green);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Filter Section */
.filter-section {
    margin-bottom: 30px;
}

.search-box {
    margin-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 25px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.filter-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
}

/* Leaks Grid */
.leaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.leak-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.leak-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.leak-card:hover::before {
    opacity: 0.3;
}

.leak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.leak-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.leak-org {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    font-weight: 700;
    flex: 1;
}

.leak-type {
    background: var(--bg-secondary);
    padding: 4px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    margin-left: 10px;
}

.leak-type.public {
    color: var(--neon-red);
    border-color: var(--neon-red);
}

.leak-type.private {
    color: var(--neon-green);
    border-color: var(--neon-green);
}

.leak-description {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.leak-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.leak-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.leak-image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.leak-image-thumb:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transform: scale(1.05);
}

.leak-source {
    display: inline-block;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--neon-cyan);
    padding: 8px 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.leak-source:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--neon-cyan);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.modal-nav-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid var(--neon-cyan);
    margin-top: 40px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .leaks-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border: 1px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-magenta);
}
