/* ========================================
   Governance (governance.html)
   Page-specific styles
   ======================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-gradient {
  background: #05A34A; /* Fallback */
  background: -webkit-linear-gradient(90deg, #05A34A, #6571FF);
  background: -moz-linear-gradient(90deg, #05A34A, #6571FF);
  background: -o-linear-gradient(90deg, #05A34A, #6571FF);
  background: linear-gradient(90deg, #05A34A, #6571FF);
  border: none;
  color: white;
}

.btn-gradient:hover {
  background: #048a3e; /* Fallback */
  background: -webkit-linear-gradient(90deg, #048a3e, #5560e6);
  background: -moz-linear-gradient(90deg, #048a3e, #5560e6);
  background: -o-linear-gradient(90deg, #048a3e, #5560e6);
  background: linear-gradient(90deg, #048a3e, #5560e6);
  -webkit-transform: translateY(-1px);
  -moz-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
  -o-transform: translateY(-1px);
  transform: translateY(-1px);
  color: white;
}

/* ========================================
   DEPLOYMENT TERMINAL (hero)
   ======================================== */
.deploy-terminal {
  background: #0d1117;
  border-radius: 1rem;
  padding: 1.5rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  border: 1px solid #2E3E55;
}

.deploy-terminal-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.deploy-log {
  color: #8A9BB0;
  font-size: 0.85rem;
  line-height: 1.8;
}

.deploy-log .log-green {
  color: #05A34A;
}

.deploy-log .log-amber {
  color: #ff9f4f;
}

.deploy-log .log-teal {
  color: #66D1D1;
}

.deploy-log .log-purple {
  color: #6571FF;
}

.deploy-log .log-dim {
  color: #4a5568;
}

/* ========================================
   PILLAR ICON (three pillars section)
   ======================================== */
.pillar-icon {
  width: 48px;
  height: 48px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(5, 163, 74, 0.1);
  margin-bottom: 1.25rem;
}

/* ========================================
   GATE TYPE CARDS (white bg section)
   ======================================== */
.gate-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.gate-card:hover {
  border-color: rgba(5, 163, 74, 0.3);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  -moz-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gate-icon {
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(5, 163, 74, 0.1);
  -webkit-flex-shrink: 0;
  -moz-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

/* ========================================
   LIFECYCLE FLOW (bg-light section)
   ======================================== */
.lifecycle-flow {
  position: relative;
  padding: 1rem 0;
}

.lifecycle-step {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2rem;
}

.lifecycle-step:last-child {
  padding-bottom: 0;
}

.lifecycle-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.lifecycle-step:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  left: 0;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #05A34A;
  color: white;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
}

.step-content {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.step-content h5 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step-content p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Blocked step */
.lifecycle-step.step-blocked .step-number {
  background: #ff9f4f;
}

.lifecycle-step.step-blocked .step-content {
  border-color: rgba(255, 159, 79, 0.3);
}

/* Approved step */
.lifecycle-step.step-approved .step-number {
  background: #6571FF;
}

/* ========================================
   RESOURCE BADGES
   ======================================== */
.resource-badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.8rem;
  margin: 0.2rem;
  background: rgba(5, 163, 74, 0.08);
  color: #05A34A;
  border: 1px solid rgba(5, 163, 74, 0.15);
}

/* ========================================
   IE11 SPECIFIC FIXES
   ======================================== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .btn-gradient {
    background: #05A34A;
  }

  .feature-card,
  .gate-card {
    transition: none;
  }

  .lifecycle-step::before {
    background: #dee2e6;
  }

  .step-number {
    background: #05A34A;
  }
}
