/* ==================== CATEGORIES PAGE ==================== */

.all-categories {
  width: 100%;
}

.categories-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.categories-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.categories-count {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 400;
}

.categories-count strong {
  font-weight: 600;
}

/* ==================== CATEGORIES GRID ==================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
  transform: translateY(-4px);
}

/* Category Card Header */
.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #20232a;
  flex: 1;
  font-weight: 600;
}

.category-badge {
  background: #667eea;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

/* Category Description */
.category-description {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  flex: 1;
  line-height: 1.5;
}

/* Category Button */
.btn-category {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-category:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-category:active {
  transform: translateX(2px);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .categories-header {
    padding: 1.75rem;
  }

  .categories-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .categories-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .categories-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .categories-count {
    font-size: 1rem;
  }

  .category-card {
    padding: 1.25rem;
  }

  .category-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-card-header h3 {
    font-size: 1.2rem;
  }

  .category-badge {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  .category-description {
    font-size: 0.9rem;
  }

  .btn-category {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    gap: 0.75rem;
  }

  .categories-header {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
  }

  .categories-header h1 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .categories-count {
    font-size: 0.9rem;
  }

  .category-card {
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .category-card-header h3 {
    font-size: 1.1rem;
  }

  .category-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .category-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .btn-category {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .categories-header h1 {
    font-size: 1.1rem;
  }

  .category-card-header h3 {
    font-size: 1rem;
  }

  .category-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .category-description {
    font-size: 0.8rem;
  }
}
