/* TrojanHorse.js Documentation Styles */

/* Custom color scheme */
:root {
  --th-primary: #dc2626;
  --th-secondary: #ea580c;
  --th-accent: #f59e0b;
  --th-dark: #1f2937;
  --th-light: #f9fafb;
}

/* Hero section styling */
.hero {
  background: linear-gradient(135deg, var(--th-primary), var(--th-secondary));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Mermaid diagram styling */
.mermaid {
  background: transparent !important;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
}

/* Dark mode mermaid adjustments */
[data-md-color-scheme="slate"] .mermaid {
  background: var(--md-code-bg-color) !important;
}

/* Code block enhancements */
.highlight {
  border-radius: 6px;
  overflow: hidden;
}

/* Admonition customization */
.md-typeset .admonition.tip {
  border-color: var(--th-accent);
}

.md-typeset .admonition.tip > .admonition-title {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--th-accent);
}

.md-typeset .admonition.success {
  border-color: #10b981;
}

.md-typeset .admonition.info {
  border-color: #3b82f6;
}

/* Performance charts styling */
.performance-chart {
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--th-primary);
}

/* Centered content */
.centered {
  text-align: center;
  margin: 2rem 0;
}

/* API documentation tables */
.api-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.api-table th,
.api-table td {
  border: 1px solid var(--md-default-fg-color--lighter);
  padding: 0.5rem;
  text-align: left;
}

.api-table th {
  background-color: var(--md-default-fg-color--lightest);
  font-weight: bold;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background-color: #10b981;
  color: white;
}

.badge-warning {
  background-color: #f59e0b;
  color: white;
}

.badge-danger {
  background-color: #dc2626;
  color: white;
}

.badge-info {
  background-color: #3b82f6;
  color: white;
}

/* Security warning boxes */
.security-warning {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fca5a5;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.security-warning::before {
  content: "🔒 ";
  font-size: 1.2rem;
}

/* Enterprise features highlighting */
.enterprise-feature {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid #0ea5e9;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

/* Performance metrics */
.metric {
  display: inline-block;
  background: var(--th-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 0.25rem;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}