/* Tools Directory Page Styles */

/* Reset main padding/margin */
.main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1d1b27;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  background: linear-gradient(90deg, #7826e3 2.81%, #9c60e8 94.67%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: #667085;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.star-icon {
  margin-top: 16px;
}

/* Tools Section */
.tools-section {
  padding: 80px 24px;
  background: #fcfcfc;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Category */
.tools-category {
  margin-bottom: 80px;
}

.tools-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1d1b27;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #ede1ff;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Tool Card */
.tool-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #ede1ff;
  padding: 32px;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7826e3 0%, #9c60e8 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px -4px rgba(120, 38, 227, 0.15);
  border-color: #d0b3ff;
  text-decoration: none;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f0ff 0%, #faf5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.tool-icon svg {
  color: #7826e3;
  width: 32px;
  height: 32px;
}

.tool-card:hover .tool-icon {
  background: linear-gradient(135deg, #7826e3 0%, #9c60e8 100%);
  transform: scale(1.05);
}

.tool-card:hover .tool-icon svg {
  color: #ffffff;
}

.tool-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d1b27;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tool-description {
  font-size: 1rem;
  color: #667085;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tool-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #7826e3 0%, #9c60e8 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(120, 38, 227, 0.3);
}

/* CTA Section */
.cta-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, #1a0033 0%, #2d0052 100%);
}

.cta-card {
  background: linear-gradient(135deg, #2d0052 0%, #4a0080 100%);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  border: 1px solid rgba(156, 96, 232, 0.3);
  box-shadow: 0 20px 40px -12px rgba(120, 38, 227, 0.3);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #e0d0ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  background: linear-gradient(90deg, #da2e87 0%, #ed336a 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(218, 46, 135, 0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: linear-gradient(90deg, #ff3d9f 0%, #ff4578 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(218, 46, 135, 0.5);
  color: #ffffff;
  text-decoration: none;
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

.cta-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }

  .cta-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .tools-section {
    padding: 60px 20px;
  }

  .category-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-card {
    padding: 24px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-card {
    padding: 32px 24px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 16px 40px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .tools-section {
    padding: 40px 16px;
  }

  .category-title {
    font-size: 1.4rem;
  }

  .tool-icon {
    width: 56px;
    height: 56px;
  }

  .tool-icon svg {
    width: 28px;
    height: 28px;
  }

  .tool-title {
    font-size: 1.2rem;
  }

  .tool-description {
    font-size: 0.95rem;
  }

  .cta-content h2 {
    font-size: 1.7rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 14px 24px;
    font-size: 1rem;
  }
}
