/* ========================================
   FortaWin Solid Core Theme - Custom Styles
   ======================================== */

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.25rem); }
}

@keyframes parallax-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6.25rem); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(234, 179, 8, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(234, 179, 8, 0.8);
  }
}

@keyframes particle-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(6.25rem, -12.5rem) rotate(360deg);
    opacity: 0;
  }
}

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

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

.animate-parallax {
  animation: parallax-slow 20s linear infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

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

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

/* Particle System */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(234, 179, 8, 0.6);
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(2) { animation-delay: 1s; left: 20%; }
.particle:nth-child(3) { animation-delay: 2s; left: 40%; }
.particle:nth-child(4) { animation-delay: 3s; left: 60%; }
.particle:nth-child(5) { animation-delay: 4s; left: 80%; }

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

/* Mobile Menu Slide */
.mobile-menu {
  animation: slide-in-right 0.3s ease-out;
}

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

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

/* ========================================
   Prose Styling for Markdown Content
   ======================================== */

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

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1.25em;
  margin-bottom: 0.625em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  font-size: 1rem;
  line-height: 1.75;
}

.prose a {
  color: #eab308;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.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;
  line-height: 1.75;
}

.prose li > p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #eab308;
  padding-left: 1em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  color: #4b5563;
  background-color: #f9fafb;
  padding: 1em;
  border-radius: 0.375rem;
}

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

.prose thead {
  background-color: #111827;
  color: #ffffff;
}

.prose thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 0.125rem solid #374151;
}

.prose tbody tr {
  border-bottom: 0.0625rem solid #e5e7eb;
}

.prose tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.prose tbody td {
  padding: 0.75rem 1rem;
  color: #374151;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #dc2626;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose table {
    font-size: 0.8125rem;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.5rem 0.75rem;
  }
}

/* Additional Responsive Utilities */
@media (max-width: 1024px) {
  .prose {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
