/* Tool Actions & Share Modal Styles - Standard CSS (No @apply) */

.tool-heading-1 {
  font-size: 1.875rem;
  /* text-3xl fallback */
  line-height: 2.25rem;
  font-weight: 900;
  color: #111827;
  /* gray-900 */
  letter-spacing: -0.025em;
  /* tracking-tight */
}

@media (min-width: 1024px) {
  .tool-heading-1 {
    font-size: 2.25rem;
    /* text-4xl variant */
  }
}

/* Modal Simple Backdrop */
#share-modal-container {
  display: flex !important;
}

#share-modal-container.hidden {
  display: none !important;
}

#share-modal-backdrop {
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

#share-modal {
  z-index: 1001;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.share-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: #2f76ff !important;
  /* Standardized Brand Blue */
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  transform: scale(1.1);
  background-color: #1d4ed8 !important;
  /* Brand Dark hover */
}

.share-btn:active {
  transform: scale(0.95);
}

/* Tool Header Action Buttons (Share/Fav) */
.tool-header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* gap-2 */
  padding: 0.5rem 1rem !important;
  /* px-4 py-2 */
  border-radius: 9999px;
  /* rounded-full */
  border: 1px solid #e5e7eb;
  /* border-gray-200 */
  color: #4b5563;
  /* text-gray-600 */
  transition: all 0.2s;
  background-color: #fff;
  margin-bottom: 0 !important;
  cursor: pointer;
  text-decoration: none;
}

.tool-header-btn:hover {
  border-color: #3b82f6;
  /* blue-500 */
  background-color: #eff6ff;
  /* blue-50 */
  color: #2563eb;
  /* blue-600 */
}

.tool-header-btn svg {
  width: 1rem;
  /* w-4 */
  height: 1rem;
  /* h-4 */
  transition: transform 0.2s;
}

.tool-header-btn:hover svg {
  transform: scale(1.1);
}

.tool-header-btn span {
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
}

.share-btn svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  display: block !important;
  color: white !important;
  fill: white !important;
  /* Force direct white fill */
}

/* Ensure icons with stroke also become white (like mail and copy) */
.share-btn svg path,
.share-btn svg rect,
.share-btn svg circle,
.share-btn svg ellipse,
.share-btn svg line,
.share-btn svg polyline,
.share-btn svg polygon {
  stroke: white !important;
  /* Force direct white stroke */
  fill: inherit !important;
}

/* For icons that use fill="currentColor" in the symbol, fill: white on the svg should cover it */
.share-btn svg use {
  fill: white !important;
}

.share-btn-facebook {
  background-color: #1877F2;
}

.share-btn-twitter {
  background-color: #1DA1F2;
}

.share-btn-linkedin {
  background-color: #0A66C2;
}

.share-btn-email {
  background-color: #EA4335;
}

.share-btn-copy {
  background-color: #6366F1;
}

/* Favourite Button States */
.btn-favourite.is-active {
  border-color: #3b82f6 !important;
  /* blue-500 */
  background-color: #eff6ff !important;
  /* blue-50 */
  color: #2563eb !important;
  /* blue-600 */
}

.btn-favourite.is-active .icon-heart-outline {
  display: none !important;
}

.btn-favourite.is-active .icon-heart-filled {
  display: block !important;
}

.btn-favourite.is-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
}

/* Sidebar Favourite Section */
#favourite-tools-container {
  margin-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.fav-empty-state {
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  font-style: italic;
  color: #9ca3af;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}