/* Beautiful Custom Styling for BESSE Documentation */

/* Enhanced Typography */
.nextra-content h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.nextra-content h2 {
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid;
  border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
  padding-bottom: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.dark .nextra-content h2 {
  color: #f1f5f9;
}

.nextra-content h3 {
  font-weight: 600;
  color: #334155;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.dark .nextra-content h3 {
  color: #e2e8f0;
}

/* Beautiful Code Blocks */
.nextra-code-block {
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Enhanced Links */
.nextra-content a {
  color: #667eea;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nextra-content a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* Beautiful Lists */
.nextra-content ul li::marker,
.nextra-content ol li::marker {
  color: #667eea;
}

.nextra-content ul li,
.nextra-content ol li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* Enhanced Blockquotes */
.nextra-content blockquote {
  border-left: 4px solid;
  border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.dark .nextra-content blockquote {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Beautiful Tables */
.nextra-content table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.nextra-content table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nextra-content table thead th {
  color: white;
  font-weight: 600;
  padding: 1rem;
}

.nextra-content table tbody tr:nth-child(even) {
  background-color: rgba(102, 126, 234, 0.05);
}

.dark .nextra-content table tbody tr:nth-child(even) {
  background-color: rgba(102, 126, 234, 0.1);
}

/* Enhanced Navigation */
.nextra-nav-container {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.dark .nextra-nav-container {
  background: rgba(15, 23, 42, 0.8) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

/* Beautiful Sidebar */
.nextra-sidebar-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.dark .nextra-sidebar-container {
  background: rgba(15, 23, 42, 0.95);
}

.nextra-menu-desktop a[aria-current="page"],
.nextra-menu-desktop a.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  font-weight: 600;
  border-radius: 8px;
}

.dark .nextra-menu-desktop a[aria-current="page"],
.dark .nextra-menu-desktop a.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  color: #818cf8;
}

.nextra-menu-desktop a:hover {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dark .nextra-menu-desktop a:hover {
  background: rgba(102, 126, 234, 0.15);
}

/* Enhanced Search */
.nextra-search input {
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.2s ease;
}

.nextra-search input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Beautiful Scrollbar */
.nextra-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.nextra-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.nextra-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

.nextra-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Enhanced Code Inline */
.nextra-content code {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
}

.dark .nextra-content code {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  color: #818cf8;
}

/* Beautiful Footer */
footer {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  padding: 2rem 0;
}

.dark footer {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Smooth Animations */
.nextra-content {
  animation: fadeIn 0.6s ease-in;
}

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

/* Enhanced Breadcrumbs */
.nextra-breadcrumb {
  margin-bottom: 1rem;
}

.nextra-breadcrumb a {
  color: #667eea;
  font-weight: 500;
}

/* Beautiful TOC */
.nextra-toc {
  border-left: 2px solid rgba(102, 126, 234, 0.1);
}

.dark .nextra-toc {
  border-left: 2px solid rgba(102, 126, 234, 0.2);
}

.nextra-toc a {
  color: #64748b;
  transition: all 0.2s ease;
}

.nextra-toc a:hover {
  color: #667eea;
}

.dark .nextra-toc a {
  color: #94a3b8;
}

.dark .nextra-toc a:hover {
  color: #818cf8;
}

/* Enhanced Buttons */
button[type="button"] {
  transition: all 0.2s ease;
}

button[type="button"]:hover {
  transform: scale(1.05);
}

/* Beautiful Images */
.nextra-content img {
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
  transition: transform 0.3s ease;
}

.nextra-content img:hover {
  transform: scale(1.02);
}

/* Enhanced Paragraphs */
.nextra-content p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #475569;
}

.dark .nextra-content p {
  color: #cbd5e1;
}

/* Beautiful Separators */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 3rem 0;
  border-radius: 2px;
}

