/**
 * Pomodoro Timer - Settings Configuration
 * 
 * Developer: Molla Samser (Founder, RSK World)
 * Designer: Rima Khatun (Designer & Tester, RSK World)
 * Website: https://rskworld.in/
 * Contact: +91 93305 39277 | hello@rskworld.in | support@rskworld.in
 * Location: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India - 713147
 * Year: 2026
 * 
 * Description: Default settings and configuration for Pomodoro Timer
 */

const DEFAULT_SETTINGS = {
    // Timer Settings
    timer: {
        workDuration: 25,        // minutes
        shortBreakDuration: 5,  // minutes
        longBreakDuration: 15,   // minutes
        sessionsUntilLongBreak: 4,
        autoStartBreak: false,
        autoStartWork: false,
        soundEnabled: true,
        volume: 0.7,
        notificationEnabled: true
    },
    
    // Theme Settings
    theme: {
        mode: 'light',           // light, dark, auto
        primaryColor: '#FF6B6B',
        accentColor: '#4ECDC4',
        backgroundColor: '#FFFFFF',
        textColor: '#2C3E50',
        cardBackground: '#F8F9FA',
        borderRadius: '12px'
    },
    
    // Task Management
    tasks: {
        autoSave: true,
        taskHistoryLimit: 100,
        defaultCategories: ['Work', 'Study', 'Personal', 'Health'],
        showCompletedTasks: false,
        taskPriorityEnabled: true
    },
    
    // Statistics
    statistics: {
        trackingEnabled: true,
        dailyGoal: 8,            // pomodoro sessions
        weeklyGoal: 40,          // pomodoro sessions
        showCharts: true,
        exportFormat: 'json'     // json, csv, pdf
    },
    
    // UI Settings
    ui: {
        language: 'en',
        compactMode: false,
        showKeyboardShortcuts: true,
        animationsEnabled: true,
        progressBarStyle: 'circular', // circular, linear
        showMotivationalQuotes: true
    },
    
    // Advanced Settings
    advanced: {
        debugMode: false,
        dataPersistence: true,
        syncAcrossDevices: false,
        backupEnabled: true,
        backupFrequency: 'weekly' // daily, weekly, monthly
    }
};

// Theme Presets
const THEME_PRESETS = {
    classic: {
        primaryColor: '#FF6B6B',
        accentColor: '#4ECDC4',
        backgroundColor: '#FFFFFF',
        textColor: '#2C3E50',
        cardBackground: '#F8F9FA'
    },
    dark: {
        primaryColor: '#FF6B6B',
        accentColor: '#4ECDC4',
        backgroundColor: '#1A1A1A',
        textColor: '#E0E0E0',
        cardBackground: '#2D2D2D'
    },
    ocean: {
        primaryColor: '#006BA6',
        accentColor: '#0496FF',
        backgroundColor: '#F0F8FF',
        textColor: '#0C2D48',
        cardBackground: '#E6F3FF'
    },
    forest: {
        primaryColor: '#2D6A4F',
        accentColor: '#52B788',
        backgroundColor: '#F1F8E9',
        textColor: '#1B4332',
        cardBackground: '#E8F5E9'
    },
    sunset: {
        primaryColor: '#FF6B35',
        accentColor: '#F77F00',
        backgroundColor: '#FFF5E6',
        textColor: '#3A0CA3',
        cardBackground: '#FFE8CC'
    }
};

// Sound Options
const SOUND_OPTIONS = {
    bell: {
        name: 'Bell',
        file: 'sounds/bell.mp3',
        icon: '🔔'
    },
    chime: {
        name: 'Chime',
        file: 'sounds/chime.mp3',
        icon: '🎵'
    },
    gong: {
        name: 'Gong',
        file: 'sounds/gong.mp3',
        icon: '🎶'
    },
    digital: {
        name: 'Digital',
        file: 'sounds/digital.mp3',
        icon: '📱'
    },
    nature: {
        name: 'Nature',
        file: 'sounds/nature.mp3',
        icon: '🌿'
    }
};

// Motivational Quotes
const MOTIVATIONAL_QUOTES = [
    "Focus on being productive instead of busy.",
    "The secret to getting ahead is getting started.",
    "You don't have to be great to start, but you have to start to be great.",
    "Focus on one thing at a time.",
    "A journey of a thousand miles begins with a single step.",
    "The way to get started is to quit talking and begin doing.",
    "Don't watch the clock; do what it does. Keep going.",
    "Success is the sum of small efforts repeated day in and day out.",
    "The only way to do great work is to love what you do.",
    "Believe you can and you're halfway there."
];

// Keyboard Shortcuts
const KEYBOARD_SHORTCUTS = {
    'Space': 'Start/Pause Timer',
    'R': 'Reset Timer',
    'S': 'Skip to Next Session',
    'T': 'Add New Task',
    'D': 'Toggle Dark Mode',
    'M': 'Mute/Unmute Sound',
    'Esc': 'Close Modal',
    'Ctrl+S': 'Save Current Task',
    'Ctrl+E': 'Export Data',
    'Ctrl+I': 'Import Data',
    'Ctrl+?': 'Show Keyboard Shortcuts'
};

// Export configuration
if (typeof module !== 'undefined' && module.exports) {
    module.exports = {
        DEFAULT_SETTINGS,
        THEME_PRESETS,
        SOUND_OPTIONS,
        MOTIVATIONAL_QUOTES,
        KEYBOARD_SHORTCUTS
    };
}
