/*
 * Arrow Electronics Brand Theme
 * GCM Documentation Website
 * 
 * Based on Arrow Brand Guidelines:
 * - Human, Honest, Wise
 * - The human voice of technology
 * - Five years out mindset
 */

/* ============================================================================
   CSS Custom Properties (Variables)
   ========================================================================= */

:root {
  /* Arrow Brand Colors */
  --arrow-blue: #0066CC;
  --arrow-blue-dark: #004C99;
  --arrow-blue-light: #3385D6;
  --arrow-gray: #6C757D;
  --arrow-gray-dark: #495057;
  --arrow-gray-light: #ADB5BD;
  
  /* IBM Colors (for GCM branding) */
  --ibm-blue: #0F62FE;
  --ibm-blue-dark: #0043CE;
  --ibm-blue-light: #4589FF;
  
  /* Semantic Colors */
  --success: #198754;
  --success-light: #D1E7DD;
  --success-color: #198754;
  --warning: #FD7E14;
  --warning-light: #FFE5D0;
  --error: #DC3545;
  --error-light: #F8D7DA;
  --danger-color: #DC3545;
  --info: #0DCAF0;
  --info-light: #CFF4FC;
  
  /* Green Scale (for success/code) */
  --green-50: #E8F5E9;
  --green-400: #42BE65;
  --green-500: #24A148;
  --green-600: #198038;
  --green-900: #0E4620;
  
  /* Red Scale (for errors/danger) */
  --red-50: #FFEBEE;
  --red-400: #FA4D56;
  --red-600: #DA1E28;
  --red-900: #750E13;
  
  /* Neutral Palette - IBM inspired */
  --white: #FFFFFF;
  --gray-10: #F4F4F4;
  --gray-20: #E0E0E0;
  --gray-30: #C6C6C6;
  --gray-40: #A8A8A8;
  --gray-50: #8D8D8D;
  --gray-60: #6F6F6F;
  --gray-70: #525252;
  --gray-80: #393939;
  --gray-90: #262626;
  --gray-100: #161616;
  --black: #000000;
  
  /* Text Colors */
  --text-primary: #161616;
  --text-secondary: #525252;
  --text-tertiary: #6F6F6F;
  --text-inverse: #FFFFFF;
  
  /* Link Colors */
  --link-primary: #0F62FE;
  --link-hover: #0043CE;
  --link-visited: #0F62FE;
  
  /* Legacy gray scale compatibility (map to new scale) */
  --gray-50: var(--gray-10);
  --gray-100: var(--gray-10);
  --gray-200: var(--gray-20);
  --gray-300: var(--gray-30);
  --gray-400: var(--gray-40);
  --gray-500: var(--gray-50);
  --gray-600: var(--gray-60);
  --gray-700: var(--gray-70);
  --gray-800: var(--gray-80);
  --gray-900: var(--gray-90);
  
  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', 'Consolas', monospace;
  
  /* 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 */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Spacing */
  --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 */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* Border Radius - IBM flat style */
  --radius-none: 0;
  --radius-sm: 0.125rem;  /* 2px */
  --radius: 0.25rem;      /* 4px */
  --radius-md: 0.25rem;   /* 4px - flattened */
  --radius-lg: 0.25rem;   /* 4px - flattened */
  --radius-xl: 0.25rem;   /* 4px - flattened */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================================================
   Base Styles
   ========================================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-900);
  background-color: var(--white);
}

/* ============================================================================
   Typography
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--arrow-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--arrow-blue-dark);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--arrow-blue);
  outline-offset: 2px;
}

strong, b {
  font-weight: var(--font-semibold);
}

em, i {
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--gray-100);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius);
  color: var(--gray-800);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* ============================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--arrow-blue);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--arrow-blue);
  color: var(--white);
  border-color: var(--arrow-blue);
}

.btn-primary:hover {
  background-color: var(--arrow-blue-dark);
  border-color: var(--arrow-blue-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--gray-600);
  color: var(--white);
  border-color: var(--gray-600);
}

.btn-secondary:hover {
  background-color: var(--gray-700);
  border-color: var(--gray-700);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--arrow-blue);
  border-color: var(--arrow-blue);
}

.btn-outline:hover {
  background-color: var(--arrow-blue);
  color: var(--white);
  text-decoration: none;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ============================================================================
   Cards
   ========================================================================= */

.card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.card-body {
  margin-bottom: var(--space-4);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* ============================================================================
   Badges
   ========================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--arrow-blue-light);
  color: var(--arrow-blue-dark);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.badge-error {
  background-color: var(--error-light);
  color: var(--error);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info);
}

/* ============================================================================
   Alerts
   ========================================================================= */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.alert-success {
  background-color: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.alert-warning {
  background-color: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-error {
  background-color: var(--error-light);
  border-color: var(--error);
  color: var(--error);
}

.alert-info {
  background-color: var(--info-light);
  border-color: var(--info);
  color: var(--info);
}

/* ============================================================================
   Utility Classes
   ========================================================================= */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--arrow-blue); }
.text-secondary { color: var(--gray-600); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-muted { color: var(--gray-500); }

/* Background Colors */
.bg-primary { background-color: var(--arrow-blue); }
.bg-secondary { background-color: var(--gray-100); }
.bg-light { background-color: var(--gray-50); }
.bg-dark { background-color: var(--gray-900); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Max Width */
.max-w-screen-sm { max-width: 640px; }
.max-w-screen-md { max-width: 768px; }
.max-w-screen-lg { max-width: 1024px; }
.max-w-screen-xl { max-width: 1280px; }

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

/* ============================================================================
   Responsive Utilities
   ========================================================================= */

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* Made with Bob */
