/* Tropical Zing Custom Animations & Styling */

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 127, 80, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.8);
  }
}

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

/* Animation Classes */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

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

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

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

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

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

/* Tropical Patterns */
.tropical-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 127, 80, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.coral-glow {
  box-shadow: 0 4px 20px rgba(255, 127, 80, 0.3);
}

.tangerine-glow {
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.3);
}

/* Prose Styling for Readability */
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2d3748;
  max-width: 100%;
}

/* Enhanced prose headings with tropical theme */
.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 3em;
  margin-bottom: 1em;
  color: #1a202c;
  line-height: 1.3;
  background: linear-gradient(135deg, #ff7f50 0%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  color: #2d3748;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

/* Improved paragraph and text spacing */
.prose p {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Enhanced list styling with tropical accents */
.prose ul,
.prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.75em;
  max-width: 100%;
}

.prose ul li {
  margin-bottom: 0.625em;
  position: relative;
  list-style: none;
}

.prose ul li::before {
  content: "●";
  color: #ffa500;
  font-weight: bold;
  position: absolute;
  left: -1.25em;
}

.prose ol li {
  margin-bottom: 0.625em;
  padding-left: 0.5em;
}

.prose ol li::marker {
  color: #ff7f50;
  font-weight: 600;
}

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

/* Text emphasis with tropical colors */
.prose strong {
  font-weight: 600;
  color: #1a202c;
}

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

/* Link styling matching theme */
.prose a {
  color: #ff6347;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
  word-wrap: break-word;
}

.prose a:hover {
  color: #ff4500;
  text-decoration-thickness: 2px;
}

/* Responsive table styling with overflow handling */
.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: table;
}

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

.prose th {
  color: white;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  border: none;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
}

.prose tbody tr {
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: #fef5e7;
}

.prose tbody tr:last-child td {
  border-bottom: 2px solid #ffa500;
}

/* Blockquote styling with tropical accent */
.prose blockquote {
  margin: 2em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #ffa500;
  background: linear-gradient(to right, #fef5e7 0%, transparent 100%);
  font-style: italic;
  color: #4a5568;
}

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

/* Image styling for responsive markdown images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 4px 20px rgba(255, 127, 80, 0.2);
}

/* Code and pre styling */
.prose code {
  background-color: #fef5e7;
  color: #ff6347;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  max-width: 100%;
}

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

/* Horizontal rule with tropical styling */
.prose hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 3em 0;
  background: linear-gradient(to right, transparent, #ffa500, transparent);
  height: 2px;
}

/* Table Responsive Wrapper - keep existing */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  max-width: 100%;
  border-radius: 0.5rem;
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff7f50 0%, #ffa500 100%);
  border-radius: 4px;
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ff7f50 0%, #ffa500 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, #ff7f50 0%, #ff8c00 100%);
  border: 3px solid #ffd700;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Game Card Hover Effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 127, 80, 0.4);
}

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

.burger-active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger-active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

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

/* Step Badge */
.step-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

/* Provider Cloud */
.provider-tag {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
  border: 2px solid #ffa500;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: linear-gradient(135deg, #ff7f50 0%, #ffa500 100%);
  color: white;
  transform: scale(1.05);
}
