/**
 * HAYAGRIVA Universal Pillar 3-Panel Layout & Hero Banner System
 * Shared across Employees, Employers, Entrepreneurs, and Inventors
 */

:root {
  --bg-primary: #F8FAFC;
  --bg-card: #FFFFFF;
  --primary-color: #1E6C93;
  --primary-hover: #165272;
  --primary-light: rgba(30, 108, 147, 0.08);
  --accent-gold: #D97706;
  --accent-gold-light: #FEF3C7;
  --accent-purple: #7C3AED;
  --accent-purple-light: #EDE9FE;
  --accent-green: #16A34A;
  --accent-green-light: #DCFCE7;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --font-main: 'Lato', sans-serif;
  --font-heading: 'Google Sans', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --ide-transition-speed: 0.22s;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

a { color: var(--primary-color); text-decoration: none; }

/* ── Universal Hero Blue Banner ──────────────────────────────── */
.pillar-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1E6C93 100%);
  color: #FFFFFF;
  padding: 38px 24px 32px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14.5px;
  color: #94A3B8;
  max-width: 820px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #E2E8F0;
}

/* ── Universal 3-Panel IDE Workspace Container ───────────────── */
.ide-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: calc(100vh - 64px);
  height: calc(100vh - 64px);
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  flex: 1;
}

/* LEFT PANEL: Filters & Taxonomy Selector */
.panel-left {
  width: 270px;
  min-width: 230px;
  max-width: 400px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-color);
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  z-index: 20;
  box-sizing: border-box;
  transition: width var(--ide-transition-speed) ease, padding var(--ide-transition-speed) ease;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13.5px;
  background: #FFFFFF;
  color: var(--text-main);
  outline: none;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--primary-color);
}

/* CENTER PANEL: Cards Stream */
.panel-center {
  flex: 1 1 0%;
  min-width: 0;
  background: var(--bg-primary);
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  z-index: 10;
}

.center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.center-header-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.center-header-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* RIGHT PANEL: Detail Inspector & Action Dossier */
.panel-right {
  width: 480px;
  min-width: 380px;
  max-width: 650px;
  background: #FFFFFF;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 20;
  box-sizing: border-box;
  transition: width var(--ide-transition-speed) ease;
}

.inspector-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #FAFAFA;
  flex-shrink: 0;
}

.inspector-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.inspector-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.inspector-content {
  padding: 18px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Responsive Split */
@media (max-width: 1024px) {
  .ide-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  .panel-left, .panel-center, .panel-right {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
  }
}
