/* Alpine Fortune Custom Animations & Overrides */

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(147, 197, 253, 0.5), 0 0 40px rgba(147, 197, 253, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(147, 197, 253, 0.8), 0 0 60px rgba(147, 197, 253, 0.5);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

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

.parallax-layer {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.glow-border {
  position: relative;
  animation: glow-pulse 3s ease-in-out infinite;
}

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

/* Prose Styling for Readability */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #f0f9ff;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.prose h3 {
  color: #dbeafe;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: #cbd5e1;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
  color: #cbd5e1;
}

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

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

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.prose li::marker {
  color: #93c5fd;
}

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

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em auto;
  display: block;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.prose blockquote {
  border-left: 0.25rem solid #3b82f6;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #bfdbfe;
  background: rgba(30, 58, 138, 0.2);
  padding: 1em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
}

.prose thead {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.prose th {
  color: #f0f9ff;
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  border: 1px solid #3b82f6;
}

.prose td {
  padding: 0.75em 1em;
  border: 1px solid #3b82f6;
  background: rgba(30, 58, 138, 0.3);
  color: #cbd5e1;
}

.prose tbody tr:hover td {
  background: rgba(30, 58, 138, 0.5);
  transition: background 0.2s ease;
}

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

.table-responsive table {
  margin: 0;
}

/* Glass Morphism Effects */
.glass-effect {
  background: rgba(30, 58, 138, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 197, 253, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

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

/* Alpine Pattern Background */
.alpine-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(147, 197, 253, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(191, 219, 254, 0.05) 0%, transparent 50%);
}

/* Sparkle Decorations */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #93c5fd;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(2) {
  animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
  animation-delay: 1s;
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(8px);
}
