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

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(163, 230, 53, 0.7);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shimmer-effect {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(163, 230, 53, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.float-animation {
  animation: float 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;
}

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

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

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

.prose-readable h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.prose-readable h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a3e635;
}

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

/* Tab Active State */
.tab-active {
  background: linear-gradient(135deg, #a3e635 0%, #65a30d 100%);
  color: #000;
}

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(163, 230, 53, 0.2);
}

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

/* Glass Effect */
.glass {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 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;
}

/* Mobile Menu Transition */
.mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Star Rating */
.star-filled {
  color: #facc15;
}

.star-empty {
  color: #404040;
}

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

/* Selection Color */
::selection {
  background: #a3e635;
  color: #000;
}
