/* DrugHub Wiki - Global Styles */

* {
  scrollbar-width: thin;
  scrollbar-color: #ff8c00 #1a1a24;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #f0f0f5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated grid background */
.grid-bg {
  background-image: 
    linear-gradient(rgba(255, 140, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 140, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: -1px -1px;
}

/* Stars layer */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 90px 40px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 160px 120px, rgba(255, 140, 0, 1), transparent),
    radial-gradient(1px 1px at 200px 50px, white, transparent),
    radial-gradient(2px 2px at 220px 130px, rgba(255,255,255,0.9), transparent);
  background-size: 300px 200px;
  background-repeat: repeat;
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Shooting stars */
.shooting-star {
  position: fixed;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), rgba(255, 140, 0, 1));
  border-radius: 50%;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.9);
  animation: shooting 6s ease-in-out infinite;
}

.shooting-star:nth-of-type(1) {
  top: 12%;
  right: 15%;
  animation-delay: 0s;
}

.shooting-star:nth-of-type(2) {
  top: 28%;
  right: 30%;
  width: 100px;
  animation-delay: 2s;
}

.shooting-star:nth-of-type(3) {
  top: 45%;
  right: 8%;
  width: 180px;
  animation-delay: 4s;
}

@keyframes shooting {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(-45deg);
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 0.9;
  }
  30% {
    opacity: 0;
    transform: translateX(-400px) translateY(400px) rotate(-45deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-400px) translateY(400px) rotate(-45deg);
  }
}

/* Gradient orbs - space nebulas */
.orb,
.animated-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff8c00 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffb347 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ff8c00 0%, #ffb347 50%, #ff8c00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Card styles */
.card {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.8), rgba(18, 18, 26, 0.9));
  border: 1px solid rgba(255, 140, 0, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(255, 140, 0, 0.3);
  box-shadow: 0 0 40px rgba(255, 140, 0, 0.1), inset 0 0 20px rgba(255, 140, 0, 0.02);
  transform: translateY(-4px);
}

/* Glow button */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #ff8c00, #ffb347, #ff8c00);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(15px);
}

.btn-glow:hover::before {
  opacity: 0.7;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #f0f0f5;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: #ff8c00;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

/* Link box */
.link-box {
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.link-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff8c00, transparent);
}

.link-box code {
  display: block;
  word-break: break-all;
  color: #f0f0f5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Feature icon */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 179, 71, 0.05) 100%);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 0.75rem;
}

.feature-icon i {
  color: #ff8c00;
  font-size: 1.25rem;
}

/* Stats card */
.stat-card {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.6), rgba(18, 18, 26, 0.8));
  border: 1px solid rgba(255, 140, 0, 0.08);
  border-radius: 0.75rem;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.stat-card h3,
.stat-card p {
  position: relative;
  z-index: 1;
}

/* Step card */
.step-card {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.8), rgba(18, 18, 26, 0.9));
  border: 1px solid rgba(255, 140, 0, 0.1);
  border-radius: 1rem;
  transition: all 0.4s ease;
}

.step-card:hover {
  border-color: rgba(255, 140, 0, 0.3);
  transform: translateY(-4px);
}

.step-card img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 1rem auto;
  border-radius: 0.75rem;
}

/* Header blur */
.header-blur {
  position: relative;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
  z-index: 50;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 12rem;
  padding: 0.5rem 0;
  background: rgba(18, 18, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 50;
}

.group:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #a0a0b0;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.05);
}

/* Mobile nav */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 140, 0, 0.1);
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #a0a0b0;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-nav a:hover {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.05);
}

.mobile-nav a.text-accent {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.1);
}

/* Footer */
.footer-link {
  color: #a0a0b0;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #ff8c00;
  padding-left: 4px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
  color: #0a0a0f;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.5);
}

/* Status indicators */
.status-online {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.status-offline {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

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

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

/* Tab styles */
.tab-btn {
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #ff8c00;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff8c00;
  border-radius: 1px;
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Category card */
.category-card {
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.9) 0%, rgba(18, 18, 26, 0.95) 100%);
  border: 1px solid rgba(255, 140, 0, 0.1);
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
}

.category-card:hover {
  border-color: rgba(255, 140, 0, 0.3);
  transform: translateY(-6px);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.3);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 179, 71, 0.05) 100%);
  border: 1px solid rgba(255, 140, 0, 0.2);
  transition: all 0.4s ease;
}

.category-icon img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

/* Step indicator */
.step-line {
  background: linear-gradient(180deg, #ff8c00 0%, rgba(255, 140, 0, 0.2) 100%);
}

/* Testimonial */
.testimonial {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.7), rgba(18, 18, 26, 0.9));
  border: 1px solid rgba(255, 140, 0, 0.08);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.testimonial:hover {
  border-color: rgba(255, 140, 0, 0.2);
}

/* CTA section */
.cta-section {
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.5) 0%, rgba(10, 10, 15, 0.8) 100%);
  border: 1px solid rgba(255, 140, 0, 0.1);
  border-radius: 1.5rem;
}

/* Pulse glow animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 140, 0, 0.5); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Nav link */
.nav-link {
  color: #a0a0b0;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: #ff8c00;
}

.nav-link.text-accent {
  color: #ff8c00;
}

/* Vue transitions */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .orb { opacity: 0.2; }
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Icon containers */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 179, 71, 0.05) 100%);
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.icon-box i {
  color: #ff8c00;
  font-size: 1.25rem;
}

/* Step number badge */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #ff8c00;
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Picture/source fallback */
picture {
  display: block;
}

picture img {
  display: block;
}

/* Color variables for Tailwind */
:root {
  --color-primary: #0a0a0f;
  --color-secondary: #12121a;
  --color-accent: #ff8c00;
  --color-accent-light: #ffb347;
  --color-surface: #1a1a24;
  --color-surface-light: #242432;
  --color-text-primary: #f0f0f5;
  --color-text-secondary: #a0a0b0;
}
