/* Enhanced color variables for better accessibility */
:root {
  --vortex-hover-bg: #f8f9fa;
  --vortex-active-bg: #e9ecef;
  --vortex-hover-border: #6c757d;
  --vortex-shadow: rgba(0, 0, 0, 0.08);
}

[data-theme='dark'] {
  --vortex-hover-bg: #2a2d32;
  --vortex-active-bg: #3c4147;
  --vortex-hover-border: #6c757d;
  --vortex-shadow: rgba(255, 255, 255, 0.05);
}

.vertical-features {
  margin: 2rem 0;
}

.vertical-layout {
  display: flex;
  gap: 2rem;
  min-height: 800px;
  border: 2px solid var(--ifm-color-emphasis-200);
  border-radius: 12px;
  overflow: hidden;
}

.sidebar {
  width: 320px;
  background: var(--ifm-color-emphasis-100);
  border-right: 2px solid var(--ifm-color-emphasis-200);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-300);
  background: var(--ifm-color-emphasis-200);
}

.sidebar-header h3 {
  margin: 0;
  color: var(--ifm-color-emphasis-900);
  font-size: 1.1rem;
}

.tab-list {
  flex: 1;
  overflow-y: auto;
}

.tab-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
  transition: all 0.2s ease;
  position: relative;
}

.tab-item:hover {
  background: var(--vortex-hover-bg);
}

.tab-item.active {
  background: var(--vortex-active-bg);
  border-right: 3px solid var(--ifm-color-primary);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ifm-color-primary);
}

.tab-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--ifm-color-emphasis-900);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tab-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ifm-color-emphasis-800);
  line-height: 1.3;
}

.content-area {
  flex: 1;
  background: var(--ifm-background-color);
  overflow-y: auto;
}

.content-panel {
  padding: 2rem;
  animation: fadeIn 0.3s ease-out;
}

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

.content-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ifm-color-emphasis-200);
}

.content-header h1 {
  margin: 0 0 0.5rem 0;
  color: var(--ifm-font-color-base);
  font-size: 2rem;
}

.content-subtitle {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--ifm-color-emphasis-800);
  line-height: 1.4;
  font-weight: 500;
}

.content-description {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--ifm-color-emphasis-800);
  line-height: 1.5;
}

.content-badge {
  display: inline-block;
  background: var(--ifm-color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-detail {
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.feature-detail:hover {
  border-color: var(--vortex-hover-border);
  box-shadow: 0 2px 8px var(--vortex-shadow);
}

.feature-detail[open] {
  border-color: var(--ifm-color-primary);
}

.feature-detail summary {
  cursor: pointer;
  padding: 1.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  background: var(--ifm-color-emphasis-50);
}

.feature-detail summary::-webkit-details-marker {
  display: none;
}

.feature-detail summary::before {
  content: '▶';
  color: var(--ifm-color-primary);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.feature-detail[open] summary::before {
  transform: rotate(90deg);
}

.feature-detail[open] summary {
  background: var(--vortex-hover-bg);
  border-bottom: 1px solid var(--ifm-color-emphasis-300);
}

.feature-status {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-summary {
  color: var(--ifm-color-emphasis-600);
  font-weight: 400;
  font-size: 0.9rem;
}

.feature-content {
  padding: 1.5rem;
  background: var(--ifm-background-color);
}

.feature-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ifm-color-emphasis-800);
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h4 {
  margin: 0 0 0.75rem 0;
  color: var(--ifm-color-primary-darkest);
  font-size: 1rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.detail-section li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.detail-section pre {
  background: var(--ifm-color-emphasis-100);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
}

.detail-section code {
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .vertical-layout {
    flex-direction: column;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    max-height: 400px;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: var(--ifm-color-emphasis-200);
  }

  .tab-item {
    background: var(--ifm-color-emphasis-100);
    padding: 1rem;
  }

  .tab-item.active::before {
    display: none;
  }

  .tab-item.active {
    border-right: none;
    border-bottom: 3px solid var(--ifm-color-primary);
  }

  .content-panel {
    padding: 1.5rem;
  }

  .content-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tab-list {
    grid-template-columns: 1fr;
  }

  .tab-item {
    padding: 1rem;
  }

  .content-panel {
    padding: 1rem;
  }

  .feature-detail summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
