/* ========================================
   SPINORHINO RHINO CHARGE NEON THEME
   Custom CSS: Animations, Overrides, Prose
   ======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
  --neon-red: #ff3d00;
  --neon-orange: #ff6b35;
  --neon-pulse: #ff8c42;
  --metallic-dark: #1a1a1a;
  --metallic-silver: #c0c0c0;
  --bg-dark: #0d0d0d;
  --bg-darker: #050505;
  --text-light: #f5f5f5;
  --text-muted: #a0a0a0;
}

/* ===== GLOBAL OVERFLOW CONTROL ===== */
html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* ===== KEYFRAME ANIMATIONS ===== */

/* Particle animation - floating energy particles */
@keyframes particle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--particle-x, 100px), var(--particle-y, -100px)) scale(0);
    opacity: 0;
  }
}

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

/* Tilt animation - energetic charging motion */
@keyframes tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.tilt-animate {
  animation: tilt 4s ease-in-out infinite;
}

/* Neon pulse glow - radiant red-orange effect */
@keyframes neon-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 30px var(--neon-orange);
  }
  50% {
    box-shadow: 0 0 20px var(--neon-orange), 0 0 40px var(--neon-orange), 0 0 60px var(--neon-pulse);
  }
}

.neon-pulse {
  animation: neon-pulse 2s ease-in-out infinite;
}

/* Horn streak - glowing horn-shaped effect */
@keyframes horn-streak {
  0% {
    transform: translateX(-100%) rotate(-10deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) rotate(-10deg);
    opacity: 0;
  }
}

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

/* ===== PROSE STYLING FOR MARKDOWN CONTENT ===== */

.prose {
  max-width: 100%;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings */
.prose h2 {
  color: var(--neon-orange);
  font-size: 2em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.prose h3 {
  color: var(--neon-pulse);
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

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

/* Paragraphs */
.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: var(--text-light);
}

.prose p:first-of-type {
  font-size: 1.1em;
  color: var(--text-light);
}

/* Links */
.prose a {
  color: var(--neon-orange);
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--neon-pulse);
  text-decoration-color: var(--neon-pulse);
  text-shadow: 0 0 5px rgba(255, 140, 66, 0.5);
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.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(--neon-orange);
}

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

/* Tables */
.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9em;
}

.prose thead {
  background: linear-gradient(135deg, var(--neon-red), var(--neon-orange));
  border-bottom: 2px solid var(--neon-pulse);
}

.prose thead th {
  padding: 0.75em 1em;
  font-weight: 600;
  text-align: left;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

.prose tbody tr {
  border-bottom: 1px solid rgba(192, 192, 192, 0.2);
  background-color: rgba(26, 26, 26, 0.6);
  transition: background-color 0.3s ease;
}

.prose tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.1);
}

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

/* Blockquotes */
.prose blockquote {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1.5em;
  border-left: 4px solid var(--neon-orange);
  font-style: italic;
  color: var(--text-muted);
  background: rgba(255, 107, 53, 0.05);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-right: 1em;
}

.prose blockquote p {
  color: var(--text-muted);
}

/* Strong and emphasis */
.prose strong {
  color: var(--neon-orange);
  font-weight: 700;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Code */
.prose code {
  color: var(--neon-pulse);
  background-color: rgba(26, 26, 26, 0.8);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.prose pre {
  background-color: var(--metallic-dark);
  color: var(--text-light);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* Horizontal rules */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-orange), transparent);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* ===== TABLE RESPONSIVE WRAPPER ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* ===== UTILITY OVERRIDES ===== */

/* Neon button styles */
.btn-neon {
  background: linear-gradient(135deg, var(--neon-red), var(--neon-orange));
  color: var(--text-light);
  border: 2px solid var(--neon-orange);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-neon:hover {
  box-shadow: 0 0 25px var(--neon-orange), 0 0 40px var(--neon-pulse);
  transform: scale(1.05);
}

/* Metallic card backgrounds */
.card-metallic {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(13, 13, 13, 0.95));
  border: 1px solid rgba(192, 192, 192, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Horn-shaped decorative element */
.horn-shape {
  position: relative;
  overflow: hidden;
}

.horn-shape::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    var(--neon-red) 45%,
    var(--neon-orange) 50%,
    var(--neon-pulse) 55%,
    transparent 60%
  );
  opacity: 0.3;
  animation: horn-streak 5s ease-in-out infinite;
  pointer-events: none;
}

/* Charging effect for hero elements */
.charging-effect {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(255, 61, 0, 0.2), transparent 70%);
}

/* Responsive text sizing */
@media (max-width: 640px) {
  .prose {
    font-size: 0.95rem;
  }

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

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

/* Ensure no overflow issues */
.prose * {
  max-width: 100%;
  word-wrap: break-word;
}
