/* Tool Cards - Standalone CSS */
.toolcards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin: 3rem 0;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.toolcard {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  padding: 1.8rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.toolcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.toolcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #356DF1, #5B8DEF);
}

.toolcard h3 {
  color: #356DF1; /* Your accent color */
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding-left: 0px;
}

.toolcard h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.toolcard p {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
  font-size: 1rem;
}

.toolcard-category {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
  padding-left: 5px;
  border-left: 3px solid #356DF1; /* Your accent color */
}

.toolcard button {
  background: linear-gradient(135deg, #356DF1, #5B8DEF); /* Your accent gradient */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.toolcard button::after {
  content: '→';
  font-weight: bold;
  transition: transform 0.3s ease;
}

.toolcard button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(53, 109, 241, 0.3);
}

.toolcard button:hover::after {
  transform: translateX(3px);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .toolcard {
    background: #1e1e1e;
    border-color: #333333;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  }
  
  .toolcard:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  }
  
  .toolcard h3 {
    color: #5B8DEF; /* Adjusted for dark mode */
  }
  
  .toolcard p {
    color: #e0e0e0;
  }
  
  .toolcard-category {
    color: #aaa;
  }
  
  .toolcard button {
    background: linear-gradient(135deg, #2a5298, #1e3c72); /* Darker gradient */
  }
  
  .toolcard button:hover {
    box-shadow: 0 4px 10px rgba(30, 60, 114, 0.4);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .toolcards-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Animation Enhancements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toolcard {
  animation: fadeIn 0.6s ease-out;
}

.toolcard:nth-child(2) {
  animation-delay: 0.1s;
}

.toolcard:nth-child(3) {
  animation-delay: 0.2s;
}

/* Optional: Add this to your container for max width control */
.toolcards-container {
  display: flex;
  justify-content: center;
  width: 100%;
}