/* src/css/exercise-detail.css */

/* Exercise Detail Screen */
.history-entry {
  background: var(--color-surface);
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.history-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.history-date {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-text);
}

.history-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.edit-entry-btn,
.delete-entry-btn {
  min-width: var(--tap-target-min);
  min-height: var(--tap-target-min);
}

.history-sets {
  font-size: var(--font-sm);
  color: var(--color-text-dim);
  font-family: 'Courier New', monospace;
}

/* Performance Analysis Badges */
.performance-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 6px;
  font-size: var(--font-sm);
  font-weight: 500;
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

.badge-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--color-danger);
  color: var(--color-danger-readable, #fecaca);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-warning);
  color: var(--color-warning-readable, #fde68a);
}

/* Rotation suggestion badge */
.performance-badge.rotation {
  background-color: rgba(245, 158, 11, 0.15);
  border-left: 4px solid var(--color-warning, #f59e0b);
  color: var(--color-warning-readable, #fde68a);
}

.performance-badge.rotation::before {
  content: '⟳ ';
  font-size: 1.2em;
  margin-right: 0.25rem;
}

.performance-badge button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-warning, #f59e0b);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.performance-badge button:hover {
  background-color: rgba(245, 158, 11, 0.8);
}

/* Make badges more prominent on small screens */
@media (max-width: 768px) {
  .performance-badge {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-sm);
  }

  .performance-badge button {
    width: 100%;
  }
}

/* Progress Badges */
.history-badges {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  flex-wrap: wrap;
}

.history-badges .badge {
  font-size: var(--font-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--color-surface);
  border-radius: 6px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .history-badges {
    flex-direction: column;
  }

  .history-badges .badge {
    width: 100%;
    justify-content: center;
  }
}

/* Export Button */
#export-exercise-btn {
  width: 100%;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  min-height: 50px;
  font-size: 16px;
}
