/* Features Page Styles */
/* Styles for feature cards, filtering, and search functionality */

/* Features Filter Section */
.features-filter-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.filter-title {
  margin: 0 0 0.5rem;
  color: #333;
  font-size: 1.75rem;
}

.filter-description {
  margin: 0 0 1.5rem;
  color: #555;
  font-size: 1rem;
}

/* Feature Search */
.feature-search-container {
  margin-bottom: 1.5rem;
}

.feature-search-input {
  width: 100%;
  max-width: 600px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 48px;
}

.feature-search-input:focus {
  outline: none;
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.search-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

/* Category Filter Buttons */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.filter-btn:hover {
  border-color: #0066CC;
  background-color: #f0f7ff;
  transform: translateY(-2px);
}

.filter-btn:focus {
  outline: 3px solid rgba(0, 102, 204, 0.5);
  outline-offset: 2px;
}

.filter-btn.active {
  background-color: #0066CC;
  border-color: #0066CC;
  color: white;
}

.filter-btn .count {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.filter-btn.active .count {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: #0066CC;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

.feature-card.hidden {
  display: none;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #333;
}

.card-description {
  margin: 0 0 1rem;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
}

.card-features {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: #555;
}

.card-features li {
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #0066CC;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.card-link:hover {
  background-color: #0052a3;
  transform: translateX(4px);
}

.card-link:focus {
  outline: 3px solid rgba(0, 102, 204, 0.5);
  outline-offset: 2px;
}

/* Filter Results */
.filter-results {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #0066CC;
  background-color: #e3f2fd;
  border-radius: 6px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .features-filter-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  }

  .filter-title {
    color: #e0e0e0;
  }

  .filter-description {
    color: #aaa;
  }

  .feature-search-input {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
  }

  .feature-search-input:focus {
    border-color: #4DB8FF;
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.2);
  }

  .search-help {
    color: #aaa;
  }

  .filter-btn {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
  }

  .filter-btn:hover {
    border-color: #4DB8FF;
    background-color: #1a2a3a;
  }

  .filter-btn.active {
    background-color: #0066CC;
    border-color: #0066CC;
  }

  .feature-card {
    background-color: #2d2d2d;
    border-color: #444;
  }

  .feature-card:hover {
    border-color: #4DB8FF;
  }

  .card-title {
    color: #e0e0e0;
  }

  .card-description {
    color: #aaa;
  }

  .card-features {
    color: #bbb;
  }

  .filter-results {
    background-color: #1a2a3a;
    color: #4DB8FF;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .filter-btn,
  .feature-card,
  .card-link,
  .feature-search-input {
    transition: none;
  }

  .filter-btn:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .features-filter-section {
    padding: 1rem;
  }

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

  .category-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-link {
    width: 100%;
    justify-content: center;
  }
}
