/* SpinKO Pulse Loop Alpine Theme - Custom CSS */
/* Keyframes & Animations */

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

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(56, 189, 248, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(56, 189, 248, 0.6);
  }
}

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

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.3125rem);
  }
}

/* Animation Utilities */
.animate-marquee {
  animation: marquee 25s linear infinite;
}

.animate-marquee-reverse {
  animation: marquee-reverse 25s linear infinite;
}

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

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

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

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

/* Parallax */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Alpine Geometric Patterns */
.alpine-pattern {
  background-image: linear-gradient(135deg, rgba(14, 116, 144, 0.08) 25%, transparent 25%),
    linear-gradient(225deg, rgba(14, 116, 144, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(14, 116, 144, 0.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(14, 116, 144, 0.08) 25%, transparent 25%);
  background-size: 2.5rem 2.5rem;
  background-position: 0 0, 1.25rem 0, 1.25rem -1.25rem, 0 1.25rem;
}

.mountain-divider {
  clip-path: polygon(0 100%, 15% 60%, 30% 85%, 50% 40%, 70% 70%, 85% 50%, 100% 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0e7490, #0891b2);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0891b2, #22d3ee);
}

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

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

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #22d3ee 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.2), transparent);
  transition: left 0.5s ease;
}

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

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.875rem rgba(14, 116, 144, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid #22d3ee;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 1.25rem rgba(34, 211, 238, 0.3);
}

/* Card Styles */
.card-alpine {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 0.0625rem solid rgba(34, 211, 238, 0.2);
  backdrop-filter: blur(0.625rem);
  transition: all 0.3s ease;
}

.card-alpine:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-0.25rem);
}

/* Badge Styles */
.badge-glow {
  box-shadow: 0 0 1.25rem rgba(34, 211, 238, 0.4);
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e2e8f0;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.prose h2 {
  color: #f1f5f9;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid rgba(34, 211, 238, 0.3);
  line-height: 1.3;
}

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

.prose h4 {
  color: #cbd5e1;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  color: #cbd5e1;
}

.prose a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #67e8f9;
}

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

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

.prose ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.625em;
  color: #cbd5e1;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  border-radius: 50%;
}

.prose ol {
  list-style-type: none;
  padding-left: 0;
  counter-reset: prose-counter;
  margin-bottom: 1.5em;
}

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  counter-increment: prose-counter;
  color: #cbd5e1;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.prose blockquote {
  border-left: 0.25rem solid #0891b2;
  padding-left: 1.25em;
  margin: 1.5em 0;
  font-style: italic;
  color: #94a3b8;
  background: rgba(14, 116, 144, 0.1);
  padding: 1em 1.25em;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, #0e7490, #0891b2);
}

.prose th {
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.875em 1em;
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 0.0625rem solid rgba(51, 65, 85, 0.5);
  color: #cbd5e1;
}

.prose tbody tr {
  background: rgba(15, 23, 42, 0.5);
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.5);
}

.prose tbody tr:hover {
  background: rgba(14, 116, 144, 0.15);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, #0891b2, transparent);
  margin: 2.5em 0;
}

.prose code {
  background: rgba(30, 41, 59, 0.8);
  color: #22d3ee;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(15, 23, 42, 0.9);
  border: 0.0625rem solid rgba(51, 65, 85, 0.5);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* Game Card Styles */
.game-card {
  flex: 0 0 auto;
  width: clamp(10rem, 30vw, 12.5rem);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card img {
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
}

/* Step Cards */
.step-card {
  position: relative;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #0e7490, #22d3ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 0.25rem 1rem rgba(34, 211, 238, 0.4);
}

/* Promo Cards */
.promo-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 0.0625rem solid rgba(34, 211, 238, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-0.375rem);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* FAQ Accordion */
.faq-item {
  border: 0.0625rem solid rgba(51, 65, 85, 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f1f5f9;
  font-weight: 500;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(14, 116, 144, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cbd5e1;
}

.faq-item.active .faq-answer {
  max-height: 31.25rem;
  padding: 0 1.25rem 1.25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Navigation */
.nav-link {
  position: relative;
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #22d3ee;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Burger Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* Payment Icons */
.payment-icon {
  width: 3rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: #e2e8f0;
}

/* Provider Cloud */
.provider-tag {
  background: rgba(14, 116, 144, 0.2);
  border: 0.0625rem solid rgba(34, 211, 238, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(14, 116, 144, 0.4);
  border-color: rgba(34, 211, 238, 0.4);
  color: #f1f5f9;
}

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

@media (max-width: 48rem) {
  .prose h2 {
    margin-top: 2em;
  }

  .prose h3 {
    margin-top: 1.5em;
  }
}

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

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 0.125rem solid #22d3ee;
  outline-offset: 0.125rem;
}

/* Selection */
::selection {
  background: rgba(14, 116, 144, 0.5);
  color: #ffffff;
}
