/* ─── Category panels ────────────────────────────────────────
 * Same column and heading as the old CategoryShowcase, so the
 * "Öne Çıkanlar" section joined below still lines up with it.
 */

.cc_xb60jqpd_CGlOf2dQk5 .category-panels {
  width: 100%;
  color: var(--color-text-primary);
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
}

@media (min-width: 1024px) {
  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__inner {
    padding: var(--space-xl) var(--space-lg);
  }
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: var(--weight-display-light);
  font-size: var(--text-h3);
  line-height: 1.2;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── Panel (phones & tablets: a row) ─── */

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel {
  --mx: 0;
  --my: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition:
    flex-grow 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 300ms ease,
    border-color 300ms ease;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__icon-wrap {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels .category-panels__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-accent-text);
  transition:
    width 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 160ms ease-out;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* the whole panel is the category link */
.cc_xb60jqpd_CGlOf2dQk5 .category-panels__name::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__name:focus-visible {
  outline: none;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__name:focus-visible::after {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__tag {
  display: inline-flex;
  align-items: center;
  height: 1.875rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__tag:hover {
  background: var(--color-accent-dark);
}

.cc_xb60jqpd_CGlOf2dQk5 .category-panels__tag:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ─── Desktop: side-by-side panels, the active one widens ─── */

@media (min-width: 1024px) {
  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__list {
    flex-direction: row;
    gap: 0.875rem;
    height: 22.5rem;
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel {
    flex: 1 1 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 1.75rem;
    border-radius: 16px;
    overflow: hidden;
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__icon-wrap {
    width: auto;
    height: 8.75rem;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels .category-panels__icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__name {
    font-size: 1.75rem;
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__desc {
    font-size: var(--text-body);
    white-space: nowrap;
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__desc, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__tags {
    opacity: 0;
    transition: opacity 250ms ease;
  }

  /* hidden tags must not catch clicks meant for the panel */
  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__tags {
    pointer-events: none;
  }

  /* active = panel under the mouse (.is-active, set from JS) or holding focus;
     the first one while neither */
  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__list:not(.has-active):not(:focus-within) .category-panels__panel:first-child, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel.is-active, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel:focus-within {
    flex-grow: 2.8;
    background: linear-gradient(160deg, rgba(253, 190, 1, 0.18), rgba(253, 190, 1, 0.03)), var(--color-surface);
    border-color: var(--color-accent);
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__list:not(.has-active):not(:focus-within) .category-panels__panel:first-child .category-panels__icon, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel.is-active .category-panels__icon, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel:focus-within .category-panels__icon {
    width: 8rem;
    height: 8rem;
    transform:
      translate(calc(var(--mx) * 60px), calc(var(--my) * 40px))
      rotate(calc(var(--mx) * 10deg));
  }

  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__list:not(.has-active):not(:focus-within) .category-panels__panel:first-child .category-panels__desc, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__list:not(.has-active):not(:focus-within) .category-panels__panel:first-child .category-panels__tags, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel.is-active .category-panels__desc, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel.is-active .category-panels__tags, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel:focus-within .category-panels__desc, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel:focus-within .category-panels__tags {
    opacity: 1;
    transition-delay: 120ms;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_xb60jqpd_CGlOf2dQk5 .category-panels__panel, .cc_xb60jqpd_CGlOf2dQk5 .category-panels .category-panels__icon, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__desc, .cc_xb60jqpd_CGlOf2dQk5 .category-panels__tags {
    transition: none;
  }
}
