/* Tarot Journal Styles */

/* Journal page specific styles */
.journal-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  background: rgba(139, 90, 212, 0.1);
  border-radius: 8px;
  border: 1px solid var(--slime-dark);
}

.journal-controls .small {
  font-weight: 600;
  color: var(--ink);
}

.journal-controls input,
.journal-controls select {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--card);
  font-family: inherit;
  font-size: 14px;
}

.journal-controls button {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--card);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.journal-controls button:hover {
  background: var(--slime);
  border-color: var(--slime);
  color: var(--card);
}

/* Journal list */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.journal-entry {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.journal-entry:hover {
  border-color: var(--slime);
  box-shadow: 0 4px 12px var(--slime-glow);
}

.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.journal-entry-type {
  font-weight: 700;
  color: var(--slime);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.journal-entry-date {
  font-size: 0.85rem;
  opacity: 0.7;
}

.journal-entry-cards {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.journal-entry-card {
  font-size: 1.5rem;
  cursor: help;
  transition: transform 0.2s;
}

.journal-entry-card:hover {
  transform: scale(1.2);
}

.journal-entry-notes {
  background: rgba(139, 90, 212, 0.08);
  border-left: 3px solid var(--slime-dark);
  padding: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  border-radius: 0 4px 4px 0;
}

.journal-entry-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.journal-entry-tag {
  background: rgba(139, 90, 212, 0.15);
  border: 1px solid var(--slime);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  color: var(--slime);
}

.journal-entry-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.journal-entry-action {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  transition: background 0.2s, color 0.2s;
}

.journal-entry-action:hover {
  background: var(--slime);
  border-color: var(--slime);
  color: var(--card);
}

/* Journal stats */
.journal-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.journal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 90, 212, 0.08);
  border-radius: 8px;
  border: 1px solid var(--slime-dark);
  min-width: 80px;
}

.journal-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slime);
}

.journal-stat-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
}

/* Journal page body styling */
body.tarot-journal-page .hero {
  padding: 2rem 1rem;
}

body.tarot-journal-page .page-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-shadow: 0 0 10px var(--slime-glow);
}

/* Responsive */
@media (max-width: 600px) {
  .journal-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .journal-controls input,
  .journal-controls select {
    width: 100%;
    min-width: 100%;
  }

  .journal-entry-cards {
    justify-content: center;
  }

  .journal-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-entry,
  .journal-entry-card {
    animation: none !important;
    transition: none !important;
  }
}