* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0b;
  color: #e4e4e7;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Floating Particles Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(0,212,255,0.8) 0%, rgba(0,212,255,0) 70%);
  border-radius: 50%;
  animation: float-up 15s infinite linear;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Header Styling - MATCHING SweepsGrail EXACTLY */
header {
  background: linear-gradient(180deg, #1a1a1b 0%, #0f0f10 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: nowrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.2rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: auto;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.site-brand .emoji {
  font-size: 1.3rem;
  filter: none;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

a.nav-link {
  text-decoration: none;
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: visible;
}

.mobile-icons {
  display: none;
  gap: 6px;
  align-items: center;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.reddit-icon {
  background: rgba(255, 69, 0, 0.2);
  border: 1px solid rgba(255, 69, 0, 0.3);
}

.reddit-icon:hover {
  background: rgba(255, 69, 0, 0.3);
  transform: scale(1.1);
}

.discord-icon {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-icon:hover {
  background: rgba(88, 101, 242, 0.3);
  transform: scale(1.1);
}

.reddit-link {
  background: #ff4500;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.reddit-link:hover {
  background: #ff5722;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.discord-link {
  background: #5865F2;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.discord-link:hover {
  background: #6b76ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.sweepsfort-link {
  background: #1e40af;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.sweepsfort-link:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sweepsgrail-link {
  background: #10b981;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.sweepsgrail-link:hover {
  background: #14c78a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Sidebar Navigation */
.sidebar-nav {
  display: none;
  position: fixed;
  top: 56px; /* Adjusted to match actual header height */
  left: 0;
  height: calc(100vh - 56px);
  width: 260px;
  background: rgba(26, 26, 27, 0.95);
  border-right: 1px solid rgba(0, 212, 255, 0.1);
  padding: 30px 20px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin: 20px 0;
}

.sidebar-nav a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.05);
  border-left-color: #00d4ff;
  transform: translateX(5px);
}

.sidebar-nav a.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  border-left-color: #00d4ff;
}

/* Main Content */
.guide-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
  position: relative;
  z-index: 1;
}

/* Header Info */
.header-info {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: rgba(26, 26, 27, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Typography */
h1 {
  color: #00d4ff;
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  line-height: 1.2;
}

h2 {
  color: #00aaff;
  font-size: 1.8rem;
  margin-top: 50px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  font-weight: 600;
}

h3 {
  color: #66cfff;
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

p {
  line-height: 1.8;
  margin: 20px 0;
  color: #d1d5db;
}

strong {
  color: #00d4ff;
  font-weight: 600;
}

em {
  color: #93c5fd;
}

/* Links */
a {
  color: #00d4ff;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #00aaff;
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin: 20px 0;
  padding-left: 30px;
  color: #d1d5db;
}

ul li, ol li {
  margin: 10px 0;
  line-height: 1.8;
}

ul ul, ol ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Images */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.image-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-grid img:hover {
  transform: scale(1.02);
  border-color: #00d4ff;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

/* Image Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.img-modal img {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.img-modal .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.2s ease;
}

.img-modal .close-btn:hover {
  color: #00d4ff;
  transform: scale(1.1);
}

/* Footer */
.footer-links {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 80px;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(26, 26, 27, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-links a {
  margin: 0 15px;
  color: #00aaff;
  font-weight: 500;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

/* Social Icons */
.social-icons {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  gap: 15px;
}

.social-icons a {
  display: inline-block;
  transition: all 0.3s ease;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.social-icons img:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #00d4ff;
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

/* Mobile Navigation */
.mobile-nav-container {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 999;
  background: rgba(26, 26, 27, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.mobile-top-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 5px;
  gap: 5px;
  flex-wrap: wrap;
}

.mobile-top-nav a {
  font-size: 0.8rem;
  padding: 6px 10px;
  color: #00aaff;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-top-nav a:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: scale(1.05);
}

/* Mobile Responsive Styles - MATCHING SweepsGrail EXACTLY */
@media (min-width: 768px) {
  .sidebar-nav {
    display: block;
  }

  .guide-content {
    margin-left: 280px;
    padding: 50px 40px;
  }

  .social-icons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px 8px;
    gap: 6px;
  }

  .site-brand {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-right: 6px;
    gap: 4px;
  }

  .site-brand .emoji {
    font-size: 1rem;
  }

  .nav-links {
    gap: 4px;
  }

  a.nav-link {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .reddit-link,
  .discord-link {
    display: none;
  }

  .mobile-icons {
    display: flex;
    gap: 4px;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    border-radius: 5px;
  }

  .mobile-nav-container {
    display: block;
  }

  .guide-content {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  #backToTop {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 6px 6px;
    gap: 4px;
  }

  .site-brand {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    gap: 3px;
    margin-right: 4px;
  }

  .site-brand .emoji {
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 3px;
  }

  .mobile-icons {
    gap: 3px;
  }

  .icon-btn {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  a.nav-link {
    padding: 5px 8px;
    font-size: 0.7rem;
    border-radius: 5px;
  }

  .guide-content {
    padding: 25px 15px;
  }
}

@media (max-width: 380px) {
  header {
    padding: 5px 4px;
  }

  .site-brand {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    gap: 2px;
  }

  .site-brand .emoji {
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 2px;
  }

  .mobile-icons {
    gap: 2px;
  }

  .icon-btn {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    border-radius: 4px;
  }

  a.nav-link {
    padding: 4px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
  }
}