/* ==================================================
   KATEGORIJOS PUSLAPIS
================================================== */

.category-page {
  --category-purple: #7d3dd8;
  --category-purple-dark: #6426bd;
  --category-purple-light: #f4edff;
  --category-text: #11131a;
  --category-muted: #686475;
  --category-border: #e8e1ed;
  --category-background: #fbf9fd;

  color: var(--category-text);
  background: #fff;
  font-family: "Manrope", Arial, sans-serif;
}

.category-page * {
  box-sizing: border-box;
}

.category-shell {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}


/* ==================================================
   KATEGORIJOS PRISTATYMAS
================================================== */

.category-intro {
  padding: 44px 0 24px;
}

.category-intro__panel {
  position: relative;
  min-height: 240px;
  padding: 46px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  overflow: hidden;
  border: 1px solid var(--category-border);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(125, 61, 216, 0.12),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #fff 0%,
      #fcfaff 55%,
      #f4edff 100%
    );
}

.category-intro__panel::before,
.category-intro__panel::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.category-intro__panel::before {
  width: 155px;
  height: 155px;
  right: -62px;
  bottom: -72px;
  background: rgba(125, 61, 216, 0.1);
}

.category-intro__panel::after {
  width: 12px;
  height: 12px;
  top: 33px;
  right: 34%;
  background: #ffbf45;
  box-shadow:
    21px 15px 0 -3px #fb7b6b,
    43px -8px 0 -4px #7d3dd8;
}

.category-intro__content {
  position: relative;
  z-index: 1;
  max-width: 730px;
}

.category-breadcrumbs {
  margin-bottom: 28px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--category-border);
  color: #777180;
  font-size: 12px;
  font-weight: 700;
}

.category-breadcrumbs i {
  color: #aaa3b1;
  font-size: 8px;
}

.category-breadcrumbs span[aria-current="page"] {
  color: var(--category-purple-dark);
}

.category-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-breadcrumbs a:hover {
  color: var(--category-purple);
}

.category-intro__label,
.category-list__eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--category-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.category-intro__label {
  margin-bottom: 12px;
  padding: 8px 13px;
  border-radius: 50px;
  background: var(--category-purple-light);
}

.category-intro h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(35px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.category-intro__content > p {
  max-width: 710px;
  margin: 0;
  color: var(--category-muted);
  font-size: 15px;
  line-height: 1.75;
}

.category-intro__note {
  position: relative;
  z-index: 1;
  width: 255px;
  flex: 0 0 255px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(125, 61, 216, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(57, 27, 88, 0.08);
  backdrop-filter: blur(8px);
}

.category-intro__note-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #9b5ee7, #7133ce);
  font-size: 23px;
  font-weight: 500;
}

.category-intro__note strong,
.category-intro__note span {
  display: block;
}

.category-intro__note strong {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.25;
}

.category-intro__note div > span {
  color: var(--category-muted);
  font-size: 11px;
  line-height: 1.45;
}


/* ==================================================
   PRAMOGŲ SĄRAŠAS
================================================== */

.category-list {
  padding: 35px 0 85px;
}

.category-list__header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.category-list__eyebrow {
  margin-bottom: 7px;
}

.category-list__header h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.category-list__count {
  padding: 9px 13px;
  flex-shrink: 0;
  border: 1px solid var(--category-border);
  border-radius: 50px;
  color: var(--category-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}




/* ==================================================
   MIESTO FILTRAS
================================================== */

.category-filter {
  margin-bottom: 24px;
  padding: 15px 17px;
  border: 1px solid var(--category-border);
  border-radius: 16px;
  background: var(--category-background);
}

.category-filter__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.category-filter__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4f4959;
  font-size: 13px;
  font-weight: 800;
}

.category-filter__title i {
  color: var(--category-purple);
  font-size: 15px;
}

.category-filter__select-wrap {
  position: relative;
  width: min(100%, 230px);
  flex: 0 0 230px;
}

.category-filter select {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--category-border);
  border-radius: 11px;
  outline: none;
  color: var(--category-text);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.category-filter select:hover,
.category-filter select:focus {
  border-color: rgba(125, 61, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(125, 61, 216, 0.1);
}

.category-filter__select-wrap > i {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--category-purple);
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-50%);
}

.category-list__empty {
  margin: 28px 0 0;
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--category-border);
  border-radius: 16px;
  color: var(--category-muted);
  background: var(--category-background);
  font-size: 14px;
  font-weight: 700;
}


/* ==================================================
   PRAMOGŲ GRIDAS
================================================== */

.entertainment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.entertainment-card {
  min-width: 0;
}

