/* Custom CSS Extensions for Master Tools */

.text-gradient-hero {
  color: #818cf8; /* Solid fallback if gradient fails */
  background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-brand {
  color: #6366f1;
  background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  background-color: #101626;
  border: 1px solid #1f293d;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.cat-pill:hover {
  color: #ffffff;
  border-color: #475569;
}

.cat-pill.active {
  color: #ffffff;
  background-color: #4f46e5;
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Tool Cards */
.tool-card {
  position: relative;
  background-color: #101626;
  border: 1px solid #1f293d;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 285px;
  min-height: 220px;
  flex: 0 1 285px;
}

@media (max-width: 640px) {
  .tool-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 24px -6px rgba(99, 102, 241, 0.2);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

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

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

/* Dragging state */
.sortable-ghost {
  opacity: 0.35;
  border: 2px dashed #6366f1 !important;
}

.sortable-drag {
  cursor: grabbing;
}

/* Toast Notifications */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(12px);
}

.toast-success {
  background: rgba(16, 26, 44, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #e2e8f0;
}

.toast-error {
  background: rgba(30, 16, 26, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
