/**
 * <section-header> styles
 * Clean, semantic CSS using Y888 design tokens
 * Pixel-matched to reference (y888.com)
 *
 * Section header specs (from reference):
 * - Height: .52rem, padding: 0 .2rem
 * - Title icon: .52rem, title text: .3rem
 * - Pagination pill: height .46rem, radius 1rem, border thin solid #414141
 * - All button: width 1rem, font-size .2rem
 * - Arrow buttons: width .6rem, font-size .16rem
 */

/* Header container */
.section-header {
  padding: 0 var(--y888-space-md);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 0.52rem;
  box-sizing: border-box;
}

/* Title block (left) */
.section-header__title {
  display: flex;
  align-items: center;
  color: var(--y888-text);
  min-height: 0.52rem;
  min-width: 0;
}

.section-header__icon {
  position: relative;
  margin-right: 0.05rem;
  width: 0.52rem;
  height: 0.52rem;
  font-size: 0.52rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.section-header__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.3rem;
  font-weight: var(--y888-font-weight);
  color: var(--y888-text);
  line-height: 1.2;
}

/* Pagination pill (right) */
.section-header__pagination {
  display: flex;
  align-items: center;
  width: fit-content;
  height: 0.46rem;
  border-radius: 1rem;
  border: thin solid var(--y888-border);
  flex-shrink: 0;
  overflow: hidden;
}

/* Arrow buttons */
.section-header__arrow {
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 100%;
  font-size: 0.16rem;
  color: var(--y888-text);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--y888-transition-fast), opacity var(--y888-transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.section-header__arrow:hover:not(:disabled) {
  color: var(--y888-primary);
}

.section-header__arrow:disabled {
  color: var(--y888-text-dim);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.section-header__arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: block;
}

.section-header__arrow--left svg {
  transform: rotate(180deg);
}

/* "All" button */
.section-header__all {
  width: 1rem;
  border-left: thin solid var(--y888-border);
  border-right: thin solid var(--y888-border);
  font-size: var(--y888-font-size-sm);
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--y888-text);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--y888-transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.section-header__all:hover {
  color: var(--y888-primary);
}

.section-header__all:active {
  opacity: 0.8;
}
