/* popup.css */
/* Enable smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

#popup-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* Prevent scrolling when popup is open */
body.popup-open,
html.popup-open {
  overflow: hidden !important;
}

#popup-content {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}

#popup-window {
  background: #2d1b40;
  padding: 20px;
  border-radius: 0px;
  box-shadow: 0 0 20px #000;
  width: 800px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  border: 2px solid #4c1d95;
  word-wrap: break-word;
  box-sizing: border-box;
}

#popup-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: #f472b6;
  cursor: pointer;
  font-family: sans-serif;
  font-weight: normal;
  text-shadow: 2px 2px 0px #7c2d92;
  background: #2d1b40;
  border: 2px solid #6d28d9;
  border-radius: 0;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px #1e1b3d;
  transition: all 0.2s ease;
}

#popup-close:hover {
  color: #fbbf24;
  background: #4c1d95;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #1e1b3d;
  border-color: #7c3aed;
}

/* Blog post styling inside popup */
#popup-content h1 {
  color: #f472b6;
  text-shadow: 2px 2px 0px #7c2d92;
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: bold;
  font-family: 'Basiic', monospace;
}

#popup-content h2 {
  color: #c084fc;
  border-bottom: 3px solid #6d28d9;
  padding-bottom: 8px;
  margin-top: 30px;
  margin-bottom: 15px;
  border-radius: 0px;
  background: #1e1b3d;
  padding-left: 10px;
  font-family: 'Basiic', monospace;
  text-shadow: 1px 1px 0px #4c1d95;
}

#popup-content h3 {
  color: #e879f9;
  margin-top: 25px;
  margin-bottom: 10px;
  font-family: 'Basiic', monospace;
  text-shadow: 1px 1px 0px #1e1b3d;
}

#popup-content p {
  font-family: 'Basiic', monospace;
  text-shadow: 1px 1px 0px #1e1b3d;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e879f9;
}

#popup-content a {
  color: #f0abfc;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

#popup-content a:hover {
  color: #fbbf24;
  text-shadow: none;
}

#popup-content code {
  background: #1e1b3d;
  color: #f0abfc;
  padding: 2px 6px;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  border: 1px solid #4c1d95;
}

#popup-content pre {
  background: #1e1b3d;
  color: #f0abfc;
  padding: 15px;
  border: 2px solid #4c1d95;
  border-radius: 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#popup-content strong {
  color: #f472b6;
  font-weight: bold;
}

#popup-content em {
  color: #c084fc;
  font-style: italic;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #2d1b40;
  color: #f472b6;
  border: 2px solid #6d28d9;
  border-radius: 0;
  font-size: 1.5rem;
  font-family: 'Basiic', monospace;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 4px 4px 0px #1e1b3d;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 0px #7c2d92;
}

#back-to-top:hover {
  background: #4c1d95;
  color: #fbbf24;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #1e1b3d;
  border-color: #7c3aed;
}

#back-to-top.show {
  display: block;
}

/* Back to Top Button for Popup */
#popup-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #2d1b40;
  color: #f472b6;
  border: 2px solid #6d28d9;
  border-radius: 0;
  font-size: 1.2rem;
  font-family: 'Basiic', monospace;
  cursor: pointer;
  display: none;
  z-index: 10002;
  box-shadow: 4px 4px 0px #1e1b3d;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 0px #7c2d92;
}

#popup-back-to-top:hover {
  background: #4c1d95;
  color: #fbbf24;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #1e1b3d;
  border-color: #7c3aed;
}

#popup-back-to-top.show {
  display: block;
}
