/* Tools page styles */
.tools-page {
  padding-top: 6rem;
  min-height: 100vh;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.tools-hero {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-white-5);
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
  text-align: center;
}

.tools-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tools-title .accent {
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
}

.tools-subtitle {
  font-size: 1.125rem;
  color: var(--color-white-60);
  max-width: 600px;
  margin: 0 auto;
}

.tools-content {
  padding: 3rem 0;
}

.tools-category {
  margin-bottom: 4rem;
}

.tools-category:last-of-type {
  margin-bottom: 2rem;
}

.tools-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
}

.tools-category-title svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-white);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed);
}

.tool-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 103, 254, 0.2);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  border-radius: calc(var(--border-radius) / 1.5);
  margin-bottom: 1rem;
  color: var(--color-white);
  transition: transform var(--transition-speed);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.tool-description {
  font-size: 0.9375rem;
  color: var(--color-white-60);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tool-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-speed);
}

.tool-card:hover .tool-link {
  gap: 0.75rem;
}

/* Tools info section */
.tools-info {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
}

.tools-info-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tools-info-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.tools-info-content p {
  font-size: 1rem;
  color: var(--color-white-60);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tools-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--color-darker);
  border-radius: calc(var(--border-radius) / 1.5);
  border: 1px solid var(--color-white-5);
  transition: all var(--transition-speed);
}

.tool-benefit:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.tool-benefit svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.tool-benefit span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .tools-title {
    font-size: 2rem;
  }

  .tools-subtitle {
    font-size: 1rem;
  }

  .tools-category-title {
    font-size: 1.25rem;
  }

  .tools-category-title svg {
    width: 24px;
    height: 24px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .tool-icon {
    width: 56px;
    height: 56px;
  }

  .tool-icon svg {
    width: 28px;
    height: 28px;
  }

  .tools-info {
    padding: 2rem 1rem;
  }

  .tools-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Light theme support */
[data-theme='light'] .tools-page {
  background-color: var(--color-dark);
}

[data-theme='light'] .tool-card {
  background-color: var(--color-gray);
  border-color: var(--color-gray-light);
}

[data-theme='light'] .tool-card:hover {
  border-color: var(--color-accent);
}

[data-theme='light'] .tools-info {
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
}

[data-theme='light'] .tool-benefit {
  background-color: var(--color-darker);
  border-color: var(--color-gray-light);
}

