/* === NOTEBOOK === */
.notebook-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.notebook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.notebook-header h2 {
  font-size: 1.2rem;
}

.clue-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Clue cards in notebook */
.notebook-clues {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notebook-clue {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  padding: 14px 18px;
  transition: all 0.2s;
  animation: notebook-card-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.notebook-clue:nth-child(1)  { animation-delay: 0.04s; }
.notebook-clue:nth-child(2)  { animation-delay: 0.10s; }
.notebook-clue:nth-child(3)  { animation-delay: 0.16s; }
.notebook-clue:nth-child(4)  { animation-delay: 0.22s; }
.notebook-clue:nth-child(5)  { animation-delay: 0.28s; }
.notebook-clue:nth-child(6)  { animation-delay: 0.34s; }
.notebook-clue:nth-child(7)  { animation-delay: 0.40s; }
.notebook-clue:nth-child(8)  { animation-delay: 0.46s; }
.notebook-clue:nth-child(9)  { animation-delay: 0.52s; }
.notebook-clue:nth-child(10) { animation-delay: 0.58s; }
.notebook-clue:nth-child(11) { animation-delay: 0.64s; }
.notebook-clue:nth-child(12) { animation-delay: 0.70s; }
.notebook-clue:nth-child(n+13) { animation-delay: 0.76s; }

@keyframes notebook-card-in {
  from {
    opacity: 0;
    transform: translateY(10px) translateX(-4px);
    border-left-color: var(--accent-gold);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

.notebook-clue.read {
  border-left-color: var(--border);
}

.notebook-clue .clue-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.notebook-clue .clue-id {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: var(--surface-light);
  padding: 2px 8px;
  border: 1px solid var(--accent-gold-dim);
}

.notebook-clue .clue-title {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: normal;
}

.notebook-clue .clue-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.notebook-clue .clue-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Deductions section in notebook */
.notebook-deductions {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.notebook-deductions h3 {
  margin-bottom: 12px;
  color: var(--accent-gold);
}

.deduction-item {
  background: var(--surface);
  border: 1px solid var(--success);
  border-left: 3px solid var(--success);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  animation: notebook-deduction-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.deduction-item:nth-child(1) { animation-delay: 0.10s; }
.deduction-item:nth-child(2) { animation-delay: 0.20s; }
.deduction-item:nth-child(3) { animation-delay: 0.30s; }
.deduction-item:nth-child(4) { animation-delay: 0.40s; }
.deduction-item:nth-child(5) { animation-delay: 0.50s; }
.deduction-item:nth-child(n+6) { animation-delay: 0.60s; }

@keyframes notebook-deduction-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notebook-clue,
  .deduction-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.deduction-item .deduction-pair {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Empty notebook state */
.notebook-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.notebook-empty p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}
