/* Kategoriler Kartları
---------------------- */
.categories-container {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.categories-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  margin-bottom: -20px; /* Hide scrollbar space */
  scrollbar-width: none; /* Firefox */
}

.categories-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.category-cards {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  min-width: max-content;
  transition: transform 0.3s ease;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(143, 37, 118, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  transition: all 0.2s ease;
}

.scroll-arrow:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

.category-card {
  min-width: 200px;
  background: linear-gradient(145deg, var(--card-bg), var(--darker-bg));
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(143, 37, 118, 0.05) 100%);
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.category-icon-box {
  position: relative;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: white;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(216, 52, 176, 0.3);
}

.category-card h3 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--light-text);
  z-index: 2;
}

.category-count-label {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(216, 52, 176, 0.15);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  z-index: 2;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-tab {
  padding: 0.5rem 1.25rem;
  background-color: var(--card-bg);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--gray-text);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-tab:hover {
  background-color: rgba(216, 52, 176, 0.1);
  color: var(--primary-color);
  text-decoration: none;
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Sol Sidebar Kategorileri
-------------------------- */
.categories-sidebar {
  background: linear-gradient(145deg, var(--card-bg), var(--darker-bg));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.categories-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/sidebar-pattern.svg');
  opacity: 0.03;
  pointer-events: none;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, var(--darker-bg), rgba(49, 25, 69, 0.95));
  color: white;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.sidebar-header::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  margin-right: 12px;
  border-radius: 2px;
}

.sidebar-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.category-list {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  max-height: 450px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--card-bg);
}

.category-list::-webkit-scrollbar {
  width: 5px;
}

.category-list::-webkit-scrollbar-track {
  background: var(--card-bg);
}

.category-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
}

.category-list li {
  padding: 0;
  position: relative;
}

.category-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.category-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--gray-text);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(216, 52, 176, 0.08), transparent);
  transition: width 0.3s ease;
  z-index: 0;
}

.category-item:hover {
  color: var(--light-text);
  text-decoration: none;
}

.category-item:hover::before {
  width: 100%;
}

.category-item:hover .category-icon {
  transform: scale(1.2);
}

.category-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: 0 4px 10px rgba(216, 52, 176, 0.25);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.category-item:hover .category-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(216, 52, 176, 0.35);
}

.category-icon {
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.category-item span {
  font-weight: 500;
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}

.category-count {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(216, 52, 176, 0.3);
  position: relative;
  z-index: 1;
  min-width: 28px;
  text-align: center;
}

/* Mobil uyumluluk */
@media (max-width: 1200px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .category-cards {
    grid-template-columns: 1fr;
  }
}