/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* Sidebar scrollbar */
#sidebar::-webkit-scrollbar {
  width: 4px;
}

#sidebar::-webkit-scrollbar-thumb {
  background: #1a1a1a;
}

/* Nav link active indicator */
.nav-link {
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #d4af37;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.nav-link:hover::before,
.nav-link.text-white::before {
  height: 60%;
}

/* Step card hover */
.step-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* FAQ item hover */
.faq-item {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: #2a2a2a;
  transform: translateX(4px);
}

/* Image hover */
img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

a:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Selection */
::selection {
  background: #d4af37;
  color: #000;
}

/* Code blocks */
code {
  font-family: 'Menlo', 'SF Mono', 'Monaco', monospace;
}

/* Gradient text for special emphasis */
.gradient-text {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse animation for important elements */
@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}

.pulse-gold {
  animation: pulse-gold 2s infinite;
}

/* Smooth border transitions */
.border-transition {
  transition: border-color 0.3s ease;
}

/* Header blur effect */
#header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Sidebar gradient overlay */
#sidebar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, #0d0d0d, transparent);
  pointer-events: none;
  z-index: 10;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  main {
    margin-left: 0 !important;
  }
}

/* Print styles */
@media print {
  #sidebar, #header {
    display: none !important;
  }
  
  main {
    margin-left: 0 !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
