/**
 * BEAUMONT MANOR — CHRISTMAS EVE COLD CASE (1898)
 * Cross-Off Board (Suspect Corkboard) Styles
 * Authentic Victorian Noir Pinboard with Distressed Rubber Stamps
 */

/* ==========================================================================
   1. CORKBOARD CONTAINER & VINTAGE PINBOARD TEXTURE
   ========================================================================== */
.corkboard-wrapper {
  position: relative;
  width: 100%;
  min-height: 700px;
  background-color: #8b5a2b;
  background-image: 
    radial-gradient(#6d431d 15%, transparent 16%),
    radial-gradient(#5a3414 15%, transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(30, 18, 8, 0.45) 0%, rgba(10, 6, 2, 0.85) 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  background-position: 0 0, 14px 14px, 0 0;
  border: 14px solid #3b2210;
  border-image: linear-gradient(135deg, #573318 0%, #301a0b 50%, #1e0f06 100%) 14;
  border-radius: var(--radius-lg);
  box-shadow: 
    inset 0 0 80px rgba(0, 0, 0, 0.85),
    inset 0 0 15px rgba(0, 0, 0, 0.9),
    0 16px 40px rgba(0, 0, 0, 0.7);
  padding: clamp(1rem, 2.5vw, 2.25rem);
  overflow: hidden;
}

/* Optional Corkboard Header Ribbon */
.corkboard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 11, 6, 0.85);
  border: 1px solid rgba(197, 155, 39, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.corkboard-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.pending { background: #94a3b8; box-shadow: 0 0 6px #94a3b8; }
.legend-dot.exonerated { background: #10b981; box-shadow: 0 0 6px #10b981; }
.legend-dot.suspicious { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.legend-dot.indicted { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* ==========================================================================
   2. SUSPECT CARDS GRID (CABINET CARD / POLAROID STYLE)
   ========================================================================== */
.suspects-cork-grid,
.suspects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.5rem, 2.8vw, 2.5rem);
  position: relative;
  z-index: 2;
}

/* Individual Suspect Card Frame */
.suspect-polaroid-card,
.suspect-card {
  position: relative;
  background: #fdfbf7;
  color: #1f1b16;
  border-radius: 4px;
  padding: 1.15rem 1.15rem 1.35rem 1.15rem;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.suspect-card::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #ffd700 25%, #b8860b 60%, #5c3a00 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.suspect-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #111722;
  border: 1px solid #d4c5b0;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.suspect-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.suspect-status-pill {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid currentColor;
}

.btn-inspect-overlay {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--brass-light);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suspect-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.suspect-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f1b16;
}

.suspect-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.suspect-alibi-box {
  background: #f4ede2;
  border-left: 3px solid var(--brass-dark);
  padding: 0.65rem 0.75rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #383228;
}

.suspect-alibi-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: #78350f;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.suspect-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.btn-action-status {
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid #d4c5b0;
  background: #f7f3eb;
  color: #574b3d;
  min-height: 44px;
}

.btn-action-status.active-innocent {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.btn-action-status.active-suspect {
  background: #f59e0b;
  color: #1b1302;
  border-color: #d97706;
}

.btn-action-status.active-culprit {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

/* Subtle Polaroid rotations for natural crime board feel */
.suspect-polaroid-card:nth-child(1) { transform: rotate(-1.2deg); }
.suspect-polaroid-card:nth-child(2) { transform: rotate(1.5deg); }
.suspect-polaroid-card:nth-child(3) { transform: rotate(-0.8deg); }
.suspect-polaroid-card:nth-child(4) { transform: rotate(1.2deg); }
.suspect-polaroid-card:nth-child(5) { transform: rotate(-1.4deg); }
.suspect-polaroid-card:nth-child(6) { transform: rotate(0.9deg); }

.suspect-polaroid-card:hover {
  transform: scale(1.02) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(197, 155, 39, 0.35);
}

/* Metallic Brass Pushpin at top center */
.brass-pushpin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #ffd700 25%, #b8860b 60%, #5c3a00 100%);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 5;
}

.brass-pushpin::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Suspect Photo Frame */
.suspect-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #111722;
  border: 1px solid #d4c5b0;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.suspect-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-normal);
  filter: contrast(1.05) brightness(0.95);
}

.suspect-polaroid-card:hover .suspect-photo-img {
  transform: scale(1.04);
}

/* Hover overlay inspect button */
.btn-inspect-portrait {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--brass-light);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.btn-inspect-portrait:hover {
  opacity: 1;
  background: #0f172a;
}

/* Suspect Text Content */
.suspect-card-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.suspect-header-block {
  border-bottom: 1px dashed #d1c1a5;
  padding-bottom: 0.5rem;
}

.suspect-display-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f1b16;
  line-height: 1.2;
}

.suspect-display-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* Alibi Breakdown Section */
.suspect-alibi-dossier {
  background: #f4ede2;
  border-left: 3px solid var(--brass-dark);
  padding: 0.65rem 0.75rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #383228;
}

.alibi-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Motive & Secret Box */
.suspect-motive-dossier {
  background: #fdf2f2;
  border-left: 3px solid var(--crimson-bright);
  padding: 0.65rem 0.75rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #5c1818;
}

.motive-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--crimson-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Suspicion Meter Gauge */
.suspicion-meter-wrapper {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b5d4d;
}

.meter-track {
  width: 100%;
  height: 6px;
  background: #e5ded2;
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  border-radius: 3px;
  transition: width var(--transition-normal);
}

/* Suspect Card Actions Cluster */
.suspect-actions-cluster {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stamp-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
}

.btn-stamp-action {
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid #d4c5b0;
  background: #f7f3eb;
  color: #574b3d;
  transition: all var(--transition-fast);
}

.btn-stamp-action:hover {
  background: #eee6d8;
  border-color: #8c7355;
}

/* Active Status Buttons */
.btn-stamp-action.active-exonerate {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.btn-stamp-action.active-suspicious {
  background: #f59e0b;
  color: #1b1302;
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.btn-stamp-action.active-indicted {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Big Confront Suspect Button */
.btn-confront-suspect {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2b1116 0%, #17090c 100%);
  border: 1.5px solid var(--crimson-bright);
  color: #fecaca;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-confront-suspect:hover {
  background: var(--crimson-gradient);
  color: #fff;
  border-color: #fca5a5;
  box-shadow: 0 4px 14px var(--crimson-glow);
}

/* ==========================================================================
   3. AUTHENTIC RUBBER STAMPS & ANIMATIONS
   ========================================================================== */
.rubber-stamp {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: 'Cinzel', Impact, 'Arial Black', sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 1.15rem;
  border-radius: 4px;
  pointer-events: none;
  z-index: 15;
  display: none;
  opacity: 0.94;
  mix-blend-mode: multiply;
  text-align: center;
  white-space: nowrap;
}

/* Stamp Variations */
.rubber-stamp.stamp-exonerated {
  color: #047857;
  border: 4px solid #047857;
  outline: 2px dashed #047857;
  outline-offset: 3px;
  background: rgba(16, 185, 129, 0.08);
  transform: translate(-50%, -50%) rotate(-14deg);
}

.rubber-stamp.stamp-suspicious {
  color: #b45309;
  border: 4px solid #b45309;
  outline: 2px dashed #b45309;
  outline-offset: 3px;
  background: rgba(245, 158, 11, 0.08);
  transform: translate(-50%, -50%) rotate(8deg);
}

.rubber-stamp.stamp-indicted {
  color: #991b1b;
  border: 5px solid #991b1b;
  outline: 2.5px dashed #991b1b;
  outline-offset: 3px;
  background: rgba(239, 68, 68, 0.12);
  transform: translate(-50%, -50%) rotate(-9deg);
}

.rubber-stamp.stamp-victim {
  color: #475569;
  border: 4px solid #475569;
  outline: 2px dashed #475569;
  outline-offset: 3px;
  background: rgba(100, 116, 139, 0.08);
  transform: translate(-50%, -50%) rotate(5deg);
}

/* Rubber Stamp Slam Animation Trigger */
.suspect-polaroid-card[data-status="innocent"] .rubber-stamp.stamp-exonerated,
.suspect-polaroid-card[data-status="suspect"] .rubber-stamp.stamp-suspicious,
.suspect-polaroid-card[data-status="culprit"] .rubber-stamp.stamp-indicted,
.suspect-polaroid-card[data-status="victim"] .rubber-stamp.stamp-victim {
  display: block;
  animation: stampSlam 280ms cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6) rotate(15deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.95) rotate(-10deg);
  }
  100% {
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(1) rotate(-12deg);
  }
}

/* Card border state changes */
.suspect-polaroid-card[data-status="innocent"] {
  outline: 2px solid #10b981;
}

.suspect-polaroid-card[data-status="culprit"] {
  outline: 3px solid #ef4444;
  box-shadow: 0 10px 30px rgba(185, 28, 28, 0.6);
}

/* ==========================================================================
   4. RESPONSIVE DESIGN ADJUSTMENTS
   ========================================================================== */
@media (max-width: 640px) {
  .corkboard-wrapper {
    padding: 0.85rem;
    border-width: 8px;
  }

  .suspects-cork-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stamp-actions-row {
    grid-template-columns: 1fr;
  }
}
