/**
 * SimCzech Interactive Checklist styles
 * Dark theme kompatibilní
 */

.sc-checklist--initialized {
  margin: 2rem 0;
  background: var(--sc-bg-card, #1e293b);
  border: 1px solid var(--sc-border, #334155);
  border-radius: 8px;
  overflow: hidden;
}

/* Header */
.sc-cl__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid var(--sc-border, #334155);
}

.sc-cl__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-cl__icon {
  font-size: 1.2rem;
}

.sc-cl__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-text, #e2e8f0);
}

.sc-cl__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-cl__progress {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sc-accent, #f59e0b);
  font-variant-numeric: tabular-nums;
}

.sc-cl__reset,
.sc-cl__print {
  background: none;
  border: 1px solid var(--sc-border, #334155);
  border-radius: 4px;
  color: var(--sc-text-muted, #94a3b8);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.sc-cl__reset:hover,
.sc-cl__print:hover {
  border-color: var(--sc-accent, #f59e0b);
  color: var(--sc-accent, #f59e0b);
}

/* Progress bar */
.sc-cl__progress-bar {
  height: 3px;
  background: var(--sc-border, #334155);
}

.sc-cl__progress-fill {
  height: 100%;
  background: var(--sc-accent, #f59e0b);
  transition: width 0.3s ease, background 0.3s;
  width: 0;
}

/* Items */
.sc-cl__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-cl__item {
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  transition: background-color 0.2s, opacity 0.3s;
}

.sc-cl__item:last-child {
  border-bottom: none;
}

.sc-cl__label {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}

.sc-cl__label:hover {
  background: rgba(245, 158, 11, 0.05);
}

/* Custom checkbox */
.sc-cl__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sc-cl__checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--sc-border, #475569);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.sc-cl__checkmark::after {
  content: '✓';
  color: #000;
  font-weight: 900;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.sc-cl__checkbox:checked + .sc-cl__checkmark {
  background: var(--sc-accent, #f59e0b);
  border-color: var(--sc-accent, #f59e0b);
}

.sc-cl__checkbox:checked + .sc-cl__checkmark::after {
  opacity: 1;
}

.sc-cl__checkbox:focus-visible + .sc-cl__checkmark {
  box-shadow: 0 0 0 2px var(--sc-accent, #f59e0b);
}

/* Text */
.sc-cl__action {
  color: var(--sc-text, #e2e8f0);
  font-size: 0.9rem;
}

.sc-cl__separator {
  color: var(--sc-text-muted, #64748b);
  margin: 0 4px;
}

.sc-cl__value {
  color: var(--sc-accent, #f59e0b);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Checked state */
.sc-cl__item--done .sc-cl__action {
  text-decoration: line-through;
  opacity: 0.5;
}

.sc-cl__item--done .sc-cl__value {
  opacity: 0.5;
}

/* Complete message */
.sc-cl__complete {
  text-align: center;
  padding: 12px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border-top: 1px solid var(--sc-border, #334155);
  animation: sc-cl-fadeIn 0.3s ease;
}

/* Animations */
@keyframes sc-cl-check {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes sc-cl-fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .sc-cl__header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sc-cl__label {
    padding: 8px 12px;
  }

  .sc-cl__action,
  .sc-cl__value {
    font-size: 0.8rem;
  }
}

/* Print */
@media print {
  .sc-checklist--initialized {
    border: 2px solid #000;
    background: #fff;
    color: #000;
  }

  .sc-cl__checkmark {
    border: 2px solid #000;
    background: #fff;
  }

  .sc-cl__action,
  .sc-cl__value,
  .sc-cl__title {
    color: #000;
  }

  .sc-cl__reset,
  .sc-cl__print {
    display: none;
  }
}