.entertainment-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--category-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(37, 18, 56, 0.055);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.entertainment-card__link:hover {
  transform: translateY(-5px);
  border-color: rgba(125, 61, 216, 0.35);
  box-shadow: 0 16px 38px rgba(55, 25, 82, 0.12);
}

.entertainment-card__link:focus-visible {
  outline: 3px solid rgba(125, 61, 216, 0.28);
  outline-offset: 3px;
}

.entertainment-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eeeaf2;
}

.entertainment-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  content: "";
  background: linear-gradient(
    transparent,
    rgba(16, 8, 22, 0.15)
  );
  pointer-events: none;
}

.entertainment-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.entertainment-card__link:hover .entertainment-card__media img {
  transform: scale(1.045);
}

.entertainment-card__badge {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  max-width: calc(100% - 26px);
  padding: 7px 10px;
  border-radius: 50px;
  color: #fff;
  background: rgba(25, 17, 29, 0.72);
  box-shadow: 0 4px 12px rgba(15, 7, 20, 0.16);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
}

.entertainment-card__badge--new {
  background: linear-gradient(135deg, #9852e6, #7231cb);
}

.entertainment-card__body {
  min-height: 250px;
  padding: 20px 18px 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.entertainment-card h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.entertainment-card__body > p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--category-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}



.entertainment-card__city {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5b5564;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.entertainment-card__city i {
  flex: 0 0 auto;
  color: var(--category-purple);
  font-size: 13px;
}

.entertainment-card[hidden] {
  display: none;
}

.entertainment-card__footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.entertainment-card__details {
  min-width: 0;
}

.entertainment-card__duration {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4f4959;
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
}

.entertainment-card__duration svg {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.entertainment-card__price {
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(125, 61, 216, 0.14);
  border-radius: 12px;
  color: var(--category-purple-dark);
  background: linear-gradient(
    135deg,
    #faf7ff,
    var(--category-purple-light)
  );
  box-shadow: 0 5px 14px rgba(101, 38, 189, 0.08);
  font-size: 1em;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.entertainment-card__price i {
  flex: 0 0 auto;
  color: var(--category-purple);
  background: none;
  box-shadow: none;
  font-size: 16px;
}

.entertainment-card__action {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--category-purple);
  background: var(--category-purple-light);
  font-size: 18px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.entertainment-card__link:hover .entertainment-card__action {
  color: #fff;
  background: var(--category-purple);
}


/* ==================================================
   RESPONSIVE DIZAINAS
================================================== */

@media (max-width: 1100px) {
  .category-shell {
    width: calc(100% - 48px);
  }

  .category-intro__panel {
    padding: 42px;
  }

  .category-intro__note {
    width: 230px;
    flex-basis: 230px;
  }
}

@media (max-width: 920px) {
  .category-intro__panel {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .category-intro__note {
    width: min(100%, 340px);
    flex-basis: auto;
  }

  .entertainment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entertainment-card__body {
    min-height: 235px;
  }
}

@media (max-width: 600px) {
  .category-shell {
    width: calc(100% - 24px);
  }

  .category-intro {
    padding: 18px 0 12px;
  }

  .category-intro__panel {
    padding: 27px 21px;
    border-radius: 20px;
  }

  .category-breadcrumbs {
    margin-bottom: 20px;
    padding: 9px 0;
    font-size: 10px;
  }

  .category-intro__label {
    margin-bottom: 10px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .category-intro h1 {
    margin-bottom: 13px;
    font-size: 34px;
  }

  .category-intro__content > p {
    font-size: 13px;
    line-height: 1.65;
  }

  .category-intro__note {
    padding: 15px;
  }

  .category-list {
    padding: 30px 0 55px;
  }

  .category-list__header {
    margin-bottom: 18px;
    align-items: flex-start;
  }

  .category-list__header h2 {
    font-size: 27px;
  }

  .category-list__count {
    display: none;
  }


  .category-filter {
    margin-bottom: 18px;
    padding: 14px;
  }

  .category-filter__label {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .category-filter__select-wrap {
    width: 100%;
    flex-basis: auto;
  }

  .category-filter select {
    height: 44px;
  }

  .entertainment-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .entertainment-card__link {
    border-radius: 16px;
  }

  .entertainment-card__body {
    min-height: 0;
    padding: 19px 17px 17px;
  }

  .entertainment-card h3 {
    font-size: 20px;
  }

  .entertainment-card__body > p {
    font-size: 14px;
  }

  .entertainment-card__footer {
    padding-top: 12px;
  }
}

@media (max-width: 380px) {
  .entertainment-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .entertainment-card__action {
    align-self: flex-end;
  }
}