@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/* Custom styles */
.upgrade-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#upgrades-list:not(.show-all) .opacity-50 {
  display: none;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#click-button:active {
  animation: pulse 0.3s ease-in-out;
}

.animate-level-up {
  animation: levelUp 2s ease-in-out;
}

@keyframes levelUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.animate-click {
  animation: click 0.1s ease-in-out;
}
@keyframes click {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
}

.upgrade-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Transition effects */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.achieve {
  max-height: 120px;
  overflow: overlay;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Dark mode styles */
.dark {
  background: #11171e !important;
}

.dark .bg-gradient-to-br {
  background: #11171e !important;
  background-image: none !important;
}

.dark .bg-white {
  background-color: #1f2937;
  color: #e5e7eb;
}

.dark .text-gray-600 {
  color: #d1d5db;
}

.dark .text-gray-800 {
  color: #f3f4f6;
}

.dark .bg-gray-100 {
  background-color: #374151;
}

.dark .text-blue-600 {
  color: #60a5fa;
}

.dark .btn-close {
  background: #ffffff17;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #click-button {
    font-size: 1.25rem;
    padding: 1rem;
  }

  .upgrade-button {
    width: 100%;
  }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
