/**
 * Quick Action Buttons Component
 *
 * Small action buttons for cards (flashcards, quiz shortcuts, etc.)
 * Part of F-032 Modern UI/UX Redesign
 *
 * Usage:
 * <div class="quick-actions">
 *   <button class="quick-action" data-action="flashcards">
 *     <svg class="quick-action__icon">...</svg>
 *     <span class="quick-action__label">Cards</span>
 *   </button>
 * </div>
 */

/* ============================================================================
   Container
   ============================================================================ */

.quick-actions {
  display: flex;
  gap: var(--space-2);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .quick-actions {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* ============================================================================
   Button
   ============================================================================ */

.quick-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  color: #8b5cf6;
  font-size: 10px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.quick-action:hover:not(.quick-action--disabled) {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  transform: translateY(-1px);
}

.quick-action:active:not(.quick-action--disabled) {
  transform: translateY(0);
}

/* ============================================================================
   Icon
   ============================================================================ */

.quick-action__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================================
   Disabled State
   ============================================================================ */

.quick-action--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

[data-theme="light"] .quick-action--disabled {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   Mobile Responsive
   ============================================================================ */

@media (max-width: 600px) {
  .quick-action {
    padding: 6px 8px;
    font-size: 9px;
  }

  .quick-action__icon {
    width: 12px;
    height: 12px;
  }
}
