.architecture-comparison {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin: 20px 0;
  max-width: 1400px;
}

.comparison-header {
  text-align: center;
  margin-bottom: 24px;
}

.comparison-header h3 {
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.comparison-header p {
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

.comparison-controls {
  text-align: center;
  margin-bottom: 32px;
}

.comparison-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.comparison-button:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
}

.current-step {
  margin-top: 16px;
  padding: 12px 20px;
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  color: #2b6cb0;
  font-weight: 500;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.comparison-side {
  border-radius: 8px;
  padding: 20px;
  border: 2px solid;
}

.web3js-side {
  background: linear-gradient(135deg, #ebf8ff 0%, #f7fafc 100%);
  border-color: #4299e1;
}

.kit-side {
  background: linear-gradient(135deg, #f0fff4 0%, #f7fafc 100%);
  border-color: #48bb78;
}

.side-header {
  text-align: center;
  margin-bottom: 20px;
}

.side-header h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.web3js-side .side-header h4 {
  color: #2b6cb0;
}

.kit-side .side-header h4 {
  color: #38a169;
}

.side-header p {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

.code-example {
  margin-bottom: 20px;
}

.code-example h5 {
  color: #2d3748;
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.code-example pre {
  background: #1a202c;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.code-example code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.execution-path {
  margin-bottom: 20px;
}

.execution-path h5 {
  color: #2d3748;
  margin: 0 0 12px 0;
  font-size: 1rem;
}

.execution-path ol {
  margin: 0;
  padding-left: 20px;
}

.execution-path li {
  color: #4a5568;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.result-card {
  border-radius: 6px;
  padding: 16px;
  border: 1px solid;
}

.result-card.success {
  background: #f0fff4;
  border-color: #9ae6b4;
}

.result-card.error {
  background: #fed7d7;
  border-color: #feb2b2;
}

.result-card h5 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.result-card.success h5 {
  color: #276749;
}

.result-card.error h5 {
  color: #c53030;
}

.result-card p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

.result-card.success p {
  color: #276749;
}

.result-card.error p {
  color: #c53030;
}

.result-details p {
  font-size: 0.8rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 4px 0;
}

.comparison-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.comparison-summary h4 {
  margin: 0 0 16px 0;
  text-align: center;
  color: #ffd700;
}

.summary-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.summary-point {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.summary-point strong {
  color: #ffd700;
}

.summary-point code {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.architecture-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.architecture-details h4 {
  color: #2d3748;
  margin: 0 0 16px 0;
  text-align: center;
}

.detection-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.detection-row {
  display: contents;
}

.detection-row > span {
  background: white;
  padding: 12px;
  font-size: 0.9rem;
}

.detection-row.header > span {
  background: #2d3748;
  color: white;
  font-weight: 600;
}

.detection-row:not(.header) > span:nth-child(2) {
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .summary-points {
    grid-template-columns: 1fr;
  }

  .detection-table {
    grid-template-columns: 1fr;
  }

  .detection-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .detection-row.header {
    display: none;
  }

  .detection-row:not(.header) > span {
    position: relative;
    padding-left: 40px;
  }

  .detection-row:not(.header) > span:nth-child(1)::before {
    content: "Type: ";
    position: absolute;
    left: 12px;
    font-weight: 600;
  }

  .detection-row:not(.header) > span:nth-child(2)::before {
    content: "Architecture: ";
    position: absolute;
    left: 12px;
    font-weight: 600;
  }

  .detection-row:not(.header) > span:nth-child(3)::before {
    content: "Path: ";
    position: absolute;
    left: 12px;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .architecture-comparison {
    padding: 16px;
    margin: 10px 0;
  }

  .code-example pre {
    font-size: 0.75rem;
    padding: 12px;
  }
}