/* CrashPirate Custom Styles */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}

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

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

.prose-custom h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-custom h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

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

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #10b981 0%,
    #34d399 25%,
    #6ee7b7 50%,
    #34d399 75%,
    #10b981 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

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

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

.float-delay-1 {
  animation: float 4s ease-in-out 0.5s infinite;
}

.float-delay-2 {
  animation: float 4s ease-in-out 1s infinite;
}

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

/* Glow effects */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.7);
  }
}

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

.glow-emerald {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.glow-emerald-strong {
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.5);
}

/* Gradient backgrounds */
.bg-gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.bg-gradient-emerald {
  background: linear-gradient(135deg, #047857 0%, #10b981 50%, #34d399 100%);
}

.bg-gradient-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.2);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #10b981;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Badge styles */
.badge {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

/* Tab styles */
.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  color: white;
}

.tab-btn:not(.active):hover {
  background: rgba(16, 185, 129, 0.15);
}

.tab-content {
  display: none;
}

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

/* Table styles */
.custom-table {
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table th {
  background: rgba(16, 185, 129, 0.15);
}

.custom-table tr:hover td {
  background: rgba(16, 185, 129, 0.08);
}

/* Nav mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

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

/* Star rating */
.star-rating {
  color: #fbbf24;
}

/* Aspect ratios */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
