/* MC Energy Corp - Premium Corporate Theme */
/* CSS Variables & Base Styles */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
  /* ========== MC ENERGY BRAND COLORS ========== */
  /* Primary / Corporate Colors */
  --brand-dark: #001060;      /* Dark Blue - Headers, footers, navigation */
  --brand-medium: #00219B;    /* Medium Blue - Tech accents, links */
  --brand-light: #C5D4FF;     /* Light Blue - Soft backgrounds, hover states */
  
  /* Accent / Action Colors */
  --brand-orange: #FF9100;    /* Orange - Primary CTA buttons */
  --brand-yellow: #FFCE00;    /* Yellow - Highlights, badges */
  
  /* Neutrals */
  --brand-black: #000000;     /* Black - Body text */
  --brand-white: #FFFFFF;     /* White - Backgrounds */
  
  /* ========== LEGACY COLOR MAPPINGS ========== */
  /* (For backward compatibility with existing classes) */
  --color-slate-950: #001060;
  --color-slate-900: #001060;
  --color-slate-800: #00219B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  
  /* Accent Colors - mapped to brand */
  --color-amber-500: #FF9100;
  --color-amber-400: #FFCE00;
  --color-amber-300: #FFE066;
  --color-amber-600: #E68200;
  
  --color-blue-500: #00219B;
  --color-blue-400: #C5D4FF;
  --color-blue-600: #001060;
  
  --color-green-500: #22c55e;
  --color-green-400: #4ade80;
  --color-green-600: #16a34a;
  
  --color-red-500: #ef4444;
  --color-red-400: #f87171;
  --color-red-600: #dc2626;
  
  /* ========== SEMANTIC COLORS (Light Theme) ========== */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #C5D4FF;
  --bg-elevated: #FFFFFF;
  --bg-dark: #001060;
  
  --text-primary: #000000;
  --text-secondary: #001060;
  --text-muted: #64748b;
  --text-accent: #FF9100;
  --text-on-dark: #FFFFFF;
  
  --border-default: #C5D4FF;
  --border-subtle: #E2E8F0;
  --border-accent: #FF9100;
  
  /* Status Colors */
  --status-success: var(--color-green-500);
  --status-warning: #FF9100;
  --status-error: var(--color-red-500);
  --status-info: #00219B;
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow-orange: 0 0 20px rgba(255, 145, 0, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(0, 33, 155, 0.3);
  --shadow-glow-amber: 0 0 20px rgba(255, 145, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  
  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
  --container-max: 1280px;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: #000000 !important;
  background-color: #FFFFFF !important;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY BASE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
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);
}

a {
  color: var(--brand-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-orange);
}

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

small {
  font-size: var(--text-sm);
}

code, pre {
  font-family: var(--font-mono);
}

code {
  background-color: var(--bg-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

pre {
  background-color: var(--bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

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

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--text-accent); }
.text-success { color: var(--status-success); }
.text-warning { color: var(--status-warning); }
.text-error { color: var(--status-error); }
.text-info { color: var(--status-info); }

/* Background Colors */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-elevated { background-color: var(--bg-elevated); }

/* Fonts */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

/* Font Weights */
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* Text Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

/* Accent Text with Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Selection */
::selection {
  background-color: var(--brand-orange);
  color: var(--brand-white);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-medium);
}

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

/* Subtle Grid Pattern Background */
.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(0, 16, 96, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 16, 96, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Gradient Backgrounds */
.bg-gradient-radial {
  background: radial-gradient(ellipse at top, var(--brand-light) 0%, var(--bg-primary) 70%);
}

.bg-gradient-hero {
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg-primary) 100%);
}

/* Dark Section Background */
.bg-dark-section {
  background-color: var(--brand-dark);
  color: var(--text-on-dark);
}

/* Energy Motif - Subtle glow effect */
.energy-glow {
  position: relative;
}

.energy-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 145, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Dividers */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: var(--space-8) 0;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

