/* =========================================
   SPINORHINO RHINOFLUX EMBER THEME
   Amber-red luminescent waves with horn-shaped glow motifs
   ========================================= */

/* === ANIMATIONS === */

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

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  gap: 2rem;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}

/* Particle animation */
@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-10px) scale(0.9);
    opacity: 1;
  }
  75% {
    transform: translateY(-30px) translateX(5px) scale(1.05);
    opacity: 0.7;
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 10s;
}

.particle:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 12s;
}

.particle:nth-child(4) {
  animation-delay: 3s;
  animation-duration: 9s;
}

/* Wave glow animation */
@keyframes wave-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(0) scaleY(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-10%) scaleY(1.1);
  }
}

.wave-glow {
  animation: wave-glow 6s ease-in-out infinite;
}

/* Horn glow pulse */
@keyframes horn-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.6), 0 0 40px rgba(255, 152, 0, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 87, 34, 0.9), 0 0 60px rgba(255, 152, 0, 0.6);
    transform: scale(1.05);
  }
}

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

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

/* === PROSE STYLING === */

.prose {
  max-width: 100%;
  color: #1a1a1a;
  line-height: 1.7;
}

.prose h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  color: #ff5722;
  position: relative;
  padding-bottom: 0.5rem;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #ff5722, #ff9800);
  border-radius: 2px;
}

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

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2vw, 1.125rem);
  text-align: justify;
}

.prose p:first-of-type {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: #333;
}

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.3em;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #ff5722;
  font-weight: bold;
}

.prose ol li::marker {
  color: #ff6f00;
  font-weight: bold;
}

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

.prose blockquote {
  border-left: 0.375rem solid #ff9800;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #424242;
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.05), transparent);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-radius: 0 0.25rem 0.25rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, #ff5722, #ff6f00);
  color: #fff;
}

.prose th {
  padding: 1em 1.2em;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 1em 1.2em;
  border-bottom: 1px solid #f0f0f0;
}

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

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

.prose a {
  color: #ff5722;
  text-decoration: underline;
  text-decoration-color: rgba(255, 87, 34, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
  font-weight: 500;
}

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

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

.prose code {
  background: rgba(255, 152, 0, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #d84315;
  font-weight: 500;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === RHINOFLUX EMBER THEME OVERRIDES === */

/* Horn-shaped glow motifs */
.horn-motif {
  position: relative;
}

.horn-motif::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 40%;
  height: 120%;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(255, 152, 0, 0.1));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: blur(20px);
  pointer-events: none;
}

/* Luminescent wave pattern */
.wave-pattern {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1) 0%, transparent 50%),
    linear-gradient(-45deg, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
  background-size: 200% 200%;
}

/* Energy surge effect */
@keyframes energy-surge {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.energy-surge {
  animation: energy-surge 4s ease infinite;
}

/* Mobile burger menu opaque background */
.burger-menu {
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
}

/* Bonus badge glow */
.bonus-badge {
  background: linear-gradient(135deg, #ff5722, #ff9800);
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.5), 0 0 60px rgba(255, 152, 0, 0.3), inset 0 2px 10px
    rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: rotate(0deg) translate(-50%, -50%);
  }
  100% {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

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

  .prose h2 {
    margin-top: 1.5em;
  }

  .prose h3 {
    margin-top: 1.2em;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.75em 0.8em;
  }
}

/* Ensure readable contrast */
.text-on-dark {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-on-light {
  color: #1a1a1a;
}

/* FAQ Schema JSON-LD */
.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.05), rgba(255, 152, 0, 0.02));
  border-left: 4px solid #ff5722;
  border-radius: 0.5rem;
}

.faq-question {
  font-weight: 600;
  font-size: 1.15rem;
  color: #ff5722;
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: #333;
  line-height: 1.6;
}
