/* WeTheNorth Wiki - Global Styles */

/* Disable all animations and transitions site-wide */
*,
*::before,
*::after {
  animation: none !important;
  animation-delay: 0s !important;
  animation-duration: 0s !important;
  transition: none !important;
  transition-delay: 0s !important;
  transition-duration: 0s !important;
}

html {
  scroll-behavior: auto !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #dc2626 #e5e7eb;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid background */
.grid-bg {
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: -1px -1px;
}

/* Stars, shooting stars, orbs - all hidden */
.stars,
.shooting-star,
.orb,
.animated-orb,
.orb-1,
.orb-2,
.orb-3 {
  display: none !important;
}

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

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

/* Gradient text - static color, no animation */
.gradient-text {
  color: #dc2626;
}

/* Card styles */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

/* 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: #dc2626;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: #dc2626;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
}

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

.btn-glow:hover {
  box-shadow: 0 10px 30px rgba(220, 38, 38, 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(220, 38, 38, 0.4);
  color: #1a1a2e;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(220, 38, 38, 0.05);
  border-color: #dc2626;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}

/* Link box */
.link-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  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, #dc2626, transparent);
}

.link-box code {
  display: block;
  word-break: break-all;
  color: #1a1a2e;
  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: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 0.75rem;
}

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

/* Stats card */
.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 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: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.step-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.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(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 12rem;
  padding: 0.5rem 0;
  background: #ffffff;
  backdrop-filter: blur(20px);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  z-index: 50;
}

.group:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}

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

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
}

.mobile-nav a:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}

.mobile-nav a.text-accent {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

/* Footer */
.footer-link {
  color: #6b7280;
}

.footer-link:hover {
  color: #dc2626;
  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: #dc2626;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  z-index: 100;
}

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

.scroll-top:hover {
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

/* Scroll to top (subpage variant) */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #dc2626;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  z-index: 100;
  border: none;
}

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

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

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

.pulse-green {
}

/* Tab styles */
.tab-btn {
  position: relative;
}

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

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

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

.tab-content.active {
  display: block;
}

/* Category card */
.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.category-card:hover .category-icon {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

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

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

/* Testimonial */
.testimonial {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.testimonial:hover {
  border-color: rgba(220, 38, 38, 0.2);
}

/* CTA section */
.cta-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
}

.pulse-glow {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

/* Nav link */
.nav-link {
  color: #6b7280;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

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

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

/* 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: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.icon-box i {
  color: #dc2626;
  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: #dc2626;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
}

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

picture img {
  display: block;
}

/* Color variables for Tailwind */
:root {
  --color-primary: #ffffff;
  --color-secondary: #f8f8fa;
  --color-accent: #dc2626;
  --color-accent-light: #ef4444;
  --color-surface: #f0f0f5;
  --color-surface-light: #e5e5ef;
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #6b7280;
}
