/* SlimKing Custom Styles */
/* Animations: Shimmer + Float */

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #22c55e 0%,
    #4ade80 25%,
    #86efac 50%,
    #4ade80 75%,
    #22c55e 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

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

.float-delay-1 {
  animation-delay: 0.5s;
}

.float-delay-2 {
  animation-delay: 1s;
}

.float-delay-3 {
  animation-delay: 1.5s;
}

/* Glow Pulse */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4),
                0 0 40px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6),
                0 0 60px rgba(34, 197, 94, 0.3);
  }
}

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

/* Disco Dot Animation */
@keyframes disco-dot {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.disco-dot {
  animation: disco-dot 1.5s ease-in-out infinite;
}

/* Prose Readability */
.prose-readable {
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.prose-readable p {
  margin-bottom: 1.25em;
}

.prose-readable h2 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 700;
  line-height: 1.3;
}

.prose-readable h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.4;
}

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

.prose-readable li {
  margin-bottom: 0.5em;
}

/* Gradient Backgrounds */
.bg-disco-gradient {
  background: linear-gradient(
    135deg,
    #1a0f0a 0%,
    #2d1810 25%,
    #3d2218 50%,
    #2d1810 75%,
    #1a0f0a 100%
  );
}

.bg-card-gradient {
  background: linear-gradient(
    145deg,
    rgba(61, 34, 24, 0.8) 0%,
    rgba(45, 24, 16, 0.9) 100%
  );
}

/* Tab Styles */
.tab-btn {
  transition: all 0.2s ease;
}

.tab-btn.active {
  background-color: #22c55e;
  color: #1a0f0a;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a0f0a;
}

::-webkit-scrollbar-thumb {
  background: #3d2218;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4d3228;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Badge Shimmer */
.badge-shimmer {
  position: relative;
  overflow: hidden;
}

.badge-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s ease-in-out infinite;
}
