use std::path::PathBuf;

pub fn app_data_dir() -> PathBuf {
    lumotia_core::paths::app_paths().app_data_dir()
}

/// Path to the SQLite database file.
pub fn database_path() -> PathBuf {
    lumotia_core::paths::app_paths().database_path()
}

/// Directory for saved audio recordings.
pub fn recordings_dir() -> PathBuf {
    lumotia_core::paths::app_paths().recordings_dir()
}

/// Directory for crash dumps written by the Rust panic hook.
/// Each crash is a single text file: `<unix-ts>-<short-id>.crash`.
/// Used by the diagnostic-report bundler in Settings → About.
pub fn crashes_dir() -> PathBuf {
    lumotia_core::paths::app_paths().crashes_dir()
}

/// Directory for the rolling Rust log file.
///
/// The base filename is `lumotia.log`; daily rotation produces dated
/// siblings (e.g. `lumotia.log.2026-05-12`). The appender keeps the
/// 7 most-recent days and prunes older files on rotation.
///
/// Subscriber and rotation policy are configured by `init_tracing` in
/// `src-tauri/src/lib.rs` at startup; the diagnostic-report bundler in
/// `src-tauri/src/commands/diagnostics.rs` attaches the live file from
/// this directory to user-submitted crash reports.
pub fn logs_dir() -> PathBuf {
    lumotia_core::paths::app_paths().logs_dir()
}
