/* Golden Byte Theme - Custom Animations & Styles */

/* Parallax Background */
@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.parallax-bg {
  animation: parallax-float 20s ease-in-out infinite;
}

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

.marquee-content {
  animation: marquee-scroll 30s linear infinite;
}

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

/* Pixel Glow Effect */
.pixel-glow {
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5), 0 0 20px rgba(250, 204, 21, 0.3), 0 0 30px rgba(250, 204, 21, 0.2), 2px
    2px 0 rgba(251, 191, 36, 0.8), -2px -2px 0 rgba(251, 191, 36, 0.8);
}

/* Gold Shadow Effects */
.shadow-gold {
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3), 0 0 40px rgba(250, 204, 21, 0.1);
}

.shadow-gold-lg {
  box-shadow: 0 10px 40px rgba(250, 204, 21, 0.4), 0 0 60px rgba(250, 204, 21, 0.2), inset 0 1px 0
    rgba(255, 255, 255, 0.1);
}

/* Bonus Pulse Animation */
@keyframes bonus-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.5);
  }
}

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

/* Digital Sparks Background */
.digital-sparks {
  background-image: radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes spark-float {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0) translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-10px) translateX(5px);
  }
}

.digital-sparks::before,
.digital-sparks::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(250, 204, 21, 0.8);
  border-radius: 50%;
  animation: spark-float 4s ease-in-out infinite;
}

.digital-sparks::before {
  top: 20%;
  left: 30%;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

.digital-sparks::after {
  top: 60%;
  right: 25%;
  animation-delay: 2s;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

/* Comprehensive prose styling for markdown content with proper typography and contrast */
/* Prose Styling for Readability */
.prose-custom {
  max-width: 100%;
  color: #e5e7eb;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Headings */
.prose-custom h2 {
  color: #facc15;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 1em;
  letter-spacing: -0.025em;
  text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.prose-custom h3 {
  color: #fbbf24;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.75em;
  margin-bottom: 0.875em;
  letter-spacing: -0.0125em;
}

.prose-custom h4 {
  color: #fcd34d;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

/* Paragraphs */
.prose-custom p {
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #d1d5db;
}

.prose-custom p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Links */
.prose-custom a {
  color: #facc15;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(250, 204, 21, 0.3);
  transition: all 0.2s ease;
}

.prose-custom a:hover {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

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

.prose-custom ul {
  list-style-type: none;
}

.prose-custom ul > li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  color: #d1d5db;
}

.prose-custom ul > li::before {
  content: "▸";
  position: absolute;
  left: -1.25em;
  color: #facc15;
  font-weight: 700;
}

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

.prose-custom ol > li {
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  color: #d1d5db;
}

.prose-custom ol > li::marker {
  color: #fbbf24;
  font-weight: 600;
}

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

/* Tables */
.prose-custom table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose-custom thead {
  border-bottom: 2px solid rgba(250, 204, 21, 0.3);
}

.prose-custom thead th {
  color: #facc15;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  background: rgba(250, 204, 21, 0.05);
}

.prose-custom tbody tr {
  border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.prose-custom tbody tr:hover {
  background: rgba(250, 204, 21, 0.03);
}

.prose-custom tbody td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
}

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

/* Blockquotes */
.prose-custom blockquote {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding-left: 1.5em;
  border-left: 0.25rem solid #facc15;
  font-style: italic;
  color: #e5e7eb;
  background: rgba(250, 204, 21, 0.03);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
}

.prose-custom blockquote p {
  margin-bottom: 0;
}

/* Images */
.prose-custom img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2);
}

/* Strong and Emphasis */
.prose-custom strong {
  color: #facc15;
  font-weight: 600;
}

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

/* Code */
.prose-custom code {
  color: #fcd34d;
  background: rgba(250, 204, 21, 0.1);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose-custom pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose-custom pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
}

/* Horizontal Rule */
.prose-custom hr {
  border: none;
  border-top: 1px solid rgba(250, 204, 21, 0.2);
  margin-top: 3em;
  margin-bottom: 3em;
}

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

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

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

  .prose-custom thead th,
  .prose-custom tbody td {
    padding: 0.625rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .prose-custom {
    font-size: 0.9375rem;
  }

  .prose-custom ul,
  .prose-custom ol {
    padding-left: 1.25em;
  }

  .prose-custom thead th,
  .prose-custom tbody td {
    padding: 0.5rem 0.625rem;
  }
}

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

.table-responsive table {
  margin-top: 0;
  margin-bottom: 0;
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Mobile Menu Smooth Transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Pixelated Border Effect */
@keyframes pixel-border {
  0%,
  100% {
    border-color: rgba(250, 204, 21, 0.3);
  }
  50% {
    border-color: rgba(250, 204, 21, 0.6);
  }
}

/* Hover Effects for Cards */
.hover\:shadow-gold:hover {
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3), 0 0 40px rgba(250, 204, 21, 0.1);
}

/* Neon Glow on Focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

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

.loading-shimmer {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(250, 204, 21, 0.1) 50%, rgba(0, 0, 0, 0.1) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Responsive Typography */
/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
