/* Underboss Gold Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Utility Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Parallax Effect */
.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
}

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

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #FFD700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Crimson Glow */
.crimson-glow {
  box-shadow: 0 0 30px rgba(153, 0, 0, 0.4), 0 0 60px rgba(153, 0, 0, 0.2);
}

/* Velvet Surface */
.velvet-surface {
  background: linear-gradient(135deg, #1a0a0a 0%, #2a0a0a 50%, #1a0a0a 100%);
  position: relative;
}

.velvet-surface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Gold Border Accent */
.gold-border {
  border: 2px solid #D4AF37;
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1), 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Enhanced prose styling for markdown content with responsive typography */
/* Prose Styling for Readability */
.prose {
  color: #e8e8e8;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #FFD700;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 2.5em;
  margin-bottom: 1em;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

.prose h3 {
  color: #D4AF37;
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: #d0d0d0;
  max-width: 75ch;
}

.prose ul, .prose ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
  color: #d0d0d0;
}

.prose li {
  margin-bottom: 0.75em;
  line-height: 1.7;
}

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

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

.prose a {
  color: #FFD700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
}

.prose a:hover {
  color: #FFA500;
  text-decoration-color: rgba(255, 165, 0, 0.6);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

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

.prose em {
  color: #D4AF37;
  font-style: italic;
}

.prose blockquote {
  border-left: 0.25em solid #D4AF37;
  padding-left: 1.5em;
  margin: 2em 0;
  color: #b8b8b8;
  font-style: italic;
  background: rgba(212, 175, 55, 0.05);
  padding: 1.5em;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  display: block;
  overflow-x: auto;
}

.prose thead {
  background: rgba(212, 175, 55, 0.15);
}

.prose th {
  background: rgba(212, 175, 55, 0.1);
  color: #FFD700;
  padding: 1em;
  text-align: left;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 600;
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #d0d0d0;
}

.prose tr:nth-child(even) {
  background: rgba(212, 175, 55, 0.03);
}

.prose tr:hover {
  background: rgba(212, 175, 55, 0.08);
  transition: background 0.2s ease;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.prose code {
  background: rgba(212, 175, 55, 0.1);
  color: #FFD700;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: rgba(26, 10, 10, 0.8);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #d0d0d0;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  margin: 3em 0;
}

/* Table responsive wrapper for mobile safety */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

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

::-webkit-scrollbar-track {
  background: #1a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37, #8B6914);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFD700, #D4AF37);
}

/* Pattern Overlay */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(212, 175, 55, 0.02) 10px,
    rgba(212, 175, 55, 0.02) 20px
  );
  pointer-events: none;
}
