/* ===============================
   TangoBet Hugo Theme - Custom Styles
   Tango Glowline: Bright Orange + Muted Violets
   =============================== */

/* === CSS Variables === */
:root {
  --orange-primary: #ff6b35;
  --orange-bright: #ff8c42;
  --violet-muted: #7b68ab;
  --violet-dark: #5a4a7a;
  --violet-light: #9d8ec4;
  --bg-dark: #1a1525;
  --bg-card: #251f3a;
  --text-light: #f5f3f8;
  --text-muted: #b8b0cc;
  --border-color: rgba(157, 142, 196, 0.2);
}

/* === Keyframe Animations === */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 107, 53, 0.3);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes beam-sweep {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(200%) rotate(45deg);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* === Particle System === */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--orange-bright), transparent);
  border-radius: 50%;
  animation: float-up 15s linear infinite;
  opacity: 0;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  animation-duration: 14s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
  animation-duration: 13s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-delay: 1s;
  animation-duration: 15s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 3s;
  animation-duration: 11s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
  animation-duration: 16s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-delay: 2.5s;
  animation-duration: 12s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-delay: 4.5s;
  animation-duration: 14s;
}
.particle:nth-child(9) {
  left: 90%;
  animation-delay: 1.5s;
  animation-duration: 13s;
}
.particle:nth-child(10) {
  left: 15%;
  animation-delay: 3.5s;
  animation-duration: 15s;
}

/* === Glow Effects === */
.glow-orange {
  animation: glow-pulse 3s ease-in-out infinite;
}

.beam-effect {
  position: relative;
  overflow: hidden;
}

.beam-effect::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
  animation: beam-sweep 3s ease-in-out infinite;
}

/* === Gradient Backgrounds === */
.gradient-orange-violet {
  background: linear-gradient(135deg, var(--orange-primary), var(--violet-muted));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

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

/* === Parallax Base === */
.parallax-layer {
  transition: transform 0.3s ease-out;
}

/* === Table Responsive === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.table-responsive table {
  width: 100%;
  min-width: 600px;
}

/* === Prose Styling for Markdown Content === */
.prose {
  max-width: 100%;
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1rem;
}

.prose h2 {
  color: var(--orange-bright);
  font-size: 2em;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 1em;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: var(--violet-light);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  letter-spacing: -0.01em;
}

.prose h4 {
  color: var(--text-light);
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

.prose p {
  color: var(--text-light);
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose a {
  color: var(--orange-bright);
  text-decoration: underline;
  text-decoration-color: rgba(255, 140, 66, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: var(--orange-primary);
  text-decoration-color: var(--orange-primary);
}

.prose strong {
  color: var(--text-light);
  font-weight: 700;
}

.prose em {
  color: var(--violet-light);
  font-style: italic;
}

.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;
  color: var(--text-light);
  line-height: 1.75;
}

.prose li::marker {
  color: var(--orange-bright);
}

.prose ul ul,
.prose ol ul,
.prose ul ol,
.prose ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose blockquote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 0.25rem solid var(--violet-muted);
  padding-left: 1em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  quotes: "\201C" "\201D" "\2018" "\2019";
}

.prose blockquote p:first-of-type::before {
  content: open-quote;
}

.prose blockquote p:last-of-type::after {
  content: close-quote;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  overflow-x: auto;
}

.prose thead {
  border-bottom: 2px solid var(--border-color);
}

.prose thead th {
  color: var(--orange-bright);
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75em 1em;
  background: var(--bg-card);
}

.prose tbody tr {
  border-bottom: 1px solid var(--border-color);
}

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

.prose tbody td {
  vertical-align: top;
  padding: 0.75em 1em;
  color: var(--text-light);
}

.prose tbody tr:nth-child(even) {
  background: rgba(37, 31, 58, 0.3);
}

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

.prose code {
  color: var(--violet-light);
  background: var(--bg-card);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: var(--bg-card);
  color: var(--text-light);
  overflow-x: auto;
  padding: 1.25em 1.5em;
  border-radius: 0.5rem;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  border: 1px solid var(--border-color);
}

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

.prose hr {
  border: none;
  border-top: 2px solid var(--border-color);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* === Responsive Typography === */
@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    font-size: 1.75em;
  }

  .prose h3 {
    font-size: 1.375em;
  }

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

@media (min-width: 1024px) {
  .prose {
    font-size: 1.0625rem;
  }
}

/* === Mobile Menu === */
@media (max-width: 1023px) {
  .mobile-menu {
    animation: slide-in-right 0.3s ease-out;
  }
}

/* === Custom Button Styles === */
.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-bright));
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--violet-muted), var(--violet-dark));
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(123, 104, 171, 0.4);
}

/* === SVG Pattern Background === */
.svg-pattern-dots {
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 107, 53, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

.svg-pattern-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(157, 142, 196, 0.1) 10px,
    rgba(157, 142, 196, 0.1) 11px
  );
}
