/* StoryBench Custom CSS for UIKit */
/* Only includes customizations not provided by UIKit */

:root {
  /* Ressort colors */
  --color-politik: #e74c3c;
  --color-kultur: #9b59b6;
  --color-sport: #3498db;
  --color-wirtschaft: #2ecc71;
  --color-lokales: #f39c12;
  --color-sonstiges: #95a5a6;

  /* Priority colors */
  --color-urgent: #dc2626;
  --color-high: #ea580c;
  --color-medium: #d97706;
  --color-low: #6b7280;
}

/* Navbar customizations */
.uk-navbar-container {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 640px) {
  .uk-navbar-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

.uk-navbar-item {
  column-gap: 0;
}

.uk-navbar-item.uk-logo span {
  color: #2563eb;
}

/* Language switch button group */
.lang-switch .uk-button {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Ressort section headers */
.ressort-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #e5e5e5;
}

.ressort-header[data-ressort="politik"] { border-color: var(--color-politik); }
.ressort-header[data-ressort="kultur"] { border-color: var(--color-kultur); }
.ressort-header[data-ressort="sport"] { border-color: var(--color-sport); }
.ressort-header[data-ressort="wirtschaft"] { border-color: var(--color-wirtschaft); }
.ressort-header[data-ressort="lokales"] { border-color: var(--color-lokales); }
.ressort-header[data-ressort="sonstiges"] { border-color: var(--color-sonstiges); }

.ressort-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.ressort-count {
  background: #f8f9fa;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Story cards with priority borders */
.story-card {
  border-left: 4px solid #e5e5e5;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  /* Adjust padding to compensate for left border */
  padding-left: calc(20px - 4px) !important;
  padding-right: 20px !important;
}

.story-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.story-card[data-priority="urgent"] { border-left-color: var(--color-urgent); }
.story-card[data-priority="high"] { border-left-color: var(--color-high); }
.story-card[data-priority="medium"] { border-left-color: var(--color-medium); }
.story-card[data-priority="low"] { border-left-color: var(--color-low); }

.story-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.story-angle {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Rejected and accepted story cards */
.story-card.rejected,
.story-card.accepted {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e5e5;
}

/* Priority badges - extend uk-badge with dark backgrounds for contrast */
.uk-badge.badge-priority-urgent {
  background: var(--color-urgent);
  color: white;
}

.uk-badge.badge-priority-high {
  background: var(--color-high);
  color: white;
}

.uk-badge.badge-priority-medium {
  background: var(--color-medium);
  color: white;
}

.uk-badge.badge-priority-low {
  background: var(--color-low);
  color: white;
}

.uk-badge.badge-format {
  background: #2563eb;
  color: white;
}

.uk-badge.badge-effort-quick {
  background: #059669;
  color: white;
}

.uk-badge.badge-effort-medium {
  background: #d97706;
  color: white;
}

.uk-badge.badge-effort-deep {
  background: #dc2626;
  color: white;
}

.uk-badge.badge-source {
  background: #4f46e5;
  color: white;
}

.uk-badge.badge-timestamp {
  background: #6b7280;
  color: white;
}

/* Timeline score circles */
.timeline-score {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.timeline-score.score-high { background: #059669; }
.timeline-score.score-medium { background: #d97706; }
.timeline-score.score-low { background: #6c757d; }

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-excerpt {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.timeline-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Status dots for sources table */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot.active { background: #059669; }
.status-dot.inactive { background: #6c757d; }
.status-dot.error { background: #dc2626; }

/* Item cards for cluster detail */
.item-card {
  transition: box-shadow 0.2s ease;
}

.item-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.item-title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.item-title:hover {
  color: #2563eb;
}

.item-source {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

.item-excerpt {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

/* HTMX animations */
.htmx-added {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast auto-hide transition */
#toast {
  transition: opacity 0.3s ease;
}
