/* Custom Noir Styling & Visual Flourishes */

.font-tajawal {
  font-family: 'Tajawal', sans-serif;
}
.font-cairo {
  font-family: 'Cairo', sans-serif;
}
.font-typewriter {
  font-family: 'Special Elite', 'Tajawal', serif;
}

/* Film Noir Vignette */
.vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(5, 8, 14, 0.75) 90%, rgba(3, 5, 10, 0.95) 100%);
}

/* Corkboard Background for Pinboard */
.corkboard-bg {
  background-color: #14100c;
  background-image: 
    radial-gradient(#291f16 15%, transparent 16%), 
    radial-gradient(#1f1710 15%, transparent 16%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Interactive Clue Pin Hotspots on Crime Scene */
.clue-pin {
  cursor: pointer;
  outline: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clue-pin:hover, .clue-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 20;
}

.clue-pin:active {
  transform: translate(-50%, -50%) scale(0.92);
}

.pin-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.pin-icon {
  position: relative;
  width: 38px;
  height: 38px;
  background: #1e293b;
  border: 2px solid #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6), inset 0 0 8px rgba(0,0,0,0.8);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  transition: all 0.2s;
}

.clue-pin.collected .pin-icon {
  border-color: #10b981;
  background: #064e3b;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.clue-pin.collected .pin-pulse {
  display: none;
}

.pin-tag {
  margin-top: 4px;
  background: rgba(13, 19, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.clue-pin:hover .pin-tag {
  opacity: 1;
  background: #7f1d1d;
  border-color: #ef4444;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  80%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Tab active state */
.nav-tab.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 2px solid #f59e0b;
}

.suspect-tab-btn.active {
  background: rgba(217, 119, 6, 0.18);
  border-color: #f59e0b;
}

/* Polaroid Pin Top */
.pin-top {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #ef4444, #7f1d1d);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
  border: 1px solid #450a0a;
}

/* Chat bubble styling with enhanced contrast and generous padding */
.chat-bubble-player {
  background: linear-gradient(145deg, #1e293b, #131d2b);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px 18px 4px 18px;
  color: #f1f5f9;
}

.chat-bubble-suspect {
  background: linear-gradient(145deg, #241c14, #19120b);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 18px 18px 18px 4px;
  color: #fef3c7;
}

.chat-bubble-confront {
  background: linear-gradient(145deg, #3f1212, #290a0a);
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: 18px;
  color: #fee2e2;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Hide scrollbars gracefully for carousels */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Radio Cards in Accusation */
.accuse-radio-card input:checked + .card-body {
  border-color: #ef4444;
  background: rgba(185, 28, 28, 0.25);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.accuse-radio-card .card-body {
  padding: 10px;
  border-radius: 12px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.accuse-radio-card .card-body .name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
}

.accuse-radio-card:hover .card-body {
  border-color: rgba(245, 158, 11, 0.5);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.4);
}