/* ============================================================================
   HORIZON ARCHIVE - COLD CASE / SUPERNATURAL STYLING CORE
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Special+Elite&display=swap');

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

body {
    background-color: #000000; /* Preto absoluto e puro */
    color: #a6a6a6; /* Cinza desbotado clássico de terminal impresso */
    font-family: 'Courier Prime', monospace;
    letter-spacing: -0.2px;
    line-height: 1.5;
}

/* 1. Splash Screen Terminal (Estilo Máquina de Escrever/DOS) */
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Special Elite', serif;
    font-size: 1.8rem;
    color: #b81d1d;
    letter-spacing: 4px;
    z-index: 9999;
    pointer-events: none;
}

/* 2. Header & Navegação Seca */
header {
    background-color: #000;
    border-bottom: 1px solid #141414;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-family: 'Special Elite', serif;
    font-size: 1.3rem;
    color: #dcdcdc;
    letter-spacing: 2px;
}

nav a {
    color: #444;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #b81d1d;
}

/* 3. Seção Hero / Terminal de Busca */
.hero {
    text-align: center;
    padding: 7rem 2rem 5rem 2rem;
    background-color: #000;
    border-bottom: 1px solid #141414;
}

.hero h2 {
    font-family: 'Special Elite', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero p {
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#search {
    background-color: #050505;
    border: 1px solid #1a1a1a;
    padding: 0.8rem 1.2rem;
    width: 100%;
    max-width: 500px;
    color: #b81d1d; /* Texto em vermelho estrito */
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    border-radius: 0;
    outline: none;
    transition: all 0.2s ease;
}

#search:focus {
    border-color: #333;
    background-color: #080808;
}

#search::placeholder {
    color: #222;
}

/* 4. Painéis de Conteúdo */
.panel {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.panel h2 {
    font-family: 'Special Elite', serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #b81d1d;
    text-transform: uppercase;
}

/* Caso em Destaque */
#featured {
    background-color: #050505;
    border: 1px solid #141414;
    padding: 2rem;
    position: relative;
}

#featured::before {
    content: "RESTRICTED ACCESS / TOP SECRET";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 10px;
    color: #333;
    border: 1px solid #1a1a1a;
    padding: 2px 6px;
    font-weight: bold;
}

#featured p {
    color: #777;
    margin-top: 0.5rem;
}

/* 5. Galeria de Evidências (Efeito Microfilme de Alto Contraste) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%) contrast(150%) brightness(55%);
    border: 1px solid #141414;
    transition: all 0.3s ease;
}

.gallery img:hover {
    filter: grayscale(100%) contrast(110%) brightness(80%);
    border-color: #333;
}

/* 6. Grid de Pastas de Casos Inteligentes */
.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background-color: #030303;
    border: 1px solid #121212;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card:hover {
    border-color: #222222;
    background-color: #050505;
}

.card-security-bar {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #383838;
    border-bottom: 1px solid #141414;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Special Elite', serif;
    font-size: 1.1rem;
    color: #cdcdcd;
    margin-bottom: 10px;
}

.card-meta-box {
    font-size: 11px;
    color: #666;
    background-color: #000;
    padding: 8px;
    border: 1px solid #0f0f0f;
    margin-bottom: 12px;
}

.card-meta-box p {
    margin-bottom: 2px;
}

.card-meta-box p:last-child {
    margin-bottom: 0;
}

.card-summary {
    font-size: 12px;
    color: #888;
    text-align: justify;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Botões Estilo Comandos Judiciais / Arquivos Digitados */
.card-actions {
    display: flex;
    gap: 8px;
}

.btn-doc {
    font-size: 10px;
    color: #777;
    text-decoration: none;
    border: 1px solid #1a1a1a;
    padding: 4px 8px;
    background-color: #000;
    transition: all 0.2s ease;
}

.btn-doc:hover:not(.locked) {
    color: #fff;
    border-color: #444;
    background-color: #0a0a0a;
}

.btn-doc.locked {
    color: #262626;
    border-color: #0d0d0d;
    cursor: not-allowed;
    background-color: #020202;
}

.btn-danger {
    color: #8e2828;
    border-color: #290f0f;
}

.btn-danger:hover {
    color: #ff3b3b;
    border-color: #521919;
}

.txt-red {
    color: #8e2828;
}

/* 7. Linha do Tempo Analógica */
.timeline-list {
    border-left: 1px solid #141414;
    padding-left: 0;
}

.timeline-record {
    list-style: none;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-record::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 6px;
    width: 5px;
    height: 5px;
    background-color: #1a1a1a;
}

.timeline-record:hover::before {
    background-color: #b81d1d;
}

.tl-date {
    font-weight: bold;
    color: #b81d1d;
    font-size: 13px;
    margin-right: 1.5rem;
    min-width: 50px;
}

.tl-content {
    display: flex;
    flex-direction: column;
}

.tl-title {
    color: #b5b5b5;
    font-size: 13px;
    font-weight: bold;
}

.tl-id {
    color: #383838;
    font-size: 10px;
    margin-top: 1px;
}

/* 8. Rodapé Confidencial */
footer {
    text-align: center;
    padding: 3rem;
    color: #1a1a1a;
    font-size: 0.75rem;
    border-top: 1px solid #141414;
    margin-top: 6rem;
    background-color: #000;
    letter-spacing: 1px;
}