/* Boss Embercore Theme - Custom Styles */

/* Animations */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@keyframes pulse-slow-delayed {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

.animate-pulse-slow-delayed {
  animation: pulse-slow-delayed 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Marquee Container */
.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: "";
  display: flex;
  gap: 1.5rem;
}

/* Text Glow Effect */
.drop-shadow-glow {
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

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

.table-responsive::-webkit-scrollbar {
  height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(39, 39, 42, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.3);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.5);
}

/* Prose Styling for Markdown Content */
.prose-custom {
  color: rgba(254, 243, 199, 0.9);
  line-height: 1.75;
}

.prose-custom h2 {
  color: rgb(251, 191, 36);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  border-bottom: 2px solid rgba(251, 191, 36, 0.2);
  padding-bottom: 0.75rem;
}

.prose-custom h3 {
  color: rgb(252, 211, 77);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose-custom h4 {
  color: rgb(253, 224, 71);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-custom p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: rgba(254, 243, 199, 0.9);
}

.prose-custom a {
  color: rgb(251, 191, 36);
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.3);
  transition: all 0.2s ease;
}

.prose-custom a:hover {
  color: rgb(252, 211, 77);
  text-decoration-color: rgb(252, 211, 77);
}

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

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

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

.prose-custom li {
  margin-bottom: 0.625rem;
  color: rgba(254, 243, 199, 0.85);
  line-height: 1.65;
}

.prose-custom li::marker {
  color: rgb(251, 191, 36);
}

.prose-custom strong {
  color: rgb(254, 243, 199);
  font-weight: 700;
}

.prose-custom em {
  font-style: italic;
  color: rgb(252, 211, 77);
}

.prose-custom blockquote {
  border-left: 4px solid rgb(251, 191, 36);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(254, 243, 199, 0.8);
  background: rgba(251, 191, 36, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  background: rgba(24, 24, 27, 0.5);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose-custom thead {
  background: rgba(251, 191, 36, 0.15);
}

.prose-custom th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: rgb(254, 243, 199);
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.prose-custom td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
  color: rgba(254, 243, 199, 0.85);
}

.prose-custom tbody tr:hover {
  background: rgba(251, 191, 36, 0.05);
}

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

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  border: 2px solid rgba(251, 191, 36, 0.2);
}

.prose-custom code {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: rgb(252, 211, 77);
  font-family: "Courier New", monospace;
}

.prose-custom pre {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-custom pre code {
  background: none;
  border: none;
  padding: 0;
  color: rgb(254, 243, 199);
}

/* Ensure responsive tables in prose */
.prose-custom .table-responsive {
  margin: 2rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose-custom h2 {
    font-size: 1.5rem;
  }

  .prose-custom h3 {
    font-size: 1.25rem;
  }

  .prose-custom {
    font-size: 1rem;
  }

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

  .prose-custom th,
  .prose-custom td {
    padding: 0.625rem;
  }
}

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

/* Custom Details/Summary styling */
details summary {
  user-select: none;
}

details[open] summary {
  margin-bottom: 1rem;
}
