/* Obsidian Empire Custom Styles */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3), 0 0 40px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.5), 0 0 60px rgba(212, 175, 55, 0.4);
  }
}

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

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-right: 100%;
}

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

.parallax-layer {
  transition: transform 0.3s ease-out;
}

.glow-red {
  text-shadow: 0 0 10px rgba(255, 0, 51, 0.6), 0 0 20px rgba(255, 0, 51, 0.4);
}

.glow-gold {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
}

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

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

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Prose Styling for Readability */
.prose {
  color: #e5e5e5;
  line-height: 1.75;
  max-width: 100%;
}

/* Enhanced heading styles with better spacing and contrast */
.prose h2 {
  color: #ffd700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.prose h3 {
  color: #d4af37;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.prose h4 {
  color: #c9a961;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.5;
}

/* Improved paragraph and text styling */
.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: #d1d1d1;
  line-height: 1.8;
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
  color: #e5e5e5;
}

/* Enhanced list styling with better spacing */
.prose ul,
.prose ol {
  margin-bottom: 1.75em;
  margin-top: 1em;
  padding-left: 1.75em;
  color: #d1d1d1;
}

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

.prose ul li {
  position: relative;
  margin-bottom: 0.75em;
  padding-left: 0.5em;
}

.prose ul li::before {
  content: "▸";
  position: absolute;
  left: -1.25em;
  color: #ff0033;
  font-weight: bold;
}

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

.prose ol li {
  margin-bottom: 0.75em;
  padding-left: 0.5em;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Better emphasis and link styling */
.prose strong {
  color: #ffd700;
  font-weight: 600;
}

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

.prose a {
  color: #ff3355;
  text-decoration: underline;
  text-decoration-color: rgba(255, 51, 85, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #ff5577;
  text-decoration-color: rgba(255, 85, 119, 0.8);
  text-shadow: 0 0 8px rgba(255, 51, 85, 0.4);
}

/* Responsive table styling with proper overflow handling */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.prose thead {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 0, 51, 0.1));
}

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

.prose td {
  padding: 0.875em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d1d1;
  vertical-align: top;
}

.prose tbody tr {
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.prose tbody tr:hover {
  background: rgba(255, 0, 51, 0.08);
}

/* Blockquote styling for callouts */
.prose blockquote {
  border-left: 0.25em solid #ff0033;
  padding: 1em 1.5em;
  margin: 2em 0;
  background: rgba(212, 175, 55, 0.05);
  font-style: italic;
  color: #e5e5e5;
  position: relative;
}

.prose blockquote::before {
  content: "”"; /* Corrected: Missing closing quote */
  position: absolute;
  top: -0.25em;
  left: 0.5em;
  font-size: 3em;
  color: #d4af37;
  opacity: 0.3;
  font-family: Georgia, serif;
}

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

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

/* Image styling with responsive behavior */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Code and pre styling */
.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: "Courier New", monospace;
}

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

.prose pre code {
  background: transparent;
  padding: 0;
  color: #e5e5e5;
}

/* Horizontal rule styling */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  margin: 3em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff0033, #d4af37);
  border-radius: 4px;
}

/* Gradient Overlays */
.smoke-gradient {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.9) 50%, rgba(20, 20, 20, 0.95) 100%);
}

.neon-border {
  border: 2px solid transparent;
  background-image: linear-gradient(#1a1a1a, #1a1a1a), linear-gradient(135deg, #ff0033, #d4af37);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

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

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

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

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

/* Burger Menu Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Fade in animation for sections */
.fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

/* Bonus Badge Styling */
.bonus-badge {
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

/* Game Card Hover Effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 0, 51, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Step Badge */
.step-badge {
  background: linear-gradient(135deg, #ff0033, #d4af37);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.4);
}

/* Provider Cloud Tags */
.provider-tag {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(255, 0, 51, 0.1);
  border-color: rgba(255, 0, 51, 0.5);
  transform: scale(1.05);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: rgba(212, 175, 55, 0.05);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

/* Mobile Menu Overlay */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}

.mobile-menu.active {
  transform: translateX(0);
}
