/**
 * Storage configuration constants
 * Replaces Supabase storage bucket configs with Convex storage equivalents.
 */

/** Contact form attachment storage bucket */
export const CONTACT_ATTACHMENTS_BUCKET = "contact-attachments";

/** Job application CV storage bucket */
export const JOB_CV_BUCKET = "job-applications";

/** Blog image storage bucket */
export const BLOG_IMAGES_BUCKET = "blog-images";

/** User avatar storage bucket */
export const AVATARS_BUCKET = "avatars";

/** Email attachment storage bucket */
export const EMAIL_ATTACHMENTS_BUCKET = "email-attachments";

/**
 * Contact form file upload constraints
 */
export const FILE_UPLOAD_CONFIG = {
  maxFiles: 3,
  maxSizeBytes: 10 * 1024 * 1024, // 10MB
  allowedMimeTypes: [
    "image/jpeg",
    "image/jpg",
    "image/png",
    "image/gif",
    "image/webp",
    "application/pdf",
    "application/msword",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  ],
} as const;

/**
 * Job application upload constraints
 */
export const JOB_APPLICATION_UPLOAD_CONFIG = {
  maxFiles: 1,
  maxSizeBytes: 10 * 1024 * 1024, // 10MB
  allowedMimeTypes: ["application/pdf"],
  allowedExtensions: [".pdf"],
} as const;

/**
 * Blog image upload constraints
 */
export const BLOG_IMAGE_UPLOAD_CONFIG = {
  maxSizeBytes: 5 * 1024 * 1024, // 5MB
  allowedMimeTypes: ["image/png", "image/jpeg", "image/webp"],
} as const;
