/*
 * Case System / Interrogation System — Shared front-end theme
 * Loaded once via <link>, cached by the browser across all game pages
 * instead of being redefined inline in every template.
 */

:root {
  --ink: #17140F;
  --ink-deep: #0D0B08;
  --ink-card: #1D1811;
  --gold: #C9A24C;
  --gold-bright: #E3C179;
  --paper: #EDE3CE;
  --graphite: #857A6C;
  --hairline: rgba(237, 227, 206, 0.10);
  --danger: #B5453A;
  --danger-bright: #D65C4F;
  --warning: #D68A3F;
  --success: #8FA876;
}

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

body {
  color: var(--paper);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* ==========================================
   Shared "photo card" component
   Used by: case list, suspect list, and the
   suspect grid inside the case dashboard.
   Set --pc-photo-height on the grid wrapper
   to override the default 220px photo height.
   ========================================== */

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pc-card {
  background: var(--ink-card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.pc-card:hover {
  border-color: rgba(201, 162, 76, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.pc-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.pc-card:hover::before { opacity: 1; }

.pc-photo {
  width: 100%;
  height: var(--pc-photo-height, 220px);
  object-fit: cover;
  display: block;
  filter: grayscale(40%) brightness(0.88);
  transition: filter 0.3s;
}

.pc-card:hover .pc-photo { filter: grayscale(0%) brightness(1); }

.pc-no-photo {
  width: 100%;
  height: var(--pc-photo-height, 220px);
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 227, 206, 0.08);
  font-size: 50px;
}

.pc-no-photo svg { opacity: 0.2; }

.pc-overlay {
  position: absolute;
  top: 0; right: 0; left: 0;
  height: var(--pc-photo-height, 220px);
  background: rgba(13, 11, 8, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.pc-card:hover .pc-overlay { opacity: 1; }

.pc-overlay span {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 76, 0.5);
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 500;
}

.pc-info {
  padding: 16px;
  border-top: 1px solid var(--hairline);
}

.pc-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--paper);
}

.pc-meta {
  font-size: 11px;
  color: rgba(237, 227, 206, 0.3);
  letter-spacing: 0.5px;
  line-height: 1.8;
  margin-top: 8px;
}

.pc-meta span { display: block; }

.pc-empty {
  text-align: center;
  padding: 100px 20px;
  color: var(--graphite);
  font-size: 13px;
  letter-spacing: 0.5px;
}
