:root {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --red: #8b0000;
  --red-bright: #c41e3a;
  --blood: #5c0000;
  --text: #e8e0d5;
  --muted: #a09080;
  --border: #2a2a2a;
  --accent: #d4a017;
}

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

body {
  font-family: 'Merriweather', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.03"/></svg>');
}

a { color: var(--red-bright); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

header {
  background: #000;
  border-bottom: 3px solid var(--red);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red-bright);
  text-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.logo span { color: var(--text); }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: var(--text); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
nav a:hover { color: var(--red-bright); }

.hero {
  padding: 4rem 0;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), url('../images/hero-dark.jpg') center/cover;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  text-shadow: 2px 2px 4px #000;
}

.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; color: var(--muted); }

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat .num { font-size: 2.5rem; font-weight: bold; color: var(--red-bright); }
.stat .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

.section { padding: 4rem 0; }
.section h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--red);
  padding-left: 1rem;
}

.dockets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.docket-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}
.docket-card:hover { transform: translateY(-4px); border-color: var(--red); }
.docket-card h3 { font-family: 'Cinzel', serif; margin-bottom: 0.5rem; }
.docket-count { color: var(--red-bright); font-size: 0.85rem; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}
.case-card:hover { border-color: var(--red); }
.case-card img { width: 100%; height: 180px; object-fit: cover; filter: grayscale(0.3) contrast(1.1); }
.case-info { padding: 1rem; }
.case-id { font-size: 0.75rem; color: var(--muted); letter-spacing: 1px; }
.case-info h3 { font-size: 1.2rem; margin: 0.5rem 0; }
.case-info p { font-size: 0.9rem; color: var(--muted); }

.search-bar {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
}
.search-bar input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
}
.search-bar input:focus { outline: none; border-color: var(--red); }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.4rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
}
.filter-btn.active, .filter-btn:hover { background: var(--red); border-color: var(--red); }

.case-detail { max-width: 800px; margin: 0 auto; }
.case-detail h1 { font-family: 'Cinzel', serif; font-size: 2.5rem; margin: 1rem 0; }
.meta { color: var(--muted); margin-bottom: 2rem; font-size: 0.9rem; }
.case-section { margin: 2.5rem 0; }
.case-section h2 { font-size: 1.5rem; color: var(--red-bright); margin-bottom: 1rem; }

footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  nav ul { gap: 1rem; font-size: 0.8rem; }
  .stats { gap: 1.5rem; }
  .logo { font-size: 1.4rem; }
}
