/* Golden Rush Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.8);
  }
}

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

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Golden Shimmer Effect */
.golden-shimmer {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0) 0%, rgba(255, 215, 0, 0.3) 50%, rgba(255, 193, 7, 0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite linear;
}

/* Floating Animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Glow */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

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

/* Sparkle Effect */
.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

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

/* Golden Gradient Backgrounds */
.bg-golden-gradient {
  background: linear-gradient(135deg, #1a1410 0%, #2d1f0f 50%, #1a1410 100%);
}

.bg-golden-accent {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
}

.bg-amber-glow {
  background: radial-gradient(circle at center, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
}

/* Golden Border Animation */
.golden-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#1a1410, #1a1410) padding-box, linear-gradient(135deg, #d4af37, #ffd700, #d4af37)
    border-box;
}

/* Prose Styling for Readability */
.prose {
  max-width: 100%;
  color: #e8e6e3;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.prose h2 {
  color: #ffd700;
  font-weight: 700;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.prose h3 {
  color: #d4af37;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.prose h4 {
  color: #c9a961;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.5rem;
  color: #e8e6e3;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75em;
  color: #e8e6e3;
}

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

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

.prose li {
  margin-bottom: 0.625rem;
  line-height: 1.7;
}

.prose li::marker {
  color: #d4af37;
}

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

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

.prose a {
  color: #d4af37;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #ffd700;
  text-decoration-color: #ffd700;
}

.prose blockquote {
  border-left: 0.25rem solid #d4af37;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #c9a961;
  background: rgba(212, 175, 55, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

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

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

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

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

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.1);
}

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

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

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

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

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

/* Custom Scrollbar for Tables */
.table-responsive::-webkit-scrollbar {
  height: 0.625rem;
}

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

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* Ensure proper spacing for first/last elements */
.prose > *:first-child {
  margin-top: 0;
}

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

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

  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
  }

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

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

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Golden Dust Particles */
.golden-dust {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

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

/* Mobile Menu Transition */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Button Hover Effects */
.btn-golden {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-golden::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-golden:hover::before {
  width: 300px;
  height: 300px;
}

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

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

/* Rotating Golden Ring */
.golden-ring {
  animation: rotate-slow 20s linear infinite;
}

/* Text Shadow for Readability */
.text-shadow-golden {
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

/* Focus Styles */
button:focus,
a:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Responsive Image */
img {
  max-width: 100%;
  height: auto;
}
