
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(40, 0, 0, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 40, 0, 0.2) 0%, transparent 20%),
        linear-gradient(45deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #c0c0c0;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 50%, transparent 50%);
    background-size: 100% 4px, 4px 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

.header {
    border: 3px solid #5c5c5c;
    border-image: linear-gradient(45deg, #5c5c5c, #8b0000, #5c5c5c) 1;
    padding: 20px;
    margin-bottom: 25px;
    background-color: #1a1a1a;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(139, 0, 0, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(139, 0, 0, 0.1) 50%, transparent 51%);
    background-size: 10px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "CONFIDENCIAL";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 4em;
    color: rgba(139, 0, 0, 0.1);
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
}

h1 {
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.tagline {
    font-style: italic;
    color: #808080;
    margin: 15px 0 5px;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.warning {
    color: #ff4444;
    font-weight: bold;
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    border: 2px dashed #8b0000;
    background: rgba(139, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    animation: blink 3s infinite;
}

.warning::before, .warning::after {
    content: "⚠";
    margin: 0 10px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.search-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-left: 5px solid #8b0000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#searchInput {
    width: 100%;
    padding: 12px 15px;
    background: #2b2b2b;
    color: #c0c0c0;
    border: 1px solid #666;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    background: #333;
}

#searchInput::placeholder {
    color: #666;
    font-style: italic;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.filter-btn {
    background: #3a3a3a;
    color: #c0c0c0;
    border: 1px solid #666;
    padding: 10px 18px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: #5a0000;
    color: #fff;
    border-color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

.filter-btn.active {
    background: #8b0000;
    color: #fff;
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.7);
}

.evidence-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px 0;
    justify-content: center;
}

.evidence-item {
    position: relative;
    width: 300px;
    height: 240px;
    overflow: hidden;
    border: 2px solid #5c5c5c;
    background: #1a1a1a;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.evidence-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(139, 0, 0, 0.1) 50%, transparent 52%);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 1;
}

.evidence-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #8b0000;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    z-index: 10;
}

.evidence-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    filter: sepia(0.3) contrast(1.1);
}

.evidence-item:hover .evidence-img {
    filter: sepia(0) contrast(1.2) brightness(0.8);
    transform: scale(1.05);
}

.evidence-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: #e0e0e0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    z-index: 2;
    text-align: justify;
    text-justify: inter-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.evidence-item:hover .evidence-overlay {
    transform: translateY(0);
}

.evidence-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(90, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.evidence-item[data-category="vampiro"] .evidence-category {
    background: rgba(139, 0, 0, 0.9);
}

.evidence-item[data-category="extraterrestres"] .evidence-category {
    background: rgba(0, 100, 0, 0.9);
}

.evidence-item[data-category="lobisomem"] .evidence-category {
    background: rgba(160, 82, 45, 0.9);
}

.evidence-item[data-category="espíritos"] .evidence-category {
    background: rgba(70, 130, 180, 0.9);
}

.footer {
    margin-top: 50px;
    padding: 25px 20px;
    text-align: center;
    border-top: 2px solid #333;
    color: #666;
    font-size: 14px;
    background: rgba(26, 26, 26, 0.8);
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #8b0000;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.evidence-item:hover .evidence-category {
    animation: glitch 0.3s infinite;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .evidence-item {
        width: 100%;
        max-width: 350px;
        height: 280px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .evidence-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 1em;
    }
    
    .evidence-item {
        height: 250px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #5a0000;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}

::selection {
    background: rgba(139, 0, 0, 0.5);
    color: white;
}

::-moz-selection {
    background: rgba(139, 0, 0, 0.5);
    color: white;
}