/* Custom styles for Helomatic documentation */

:root {
  --helomatic-primary: #2196F3;
  --helomatic-primary-dark: #1976D2;
  --helomatic-accent: #4CAF50;
  --helomatic-warning: #FF9800;
  --helomatic-error: #F44336;
  --helomatic-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero section styling */
.md-typeset .hero {
  background: var(--helomatic-gradient);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.md-typeset .hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.md-typeset .hero p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Status badges */
.md-typeset .status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem;
}

.md-typeset .status-badge.live {
  background: #4CAF50;
  color: white;
}

.md-typeset .status-badge.warning {
  background: #FF9800;
  color: white;
}

.md-typeset .status-badge.error {
  background: #F44336;
  color: white;
}

/* API endpoint tables */
.md-typeset .endpoint-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset .endpoint-table th {
  background: var(--helomatic-primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.md-typeset .endpoint-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.md-typeset .endpoint-table tr:nth-child(even) {
  background: #f8f9fa;
}

.md-typeset .endpoint-table .method {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.md-typeset .endpoint-table .method.get {
  background: #4CAF50;
  color: white;
}

.md-typeset .endpoint-table .method.post {
  background: #2196F3;
  color: white;
}

.md-typeset .endpoint-table .method.put {
  background: #FF9800;
  color: white;
}

.md-typeset .endpoint-table .method.delete {
  background: #F44336;
  color: white;
}

/* Code blocks enhancements */
.md-typeset .highlight {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.md-typeset .highlight .filename {
  background: #333;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #555;
}

/* Mermaid diagram styling */
.md-typeset .mermaid {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Feature cards */
.md-typeset .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.md-typeset .feature-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.md-typeset .feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.md-typeset .feature-card h3 {
  color: var(--helomatic-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.md-typeset .feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* Checklist styling */
.md-typeset .checklist {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--helomatic-primary);
  margin: 1rem 0;
}

.md-typeset .checklist h3 {
  color: var(--helomatic-primary);
  margin-bottom: 1rem;
}

.md-typeset .checklist ul {
  list-style: none;
  padding: 0;
}

.md-typeset .checklist li {
  position: relative;
  padding-left: 2rem;
  margin: 0.5rem 0;
}

.md-typeset .checklist li:before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--helomatic-primary);
  font-size: 1.2rem;
}

.md-typeset .checklist li.completed:before {
  content: "☑";
  color: var(--helomatic-accent);
}

/* Security badges */
.md-typeset .security-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.25rem;
  background: #e8f5e8;
  color: #2e7d2e;
  border: 1px solid #c8e6c8;
}

.md-typeset .security-badge.high-security {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffcc02;
}

.md-typeset .security-badge.critical-security {
  background: #ffebee;
  color: #c62828;
  border-color: #ef5350;
}

/* Progress indicators */
.md-typeset .progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.md-typeset .progress-bar .progress {
  height: 100%;
  background: var(--helomatic-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
  .md-typeset .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .md-typeset .hero {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .md-typeset .endpoint-table {
    font-size: 0.9rem;
  }
  
  .md-typeset .endpoint-table th,
  .md-typeset .endpoint-table td {
    padding: 0.6rem 0.8rem;
  }
}

/* Print styles */
@media print {
  .md-typeset .hero {
    background: none;
    color: black;
    border: 2px solid #333;
  }
  
  .md-typeset .mermaid {
    border: 1px solid #333;
  }
  
  .md-typeset .feature-card {
    border: 1px solid #333;
    box-shadow: none;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --helomatic-primary: #42A5F5;
  --helomatic-accent: #66BB6A;
}

[data-md-color-scheme="slate"] .md-typeset .feature-card {
  background: #2d2d2d;
  border-color: #404040;
  color: white;
}

[data-md-color-scheme="slate"] .md-typeset .endpoint-table tr:nth-child(even) {
  background: #2d2d2d;
}

[data-md-color-scheme="slate"] .md-typeset .checklist {
  background: #2d2d2d;
  border-color: var(--helomatic-primary);
}

[data-md-color-scheme="slate"] .md-typeset .mermaid {
  background: #2d2d2d;
  border-color: #404040;
}

/* Animation classes */
.md-typeset .fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.md-typeset .slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}