/* AI-Optimized Styles for FAQ Page */

/* AI-readable content blocks */
[data-ai-definition], [data-ai-example], [data-ai-concept] {
  position: relative;
}

[data-ai-definition]::before,
[data-ai-example]::before,
[data-ai-concept]::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #3498db, #2c3e50);
  border-radius: 2px;
}

/* AI-friendly code blocks */
code {
  background-color: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  border: 1px solid #e9ecef;
}

/* Enhanced mark styling for AI highlighting */
mark {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* AI content summary - hidden but indexable */
#ai-content-summary {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Improved formula display */
.card code {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
}

/* AI-friendly definition lists */
.list-unstyled li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Enhanced alert styling for AI recognition */
.alert-primary h4.alert-heading {
  color: #004085;
  border-bottom: 2px solid #b3d7ff;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* Formula visualization */
.bg-light code {
  background-color: white;
  border: 2px solid var(--accent-color);
  font-weight: bold;
  padding: 8px 12px;
}

/* AI-friendly table styling */
.table-striped th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* Structured data indicators */
[itemscope] {
  border-left: 4px solid #28a745;
  padding-left: 12px;
}

/* Timeline enhancements for AI parsing */
.timeline .row > div {
  position: relative;
  margin-bottom: 15px;
}

/* Calculator example styling */
[data-ai-example] .bg-success,
[data-ai-example] .bg-primary {
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* AI content markers */
[data-purpose="ai-indexing"] h1,
[data-purpose="ai-indexing"] h2 {
  font-weight: 700;
  color: #2c3e50;
}

/* Responsive AI content */
@media (max-width: 768px) {
  [data-ai-definition], 
  [data-ai-example] {
    margin-bottom: 1.5rem;
  }
  
  .timeline .row > div::after {
    display: none;
  }
}

/* Print-friendly for AI documentation */
@media print {
  #ai-content-summary {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    page-break-after: always;
  }
  
  [data-ai-definition],
  [data-ai-example],
  [data-ai-concept] {
    page-break-inside: avoid;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
  }
}
