/*
 * BluGarda ESPHome Design System
 * CSS Custom Properties (Variables)
 * Version 1.0
 */

:root {
    /* Primary Colors - BluGarda Brand */
    --primary-900: #002840;
    --primary-800: #003652;
    --primary-700: #00476B;
    --primary-600: #005785;
    --primary-500: #00689E;
    --primary-100: #E6F3F8;
    --primary-50: #F0F8FB;

    /* Secondary Accent - Teal/Cyan */
    --secondary-700: #007A93;
    --secondary-600: #0096B3;
    --secondary-500: #00B2D1;
    --secondary-100: #E0F7FB;

    /* Semantic Status Colors */
    --success-700: #047857;
    --success-600: #059669;
    --success-500: #10B981;
    --success-100: #D1FAE5;
    --success-50: #ECFDF5;

    --warning-700: #B45309;
    --warning-600: #D97706;
    --warning-500: #F59E0B;
    --warning-100: #FEF3C7;
    --warning-50: #FFFBEB;

    --danger-700: #B91C1C;
    --danger-600: #DC2626;
    --danger-500: #EF4444;
    --danger-100: #FEE2E2;
    --danger-50: #FEF2F2;

    --info-700: #1D4ED8;
    --info-600: #2563EB;
    --info-500: #3B82F6;
    --info-100: #DBEAFE;
    --info-50: #EFF6FF;

    /* Neutral Grayscale */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Elevation & Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Interactive States */
    --focus-ring: 0 0 0 3px rgba(0, 71, 107, 0.15);
    --focus-ring-danger: 0 0 0 3px rgba(220, 38, 38, 0.15);

    /* Typography */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Spacing (8px Grid) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */

    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-base: 0.375rem; /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-full: 9999px;   /* Pills, circles */

    /* Icon Sizes */
    --icon-xs: 14px;
    --icon-sm: 16px;
    --icon-base: 20px;
    --icon-lg: 24px;
    --icon-xl: 32px;
    --icon-2xl: 48px;

    /* Transitions */
    --transition-fast: 150ms;
    --transition-base: 200ms;
    --transition-slow: 300ms;
    --transition-slower: 500ms;

    /* Easing Functions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* Responsive Spacing */
@media (max-width: 768px) {
    :root {
        --space-section: var(--space-6);  /* 24px on mobile */
    }
}

@media (min-width: 769px) {
    :root {
        --space-section: var(--space-10); /* 40px on desktop */
    }
}
