/**
 * Enterprise Architecture Design Interface Styles
 * 企业架构设计界面专用样式
 */

/* Architecture-specific term highlighting */
.architecture-term {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  padding: 0 2px;
  position: relative;
}

.architecture-term::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.3;
}

/* Framework-specific styling */
.framework-togaf { color: #1e3a8a; }
.framework-zachman { color: #7c2d12; }
.framework-sabsa { color: #166534; }
.framework-feaf { color: #7c2d12; }
.framework-cobit { color: #be185d; }

/* Architecture type indicators */
.architecture-type-business { border-left: 4px solid #059669; }
.architecture-type-application { border-left: 4px solid #2563eb; }
.architecture-type-data { border-left: 4px solid #dc2626; }
.architecture-type-technology { border-left: 4px solid #7c3aed; }
.architecture-type-security { border-left: 4px solid #ea580c; }
.architecture-type-integration { border-left: 4px solid #0891b2; }
.architecture-type-cloud { border-left: 4px solid #0d9488; }
.architecture-type-microservices { border-left: 4px solid #c2410c; }
.architecture-type-enterprise { border-left: 4px solid #9333ea; }
.architecture-type-digital-transformation { border-left: 4px solid #e11d48; }

/* Special styling for architecture deliverables */
.architecture-deliverable {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.architecture-deliverable h4 {
  color: #475569;
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Maturity level indicators */
.maturity-initial { color: #dc2626; }
.maturity-repeatable { color: #ea580c; }
.maturity-defined { color: #ca8a04; }
.maturity-managed { color: #16a34a; }
.maturity-optimizing { color: #059669; }

/* Organization size specific styling */
.org-size-startup { font-size: 14px; }
.org-size-small { font-size: 15px; }
.org-size-medium { font-size: 16px; }
.org-size-large { font-size: 17px; }
.org-size-enterprise { font-size: 18px; }
.org-size-multinational { font-size: 19px; }

/* Industry-specific color themes */
.industry-financial {
  --primary-color: #1e40af;
  --accent-color: #3b82f6;
}

.industry-healthcare {
  --primary-color: #dc2626;
  --accent-color: #ef4444;
}

.industry-technology {
  --primary-color: #7c3aed;
  --accent-color: #8b5cf6;
}

.industry-government {
  --primary-color: #059669;
  --accent-color: #10b981;
}

.industry-manufacturing {
  --primary-color: #ea580c;
  --accent-color: #f97316;
}

/* Architecture diagram containers */
.architecture-diagram {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.architecture-diagram h3 {
  text-align: center;
  color: #374151;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

/* Feature badges */
.feature-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px 4px;
}

/* Risk assessment styling */
.risk-high { color: #dc2626; font-weight: 600; }
.risk-medium { color: #ea580c; font-weight: 500; }
.risk-low { color: #16a34a; font-weight: 400; }

/* Compliance indicators */
.compliance-compliant {
  color: #16a34a;
}

.compliance-compliant::before {
  content: '✓ ';
  font-weight: bold;
}

.compliance-non-compliant {
  color: #dc2626;
}

.compliance-non-compliant::before {
  content: '✗ ';
  font-weight: bold;
}

.compliance-partial {
  color: #ea580c;
}

.compliance-partial::before {
  content: '◐ ';
  font-weight: bold;
}

/* Architecture layer visualization */
.architecture-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.architecture-layer {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.layer-business {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.layer-application {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.layer-data {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.layer-technology {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .architecture-layers {
    gap: 6px;
  }
  
  .architecture-layer {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .architecture-diagram {
    padding: 16px;
    margin: 12px 0;
  }
  
  .feature-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .architecture-deliverable {
    background: #1e293b;
    border-color: #334155;
  }
  
  .architecture-deliverable h4 {
    color: #cbd5e1;
  }
  
  .architecture-diagram {
    background: #1e293b;
    border-color: #334155;
  }
  
  .architecture-diagram h3 {
    color: #f1f5f9;
  }
} 