/* ========================================
   Executive Glintwave Theme
   Obsidian black with wandering gold currents
   ======================================== */

/* === Animations === */
@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes particle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* === Utility Classes === */
.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

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

.gold-flow {
  background: linear-gradient(270deg, #d4af37, #f4e5b1, #d4af37, #b8941f);
  background-size: 400% 400%;
  animation: goldFlow 8s ease infinite;
}

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

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

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

.prose h4 {
  color: #e5e7eb;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: #d1d5db;
}

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

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

.prose a {
  color: #d4af37;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #f4e5b1;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
  color: #d1d5db;
}

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  overflow-x: auto;
}

.prose thead {
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 2px solid #d4af37;
}

.prose th {
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  color: #f4e5b1;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 1px solid rgba(229, 231, 235, 0.1);
  color: #d1d5db;
}

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

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

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

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

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

/* === Table Responsive Wrapper === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2em;
  margin-bottom: 2em;
}

/* === Custom Scrollbar === */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.1);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #f4e5b1;
}

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

/* === Background Pattern === */
.obsidian-pattern {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
}

.obsidian-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* === Gold Accent Line === */
.gold-accent {
  position: relative;
}

.gold-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* === Button Shimmer Effect === */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

/* === Mobile Menu Override === */
@media (max-width: 1023px) {
  .mobile-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
  }
}
