/**
 * Theme utility functions for applying theme-aware classes
 */

export type ThemeLayoutMode = 'dark' | 'light';

/**
 * Get background classes based on theme layout mode
 */
export const getThemeBackgroundClasses = (mode: ThemeLayoutMode): string => {
  if (mode === 'light') {
    return 'bg-gradient-to-b from-gray-50 via-white to-gray-50';
  }
  // Dark mode (default)
  return 'bg-gradient-to-b from-[#0f0f0f] via-[#1a1a1a] to-[#0f0f0f]';
};

/**
 * Get hero section background classes based on theme layout mode
 */
export const getThemeHeroBackgroundClasses = (mode: ThemeLayoutMode): string => {
  if (mode === 'light') {
    return 'bg-gradient-to-br from-gray-50 via-white to-gray-50 border-b border-gray-200';
  }
  // Dark mode (default)
  return 'bg-gradient-to-br from-[#1a1a1a] via-[#0f0f0f] to-[#1a1a1a] border-b border-[var(--luxury-gold)]/10';
};

/**
 * Get text color classes based on theme layout mode
 */
export const getThemeTextClasses = (mode: ThemeLayoutMode): {
  primary: string;
  secondary: string;
  muted: string;
} => {
  if (mode === 'light') {
    return {
      primary: 'text-gray-900',
      secondary: 'text-gray-700',
      muted: 'text-gray-500',
    };
  }
  // Dark mode (default)
  return {
    primary: 'text-white',
    secondary: 'text-gray-300',
    muted: 'text-gray-400',
  };
};

/**
 * Get card/container background classes based on theme layout mode
 */
export const getThemeCardClasses = (mode: ThemeLayoutMode): string => {
  if (mode === 'light') {
    return 'bg-white border border-gray-200';
  }
  // Dark mode (default)
  return 'bg-gradient-to-br from-[#1a1a1a] via-[#0f0f0f] to-[#0a0a0a] border border-[var(--luxury-gold)]/30';
};

/**
 * Get input/field background classes based on theme layout mode
 */
export const getThemeInputClasses = (mode: ThemeLayoutMode): string => {
  if (mode === 'light') {
    return 'bg-white border-gray-300 text-gray-900';
  }
  // Dark mode (default)
  return 'bg-gradient-to-br from-[#0f0f0f] to-[#0a0a0a] border-gray-700 text-white';
};

