/* Orbit-RS Documentation Custom Styles */
/* Professional styling for enhanced documentation experience */

/* Root Variables */
:root {
  --orbit-blue: #0066cc;
  --orbit-light-blue: #e6f2ff;
  --orbit-dark-blue: #003d7a;
  --orbit-green: #28a745;
  --orbit-orange: #fd7e14;
  --orbit-red: #dc3545;
  --orbit-gray: #6c757d;
  --orbit-light-gray: #f8f9fa;
  --orbit-dark-gray: #343a40;
  --orbit-border: #dee2e6;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Enhanced Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--orbit-dark-blue);
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--orbit-blue);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  color: var(--orbit-blue);
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--orbit-dark-blue);
}

/* Enhanced Links */
a {
  color: var(--orbit-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--orbit-dark-blue);
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

thead th {
  background-color: var(--orbit-blue);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--orbit-border);
}

tbody tr:nth-child(even) {
  background-color: var(--orbit-light-gray);
}

tbody tr:hover {
  background-color: var(--orbit-light-blue);
  transition: var(--transition);
}

/* Code Blocks */
pre {
  background-color: #f8f9fa;
  border: 1px solid var(--orbit-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

code {
  background-color: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Grid Layouts */
.status-grid, .features-grid, .resources-grid, .community-grid {
  display: grid;
  grid-gap: 2rem;
  margin: 2rem 0;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.resources-grid, .community-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Quick Links */
.quick-links {
  background: linear-gradient(135deg, var(--orbit-light-blue) 0%, #f8f9fa 100%);
  border: 1px solid var(--orbit-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
}

.quick-links h4 {
  color: var(--orbit-dark-blue);
  margin-top: 0;
  border-bottom: 2px solid var(--orbit-blue);
  padding-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--orbit-blue);
  background-color: var(--orbit-light-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer-info {
  background: linear-gradient(135deg, var(--orbit-dark-blue) 0%, var(--orbit-blue) 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0 2rem 0;
  box-shadow: var(--shadow-subtle);
}

.footer-info a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-info a:hover {
  color: var(--orbit-light-blue);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .features-grid, .resources-grid, .community-grid {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
  
  .quick-links {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  table {
    font-size: 0.9rem;
  }
}

/* Header Styling */
.site-header {
  border-bottom: 2px solid var(--orbit-blue);
  background-color: white;
  box-shadow: var(--shadow-subtle);
}

.site-title {
  font-weight: 700;
  color: var(--orbit-dark-blue) !important;
  font-size: 1.5rem;
}

.site-title:hover {
  text-decoration: none !important;
}

/* Progress sections */
.progress-section {
  background: white;
  border: 1px solid var(--orbit-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-subtle);
}

.completed-phases, .upcoming-phases {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--orbit-green);
}

.upcoming-phases {
  border-left-color: var(--orbit-orange);
}

.phase-details {
  background-color: var(--orbit-light-gray);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--orbit-border);
}

/* Custom CSS for Orbit-RS Documentation */

/* Layout improvements */
.site-header {
  border-top: none;
  border-bottom: 1px solid #e1e4e8;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.site-title,
.site-nav .page-link {
  color: white !important;
}

.site-nav .page-link:hover {
  color: #f0f0f0 !important;
  text-decoration: none;
}

/* Typography improvements */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #24292e;
}

h1, h2, h3, h4, h5, h6 {
  color: #24292e;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid #e1e4e8;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 0.3rem;
}

/* Badge improvements */
.shields-io-badge img {
  margin: 2px;
  display: inline-block;
}

/* Grid layouts for feature sections */
.features-grid,
.resources-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Status grid should not use grid layout for tables */
.status-grid {
  margin: 2rem 0;
}

.status-grid table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.status-grid th,
.status-grid td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e1e4e8;
  vertical-align: top;
}

.status-grid th {
  background-color: #f6f8fa;
  font-weight: 600;
  color: #24292e;
}

.status-grid tbody tr:hover {
  background-color: #f6f8fa;
}

/* Ensure status badges display properly */
.status-grid td strong {
  font-weight: 600;
}

.status-grid td:first-child {
  font-weight: 500;
  min-width: 200px;
}

.status-grid td:nth-child(2) {
  min-width: 120px;
  text-align: center;
}

.status-grid td:last-child {
  max-width: 400px;
}

/* Feature cards */
.features-grid > div,
.resources-grid > div,
.community-grid > div {
  background: #fafbfc;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.features-grid > div:hover,
.resources-grid > div:hover,
.community-grid > div:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.features-grid h3,
.resources-grid h3,
.community-grid h3 {
  margin-top: 0;
  color: #24292e;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Code blocks */
.highlight,
pre,
code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.highlight {
  background: #f6f8fa;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

code {
  background: #f6f8fa;
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

/* Link styling */
a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  color: #0366d6;
  text-decoration: underline;
}

/* Progress and status indicators */
.progress-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.progress-section h3 {
  color: white;
  margin-top: 0;
}

.completed-phases,
.upcoming-phases {
  margin: 2rem 0;
}

.phase-details {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1rem 0;
}

/* Navigation improvements */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  background: #f6f8fa;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.quick-links div {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #e1e4e8;
}

.quick-links h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Footer styling */
.footer-info {
  text-align: center;
  background: #f6f8fa;
  padding: 2rem;
  border-radius: 6px;
  margin: 3rem 0 2rem;
  border: 1px solid #e1e4e8;
}

/* Responsive design */
@media (max-width: 768px) {
  .features-grid,
  .resources-grid,
  .community-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .quick-links {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .progress-section {
    padding: 1rem;
  }
}

/* Alert and callout styles */
.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  border-left: 4px solid;
}

.alert-info {
  background-color: #e6f3ff;
  border-left-color: #0366d6;
  color: #0366d6;
}

.alert-warning {
  background-color: #fff8e1;
  border-left-color: #ffd600;
  color: #f57c00;
}

.alert-success {
  background-color: #e8f5e8;
  border-left-color: #28a745;
  color: #28a745;
}

/* Table improvements */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border-radius: 6px;
  overflow: hidden;
}

table th,
table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e1e4e8;
}

table th {
  background-color: #f6f8fa;
  font-weight: 600;
  color: #24292e;
}

table tbody tr:hover {
  background-color: #f6f8fa;
}

/* Emoji and icon improvements */
.emoji {
  font-size: 1.2em;
  vertical-align: middle;
}

/* Status badge styling */
.status-complete {
  color: #28a745;
  font-weight: 600;
}

.status-planned {
  color: #ffc107;
  font-weight: 600;
}

.status-progress {
  color: #007bff;
  font-weight: 600;
}

/* Table specific improvements for better readability */
table {
  font-size: 0.95rem;
}

table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Status grid table mobile responsiveness */
@media (max-width: 768px) {
  .status-grid table {
    font-size: 0.85rem;
  }
  
  .status-grid td:first-child {
    min-width: 150px;
  }
  
  .status-grid td:nth-child(2) {
    min-width: 100px;
  }
  
  .status-grid th,
  .status-grid td {
    padding: 0.5rem 0.75rem;
  }
}

/* List improvements */
ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquote styling */
blockquote {
  border-left: 4px solid #e1e4e8;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: #f6f8fa;
  font-style: italic;
}

/* Print styles */
@media print {
  .site-header,
  .site-nav,
  .site-footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .features-grid,
  .resources-grid,
  .community-grid {
    display: block;
  }
  
  .features-grid > div,
  .resources-grid > div,
  .community-grid > div {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}