.category-detail-page {
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-weight: 400;
  color: var(--md-sys-color-outline);
  font-size: 1.1rem;
}

.breadcrumb-item a {
  color: var(--md-sys-color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--md-sys-motion-easing-standard);
  position: relative;
  overflow: hidden;
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.breadcrumb-item a.ripple-active::after {
  animation: ripple 0.5s var(--md-sys-motion-easing-emphasized-decelerate);
}

.breadcrumb-item a:hover {
  color: var(--md-sys-color-primary);
}

.breadcrumb-item.active {
  color: var(--md-sys-color-on-surface-variant);
}

.category-header {
  padding: 32px 0;
  margin-bottom: 32px;
  animation: fadeInDown 0.15s var(--md-sys-motion-easing-emphasized);
}

.category-icon-lg {
  width: 80px;
  height: 80px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-primary-container);
  padding: 16px;
}

.category-icon-lg i {
  color: var(--md-sys-color-on-primary-container);
  font-size: 3rem !important;
}

.category-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.category-header .text-muted {
  color: var(--md-sys-color-on-surface-variant) !important;
  font-size: 0.875rem;
}

.category-header .alert {
  background-color: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 16px;
  margin-top: 16px;
}

.search-filter-section {
  margin-bottom: 32px;
}

.input-group-lg .input-group-text {
  background-color: var(--md-sys-color-surface-container-highest);
  border: 1px solid var(--md-sys-color-outline);
  border-right: none;
  padding: 12px 16px;
}

.input-group-lg .form-control {
  background-color: var(--md-sys-color-surface-container-highest);
  border: 1px solid var(--md-sys-color-outline);
  border-left: none;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.2s var(--md-sys-motion-easing-standard);
}

.input-group-lg .form-control:focus {
  background-color: var(--md-sys-color-surface-container);
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px rgba(var(--md-sys-color-primary-rgb), 0.1);
}

.btn-outline-secondary {
  border-color: var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface);
}

.btn-outline-secondary:hover {
  background-color: var(--md-sys-color-surface-container);
  border-color: var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface);
}

.btn-secondary {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border: none;
}

.btn-secondary:hover {
  background-color: var(--md-sys-color-secondary-container);
  opacity: 0.9;
}

.keyword-card-wrapper {
  transition: opacity 0.3s var(--md-sys-motion-easing-standard), 
              transform 0.3s var(--md-sys-motion-easing-standard);
}

.keyword-card-wrapper.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.keyword-card-wrapper .card,
.hover-lift-sm {
  background-color: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant) !important;
  border-radius: var(--md-sys-shape-corner-medium) !important;
  transition: all 0.3s var(--md-sys-motion-easing-emphasized);
  position: relative;
  overflow: hidden;
}

.keyword-card-wrapper .card::before,
.hover-lift-sm::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--md-sys-color-on-surface);
  opacity: 0;
  transition: opacity 0.2s var(--md-sys-motion-easing-standard);
  z-index: 1;
  pointer-events: none;
}

.keyword-card-wrapper .card:hover::before,
.hover-lift-sm:hover::before {
  opacity: 0.08;
}

.keyword-card-wrapper .card:hover,
.hover-lift-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-sys-elevation-2) !important;
  border-color: var(--md-sys-color-outline) !important;
}

.keyword-card-wrapper .card-body {
  position: relative;
  z-index: 2;
}

.keyword-number .badge {
  background-color: var(--md-sys-color-primary-container) !important;
  color: var(--md-sys-color-on-primary-container) !important;
  font-weight: 600;
}

.keyword-card-wrapper .card-title a {
  color: var(--md-sys-color-on-surface);
  transition: color 0.2s var(--md-sys-motion-easing-standard);
}

.keyword-card-wrapper .card-title a:hover {
  color: var(--md-sys-color-primary);
}

.keyword-aliases-preview {
  font-size: 0.75rem;
}

.keyword-card-wrapper .card-text {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
}

.keyword-card-wrapper .card-footer {
  background: transparent;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
}

.alias-card .card {
  border-left: 3px solid var(--md-sys-color-secondary);
  background-color: var(--md-sys-color-surface-container);
}

.alias-icon .badge {
  background-color: var(--md-sys-color-secondary-container) !important;
  color: var(--md-sys-color-on-secondary-container) !important;
}

.alias-reference {
  color: var(--md-sys-color-on-surface-variant);
}

#noResults {
  padding: 64px 24px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
}

#noResults i {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 16px;
}

#noResults h4 {
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
  margin-bottom: 8px;
}

#noResults p {
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.8;
}

.other-categories-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.other-categories-section h3 {
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  margin-bottom: 24px;
}

.other-categories-section .card {
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  transition: all 0.3s var(--md-sys-motion-easing-emphasized);
  position: relative;
  overflow: hidden;
}

.other-categories-section .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--md-sys-color-on-surface);
  opacity: 0;
  transition: opacity 0.2s var(--md-sys-motion-easing-standard);
  z-index: 1;
}

.other-categories-section .card:hover::before {
  opacity: 0.08;
}

.other-categories-section .card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: var(--md-sys-color-on-surface);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.other-categories-section .card.ripple-active::after {
  animation: ripple 0.5s var(--md-sys-motion-easing-emphasized-decelerate);
}

.other-categories-section .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-sys-elevation-2);
}

.other-categories-section .card-body {
  position: relative;
  z-index: 3;
}

.other-categories-section .card-title {
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.other-categories-section i {
  color: var(--md-sys-color-primary);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .category-header {
    padding: 24px 0;
    margin-bottom: 24px;
  }
  
  .category-icon-lg {
    width: 64px;
    height: 64px;
  }
  
  .category-icon-lg i {
    font-size: 2rem !important;
  }
  
  .category-header h1 {
    font-size: 1.5rem;
  }
}
