/* KFU Strike Theme - Deep Navy & Electric Red */

:root {
  --navy-deep: #0a1628;
  --navy-mid: #1a2b4a;
  --red-electric: #ff0033;
  --red-glow: #ff3355;
  --metallic: #c0c5ce;
  --gold-accent: #ffd700;
  --white: #ffffff;
}

/* Particle Animation */
@keyframes particle-float {
  0%, 100% { 
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.8;
  }
  25% { 
    transform: translateY(-2rem) translateX(1rem) scale(1.1);
    opacity: 1;
  }
  50% { 
    transform: translateY(-1rem) translateX(-0.5rem) scale(0.9);
    opacity: 0.6;
  }
  75% { 
    transform: translateY(-3rem) translateX(0.5rem) scale(1.05);
    opacity: 0.9;
  }
}

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

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

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

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

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

/* Glow Effects */
@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 0 1rem rgba(255, 0, 51, 0.5),
                0 0 2rem rgba(255, 0, 51, 0.3),
                inset 0 0 1rem rgba(255, 51, 85, 0.2);
  }
  50% { 
    box-shadow: 0 0 1.5rem rgba(255, 0, 51, 0.8),
                0 0 3rem rgba(255, 0, 51, 0.5),
                inset 0 0 1.5rem rgba(255, 51, 85, 0.4);
  }
}

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

/* Metallic Shine */
@keyframes metallic-shine {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.metallic-accent {
  background: linear-gradient(
    90deg,
    #8a8f98 0%,
    #c0c5ce 25%,
    #e8eaed 50%,
    #c0c5ce 75%,
    #8a8f98 100%
  );
  background-size: 200% 100%;
  animation: metallic-shine 3s linear infinite;
}

/* Chip Spin */
@keyframes chip-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.chip-spin {
  animation: chip-spin 3s linear infinite;
}

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

/* Mobile Menu Background Fix */
.mobile-menu-bg {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

/* 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: #e5e7eb;
  line-height: 1.75;
}

.prose h2 {
  color: var(--red-electric);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.prose h3 {
  color: var(--metallic);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose h4 {
  color: var(--gold-accent);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: #d1d5db;
}

.prose a {
  color: var(--red-electric);
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 51, 0.3);
  text-underline-offset: 0.25rem;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: var(--red-glow);
  text-decoration-color: var(--red-glow);
}

.prose strong {
  color: var(--white);
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.prose ul {
  list-style-type: disc;
}

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

.prose li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  color: #d1d5db;
}

.prose li::marker {
  color: var(--red-electric);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  background: rgba(26, 43, 74, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
}

.prose th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--red-electric);
  border-bottom: 0.125rem solid var(--red-electric);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(192, 197, 206, 0.2);
  color: #e5e7eb;
}

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

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

.prose blockquote {
  border-left: 0.25rem solid var(--red-electric);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--metallic);
  background: rgba(26, 43, 74, 0.3);
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

.prose code {
  background: var(--navy-mid);
  color: var(--gold-accent);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background: var(--navy-mid);
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .prose p, .prose li {
    font-size: 1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th, .prose td {
    padding: 0.625rem;
  }
}

/* Ensure Readability - No Dark on Dark, Light on Light */
.bg-navy-deep, .bg-navy-mid {
  color: #e5e7eb;
}

.bg-white, .bg-gray-100 {
  color: var(--navy-deep);
}

.text-navy-deep {
  color: var(--navy-deep);
}

.text-white, .text-gray-100 {
  color: var(--white);
}
