/**
 * WiFiX-Enhanced Configuration
 *
 * NOTE: This file replaces any sample branding. Customize values to your deployment.
 */

#ifndef CONFIG_H
#define CONFIG_H

// =============================================================================
// DEVICE CONFIGURATION
// =============================================================================

#define DEVICE_NAME "WiFiX-Enhanced"
#define DEVICE_VERSION "1.2.0"
#define HARDWARE_ID "BW16_ESP32"

// Operational modes
#define MODE_CAPTIVE_PORTAL 0
#define MODE_DEAUTH_ONLY 1
#define MODE_EVIL_TWIN 2
#define OPERATING_MODE MODE_CAPTIVE_PORTAL

// =============================================================================
// NETWORK CONFIGURATION
// =============================================================================

// SoftAP settings (no sample branding)
#define DEFAULT_SSID "WiFiX-Enhanced"
#define DEFAULT_PASSWORD ""    // Open AP by default; set a password to enable WPA2-PSK
#define HIDDEN_NETWORK false
#define MAX_CLIENTS 8

// Addressing
#define AP_IP_ADDR "192.168.4.1"
#define AP_GATEWAY "192.168.4.1"
#define AP_SUBNET "255.255.255.0"

// Web server configuration
#define WEB_SERVER_PORT 80
#define DNS_PORT 53
#define CAPTIVE_PORTAL_DOMAIN "portal.local"
#define REDIRECT_URL "http://192.168.4.1"

// =============================================================================
// HARDWARE PIN CONFIGURATION
// =============================================================================

// I2C for OLED display
#define I2C_SDA 21
#define I2C_SCL 22
#define OLED_ADDRESS 0x3C
#define OLED_RESET_PIN -1

// UART for BW16 communication
#define BW16_UART_TX 17
#define BW16_UART_RX 16
#define BW16_BAUD_RATE 115200

// Status LED (optional)
#define STATUS_LED_PIN 2
#define LED_ACTIVE_HIGH true

// =============================================================================
// WEB INTERFACE / BRANDING
// =============================================================================

#define PORTAL_COMPANY_NAME "WiFiX Enhanced Portal"
#define PORTAL_TAGLINE "Local WiFi Access"
#define PORTAL_LOGO_URL "/logo.png"
#define PORTAL_BACKGROUND_URL "/background.jpg"
#define SESSION_TIMEOUT_MINUTES 120
#define ENABLE_SOCIAL_LOGIN false

// Support (generic)
#define SUPPORT_PHONE "+1-000-000-0000"
#define SUPPORT_EMAIL "support@portal.local"
#define SUPPORT_HOURS "Mon-Fri, 8:00-18:00"

// Form validation
#define MIN_PASSWORD_LENGTH 6

// =============================================================================
// SECURITY SETTINGS
// =============================================================================

#define USE_HTTPS false

// =============================================================================
// DEBUGGING AND LOGGING
// =============================================================================

#define DEBUG_LEVEL 2

#endif // CONFIG_H