/* Theme CSS - Modern Whodunnit System */

/* Dialogue Styling */
.narrative-intro {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-body);
  border-radius: var(--radius-md);
  font-style: italic;
}

.narrative-dialogue {
  margin: var(--space-4) 0;
}

.dialogue-line {
  margin: var(--space-3) 0;
  padding: var(--space-2);
  border-left: 3px solid transparent;
  padding-left: var(--space-3);
}

.dialogue-line.holmes {
  border-left-color: rgba(0, 0, 0, 0.7);
}

.dialogue-line.watson {
  border-left-color: var(--primary-dark);
}

.dialogue-line.witness {
  border-left-color: var(--text-secondary);
}

.dialogue-line strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.narrative-conclusion {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-body);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--text-secondary);
}

/* Game Actions */
.game-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Evidence Styling */
.evidence-list li strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Mode Cards */
.mode-card {
  cursor: pointer;
  text-align: center;
}

.mode-card:hover .btn {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #4A4A4A !important;
}

/* Progress Elements */
.progress-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Game Complete */
.game-complete {
  text-align: center;
  padding: var(--space-8);
}

.game-complete h2 {
  font-size: var(--text-3xl);
  color: var(--accent-gold);
  margin-bottom: var(--space-4);
}

/* Case List */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.case-card {
  background: var(--card-bg);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.case-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-2);
  min-height: 3.2em;
  display: flex;
  align-items: flex-start;
}

.case-card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-style: italic;
}



.case-card-location {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.case-image-container {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  position: relative;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.case-image-placeholder {
  width: 100%;
  height: 120px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.placeholder-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
}

.case-number {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: var(--space-1);
}

.case-card-stats {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color);
}

.case-stat {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
  display: flex;
}

.stat-label {
  width: 140px;
  flex-shrink: 0;
}

.stat-value {
  flex: 1;
}

.case-list-actions {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--primary-light);
}

.complete-stats {
  background: var(--bg-body);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.complete-stats p {
  font-size: var(--text-lg);
  margin: var(--space-2) 0;
}

/* Warning Text */
.warning {
  color: var(--warning);
  font-weight: 500;
  margin: var(--space-4) 0;
}

/* Detective Theme Elements */
.case-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: repeating-linear-gradient(
    45deg,
    var(--accent-gold),
    var(--accent-gold) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.1;
  z-index: -1;
  border-radius: var(--radius-lg);
}

/* Paper Effect */
.case-content {
  position: relative;
  background: 
    linear-gradient(to right, transparent 0px, rgba(0,0,0,0.02) 1px, transparent 2px),
    linear-gradient(to bottom, transparent 0px, rgba(0,0,0,0.02) 1px, transparent 2px);
  background-size: 20px 20px;
}

/* Typewriter Font for Case Titles */
.case-title,
.hero-title {
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

/* Evidence Tags */
.evidence-list li {
  position: relative;
  background: var(--bg-card);
  margin: var(--space-1) 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.evidence-list li::before {
  content: '📌';
  position: absolute;
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
}

/* Hint Categories */
.hint-category h4 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: var(--space-2);
}

/* Special Effects */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.matches-filter {
  animation: pulse 2s ease-in-out infinite;
}

/* Loading Animation Enhancement */
.loading-screen::before {
  content: '🔍';
  position: absolute;
  font-size: 200px;
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
  .header,
  .game-actions,
  .nav-button,
  .btn,
  .modal {
    display: none !important;
  }
  
  .case-panel {
    width: 100%;
    max-width: none;
    border: 1px solid black;
    box-shadow: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility Enhancements */
.skip-link:focus {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: bold;
}

/* Focus visible styles */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .matches-evidence {
    animation: none;
  }
  
  .loading-screen::before {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: black;
    color: white;
    border: 2px solid white;
  }
  
  .btn-secondary {
    background: white;
    color: black;
    border: 2px solid black;
  }
  
  .suspect-card {
    border: 2px solid black;
  }
  
  .matches-filter {
    border-width: 4px;
    animation: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-bg);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--bg-body);
} 