/* VulWall Brand Design System */
/* This file contains all brand colors, design tokens, and reusable CSS variables */

:root {
    /* ========================================
       BRAND COLORS
    ======================================== */
    
    /* Primary Brand Colors */
    --brand-dark-blue: #212C5E;
    --brand-blue: #0056A1;
    --brand-very-dark-blue: #101827;
    --brand-orange: #F47D17;
    --brand-blue-light: #60a5fa;
    --brand-off-white: #FBFBFD;

    /* Brand Hover States */
    --brand-orange-hover: #E56D07;
    --brand-orange-active: #D66B0F;

    /* Primary brand alias (use brand-blue as primary) */
    --brand-primary: var(--brand-blue);
    --brand-primary-rgb: 0, 86, 161; /* RGB values for brand-blue #0056A1 */
    
    /* Brand Gradients */
    --brand-primary-gradient: linear-gradient(135deg, var(--brand-dark-blue) 0%, #1a3a7a 25%, #2d4a8a 50%, #3d5a9a 75%, var(--brand-blue) 100%);
    --brand-orange-gradient: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 100%);
    --brand-dark-gradient: linear-gradient(135deg, var(--brand-very-dark-blue) 0%, var(--brand-dark-blue) 100%);
    
    /* ========================================
       SEMANTIC COLORS
    ======================================== */
    
    /* Status Colors */
    --color-success: #10B981;
    --color-success-light: #34D399;
    --color-success-bg: #F0FDF4;
    --color-success-border: rgba(16, 185, 129, 0.2);
    
    --color-warning: #F59E0B;
    --color-warning-light: #FBBF24;
    --color-warning-bg: #FFFBEB;
    --color-warning-border: rgba(245, 158, 11, 0.2);
    
    --color-danger: #EF4444;
    --color-danger-light: #FF6B6B;
    --color-danger-bg: #FEF2F2;
    --color-danger-border: rgba(239, 68, 68, 0.2);
    
    --color-info: #3B82F6;
    --color-info-light: #60A5FA;
    --color-info-bg: #EFF6FF;
    --color-info-border: rgba(59, 130, 246, 0.2);
    
    /* ========================================
       NEUTRAL COLORS
    ======================================== */
    
    /* Gray Scale */
    --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;
    
    /* ========================================
       GLASSMORPHISM & EFFECTS
    ======================================== */
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-strong: rgba(255, 255, 255, 0.3);
    
    /* Shadow System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-brand: 0 8px 32px rgba(33, 44, 94, 0.15);
    --shadow-orange: 0 8px 32px rgba(244, 125, 23, 0.3);
    
    /* ========================================
       TYPOGRAPHY
    ======================================== */
    
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Font Sizes */
    --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 */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ========================================
       SPACING SYSTEM
    ======================================== */
    
    /* Spacing Scale */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;   /* 2px */
    --space-1: 0.25rem;      /* 4px */
    --space-1-5: 0.375rem;   /* 6px */
    --space-2: 0.5rem;       /* 8px */
    --space-2-5: 0.625rem;   /* 10px */
    --space-3: 0.75rem;      /* 12px */
    --space-3-5: 0.875rem;   /* 14px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-9: 2.25rem;      /* 36px */
    --space-10: 2.5rem;      /* 40px */
    --space-11: 2.75rem;     /* 44px */
    --space-12: 3rem;        /* 48px */
    --space-14: 3.5rem;      /* 56px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-28: 7rem;        /* 112px */
    --space-32: 8rem;        /* 128px */
    
    /* ========================================
       BORDER RADIUS
    ======================================== */
    
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ========================================
       TRANSITIONS & ANIMATIONS
    ======================================== */
    
    /* Transition Durations */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;
    
    /* Transition Timing Functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ========================================
       Z-INDEX SCALE
    ======================================== */
    
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
    
    /* ========================================
       BREAKPOINTS (for reference)
    ======================================== */
    
    /* Mobile First Approach */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ========================================
   DARK THEME VARIABLES
======================================== */

html[data-bs-theme="dark"] {
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-tertiary: #d1d5db;
    --text-muted: #6b7280;
    --bg-primary: #0f1419;
    --bg-surface: #1a1f2e;
    --bg-surface-alt: #1f2937;
    --bg-surface-hover: #252d3d;
    --border-color: #2d3748;
    --hover-color: #374151;
}

/* ========================================
   UTILITY CLASSES
======================================== */

/* Brand Color Utilities */
.text-brand-dark-blue { color: var(--brand-dark-blue); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-orange { color: var(--brand-orange); }
.text-brand-off-white { color: var(--brand-off-white); }

.bg-brand-dark-blue { background-color: var(--brand-dark-blue); }
.bg-brand-blue { background-color: var(--brand-blue); }
.bg-brand-orange { background-color: var(--brand-orange); }
.bg-brand-off-white { background-color: var(--brand-off-white); }

.bg-brand-gradient { background: var(--brand-primary-gradient); }
.bg-brand-orange-gradient { background: var(--brand-orange-gradient); }

/* Border Utilities */
.border-brand-dark-blue { border-color: var(--brand-dark-blue); }
.border-brand-blue { border-color: var(--brand-blue); }
.border-brand-orange { border-color: var(--brand-orange); }

/* Shadow Utilities */
.shadow-brand { box-shadow: var(--shadow-brand); }
.shadow-orange { box-shadow: var(--shadow-orange); }

/* Glass Effect Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-strong);
}

/* ========================================
   RESPONSIVE DESIGN HELPERS
======================================== */

/* Container Max Widths */
.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }
.container-2xl { max-width: 1536px; }

/* ========================================
   ACCESSIBILITY HELPERS
======================================== */

/* Focus States */
.focus-brand:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

.focus-brand:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --brand-primary-gradient: linear-gradient(135deg, var(--brand-dark-blue) 0%, var(--brand-blue) 100%);
        --glass-bg: rgba(255, 255, 255, 0.2);
        --glass-border: rgba(255, 255, 255, 0.4);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-75: 0.01ms;
        --duration-100: 0.01ms;
        --duration-150: 0.01ms;
        --duration-200: 0.01ms;
        --duration-300: 0.01ms;
        --duration-500: 0.01ms;
        --duration-700: 0.01ms;
        --duration-1000: 0.01ms;
    }
}

/* ========================================
   SHARED COMPONENT PATTERNS
======================================== */

/* Orange Button Base — shared by .cta-button, .nav-button, .nav-cta */
.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--brand-orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-orange:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-orange:active {
    transform: translateY(0);
    background: var(--brand-orange-active);
}

/* Card Hover Lift — shared translateY + shadow pattern */
.hover-lift {
    transition: transform var(--duration-200) var(--ease-out),
                box-shadow var(--duration-200) var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Badge Base — shared by .kb-owasp-badge, .kb-effort-badge, .tl-badge, .kb-tag-pill */
.badge-base {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
}
