/* Custom styles for the Dew MCP documentation site */

/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

/* Glass morphism effect */
.glass-effect {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom gradients */
.gradient-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #8537fa 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-success {
  background: linear-gradient(135deg, #10b08f 0%, #00f2fe 100%);
}

/* Tool card animations */
.tool-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* MCP-specific styling */
.mcp-tool-icon {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 16px;
}

.mcp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mcp-status-available {
  background: rgba(16, 176, 143, 0.1);
  color: #10b08f;
  border: 1px solid rgba(16, 176, 143, 0.2);
}

.mcp-status-integrated {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.mcp-status-optional {
  background: rgba(237, 125, 39, 0.1);
  color: #ed7d27;
  border: 1px solid rgba(237, 125, 39, 0.2);
}

/* Navigation effects */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #8537fa);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Code block enhancements */
pre {
  position: relative;
  overflow: hidden;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

pre:hover::before {
  transform: translateX(100%);
}

/* Button hover effects */
.button-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  position: relative;
  overflow: hidden;
}

.button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.button-primary:hover::before {
  left: 100%;
}

/* Section animations */
.section-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading animation */
.loading-spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #0ea5e9;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast notifications */
.toast {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Copy button styles */
.copy-button {
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.copy-button:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.4) !important;
}

/* API documentation styles */
.api-parameter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.api-parameter-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #0ea5e9;
  font-size: 0.875rem;
}

.api-parameter-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.api-parameter-required {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}

.api-parameter-optional {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}

/* Tool example usage styles */
.tool-example-usage {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0ea5e9, #8537fa);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0284c7, #7211e3);
}

/* Feature cards */
.feature-card {
  transition: all 0.3s ease;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Integration status indicators */
.integration-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-active {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-optional {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-disabled {
  background: #6b7280;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-link::after {
    display: none;
  }

  .tool-card:hover {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .api-parameter {
    padding: 12px;
  }
}

/* Focus states for accessibility */
input:focus,
button:focus,
a:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-effect {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .copy-button,
  .nav-link,
  footer {
    display: none !important;
  }

  .tool-card {
    break-inside: avoid;
  }
}

/* Dark mode utilities (for future implementation) */
.dark {
  color-scheme: dark;
}

.dark .glass-effect {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility classes */
.text-shadow {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* Animation delays for staggered effects */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Command line styling */
.cli-command {
  background: #1f2937;
  color: #e5e7eb;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  border-left: 4px solid #0ea5e9;
}

.cli-command::before {
  content: '$ ';
  color: #10b981;
  font-weight: bold;
}

/* Configuration blocks */
.config-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.config-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-icon {
  width: 20px;
  height: 20px;
  background: #0ea5e9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

/* Tool schema visualization */
.schema-property {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.schema-property-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #1f2937;
}

.schema-property-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 4px;
}
