/* Pulse Center Theme - Custom Animations & Styles */

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6), 0 0 60px rgba(0, 217, 255, 0.3), 0 0 80px rgba(0, 217, 255, 0.1);
  }
}

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

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

/* Pulse Text Animation */
@keyframes pulse-text {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 40px rgba(0, 217, 255, 0.5), 0 0 60px rgba(0, 217, 255, 0.3);
  }
}

.pulse-text {
  animation: pulse-text 3s ease-in-out infinite;
}

/* Pulse Ring Animation - Circular Ripples */
@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.pulse-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid #00d9ff;
  border-radius: 50%;
  animation: pulse-ring 3s ease-out infinite;
}

.pulse-ring-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.pulse-ring-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.pulse-ring-3 {
  bottom: 10%;
  left: 50%;
  animation-delay: 2s;
}

/* Scatter Burst Animation - Expanding Outward */
@keyframes scatter-burst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(3) rotate(180deg);
    opacity: 0;
  }
}

.scatter-burst {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: scatter-burst 4s ease-out infinite;
}

.scatter-burst-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.scatter-burst-2 {
  bottom: 20%;
  right: 20%;
  animation-delay: 2s;
}

/* Parallax Background Effect */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    transition: transform 0.1s ease-out;
  }
}

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom p:last-child {
  margin-bottom: 0;
}

.prose-custom a {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: #d946ef;
}

.prose-custom strong {
  color: #ffffff;
  font-weight: 600;
}

.prose-custom ul,
.prose-custom ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Prevent Horizontal Overflow */
html,
body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0e27;
}

::-webkit-scrollbar-thumb {
  background: #00d9ff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0ff;
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #00d9ff;
  outline-offset: 2px;
}

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

/* Adding comprehensive prose styling for markdown content */

/* Prose Container */
.prose {
  max-width: 100%;
  color: #e5e7eb;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Prose Headings */
.prose h2 {
  color: #00d9ff;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 1em;
  letter-spacing: -0.025em;
}

.prose h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  letter-spacing: -0.015em;
}

.prose h4 {
  color: #f3f4f6;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Prose Paragraphs */
.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #d1d5db;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Prose Links */
.prose a {
  color: #00d9ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 217, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
  font-weight: 500;
}

.prose a:hover {
  color: #d946ef;
  text-decoration-color: rgba(217, 70, 239, 0.5);
}

/* Prose Strong/Bold */
.prose strong {
  color: #ffffff;
  font-weight: 700;
}

/* Prose Lists */
.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
  color: #d1d5db;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
}

.prose li::marker {
  color: #00d9ff;
}

.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* Prose Tables */
.prose table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9375rem;
  line-height: 1.6;
  border-collapse: collapse;
}

.prose thead {
  border-bottom: 2px solid #00d9ff;
}

.prose thead th {
  color: #ffffff;
  font-weight: 700;
  vertical-align: bottom;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 217, 255, 0.1);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: rgba(0, 217, 255, 0.05);
}

.prose tbody td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: #d1d5db;
}

.prose tbody tr:last-child {
  border-bottom: none;
}

/* Prose Blockquotes */
.prose blockquote {
  font-style: italic;
  color: #f3f4f6;
  border-left: 0.25rem solid #00d9ff;
  padding-left: 1.5em;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  quotes: "\201C" "\201D" "\2018" "\2019";
  background-color: rgba(0, 217, 255, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0.75em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

/* Prose Code */
.prose code {
  color: #d946ef;
  font-weight: 600;
  font-size: 0.9em;
  background-color: rgba(217, 70, 239, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
  background-color: rgba(10, 14, 39, 0.8);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #e5e7eb;
  font-size: 0.875em;
  font-weight: 400;
}

/* Prose Horizontal Rule */
.prose hr {
  border: none;
  border-top: 1px solid rgba(0, 217, 255, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.625rem;
    margin-top: 1.5em;
  }

  .prose h3 {
    font-size: 1.375rem;
    margin-top: 1.5em;
  }

  .prose h4 {
    font-size: 1.125rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose thead th,
  .prose tbody td {
    padding: 0.5rem 0.75rem;
  }
}

/* Table Wrapper for Horizontal Scroll */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.prose .table-responsive table {
  margin: 0;
}
