/* Recenzje page styles */

.review-hero__container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.review-hero__image {
  grid-column: span 7;
  min-width: 0;
}

.review-hero__content {
  grid-column: span 5;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.review-hero__content .tag {
  margin-bottom: var(--space-1);
}

.review-hero__content h1 {
  max-width: 22ch;
  margin-bottom: 0;
}

.review-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  color: var(--color-navy-muted);
}

.review-hero__score {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.review-hero__score-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  color: var(--color-coral-signal);
}

.review-hero__score-verdict {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-navy-ink);
}

.review-hero__deck {
  max-width: 55ch;
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  margin-bottom: 0;
}

.review-hero__cta {
  margin-top: var(--space-2);
}

.review-filters__heading {
  margin-bottom: var(--space-4);
}

.review-filters__bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}

.review-filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.review-filters__label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-navy-muted);
}

.review-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
}

.latest-reviews__header,
.featured-reviews__header,
.review-archive__header {
  margin-bottom: var(--space-6);
}

.latest-reviews__header h2,
.featured-reviews__header h2,
.review-archive__header h2 {
  margin-bottom: var(--space-2);
}

.latest-reviews__lead,
.featured-reviews__lead,
.review-archive__lead {
  max-width: 65ch;
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  color: var(--color-navy-muted);
  margin-bottom: 0;
}

.latest-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.review-card {
  min-width: 0;
  background-color: var(--color-ivory-raised);
  border: 1px solid var(--color-grey-pale);
  border-radius: var(--radius-2);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  border-color: var(--color-navy-muted);
}

.review-card__image {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-grey-pale);
}

.review-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  flex: 1;
}

.review-card__title {
  margin-bottom: 0;
}

.review-card__meta {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-navy-muted);
}

.review-card__score {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-coral-signal);
}

.review-card__excerpt {
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  margin-bottom: 0;
}

.review-card__link {
  margin-top: auto;
  font-weight: 600;
}

.featured-reviews__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.featured-review {
  min-width: 0;
  background-color: var(--color-ivory-raised);
  border: 1px solid var(--color-grey-pale);
  border-radius: var(--radius-3);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.featured-review:hover {
  border-color: var(--color-navy-muted);
}

.featured-review--large {
  grid-column: span 7;
}

.featured-review--small {
  grid-column: span 5;
}

.featured-review__image {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-grey-pale);
}

.featured-review__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}

.featured-review__title {
  margin-bottom: 0;
}

.featured-review__meta {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-navy-muted);
}

.featured-review__score {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-coral-signal);
}

.featured-review__excerpt {
  max-width: 60ch;
  margin-bottom: 0;
}

.featured-review__link {
  margin-top: auto;
  font-weight: 600;
}

.review-archive__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.review-archive__label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-navy-muted);
}

.review-archive__select {
  min-width: 200px;
}

.review-archive__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.archive-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-ivory-raised);
  border: 1px solid var(--color-grey-pale);
  border-radius: var(--radius-2);
  transition: border-color var(--transition-fast);
}

.archive-item:hover {
  border-color: var(--color-navy-muted);
}

.archive-item__image {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-1);
}

.archive-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.archive-item__title {
  margin-bottom: 0;
}

.archive-item__meta {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-navy-muted);
}

.archive-item__score {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-coral-signal);
}

.archive-item__excerpt {
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  margin-bottom: 0;
}

.review-archive__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.review-archive__page-indicator {
  font-size: var(--text-body-sm);
  color: var(--color-navy-muted);
}

.review-methodology__container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.review-methodology__text {
  grid-column: span 6;
  min-width: 0;
}

.review-methodology__text p {
  max-width: 68ch;
}

.review-methodology__criteria {
  grid-column: span 4;
  min-width: 0;
  background-color: var(--color-grey-field);
  border-left: 3px solid var(--color-success-guide);
  border-radius: var(--radius-1);
  padding: var(--space-5);
}

.review-methodology__criteria h3 {
  margin-bottom: var(--space-3);
}

.review-methodology__list {
  margin-bottom: 0;
  padding-inline-start: var(--space-4);
}

.review-methodology__list li {
  margin-bottom: var(--space-2);
}

.review-methodology__list li:last-child {
  margin-bottom: 0;
}

.review-subscribe {
  background-color: var(--color-grey-field);
  border-radius: var(--radius-2);
  padding: var(--space-7) var(--space-5);
  margin-top: var(--space-8);
}

.review-subscribe__container {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.review-subscribe__lead {
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.review-subscribe__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: start;
  max-width: 600px;
  margin-inline: auto;
}

.review-subscribe__form input {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-ivory-raised);
}

.review-subscribe__privacy {
  grid-column: 1 / -1;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-navy-muted);
  margin-bottom: 0;
}

.review-subscribe__success {
  margin-top: var(--space-4);
  color: var(--color-success-guide);
  font-weight: 600;
}

@media (max-width: 63.9375rem) {
  .review-hero__container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .review-hero__image {
    grid-column: span 4;
  }

  .review-hero__content {
    grid-column: span 4;
  }

  .latest-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-reviews__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .featured-review--large,
  .featured-review--small {
    grid-column: span 4;
  }

  .review-methodology__container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .review-methodology__text {
    grid-column: span 4;
  }

  .review-methodology__criteria {
    grid-column: span 4;
  }
}

@media (max-width: 39.9375rem) {
  .review-hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .review-hero__image {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .review-hero__content {
    grid-column: auto;
  }

  .review-hero__deck {
    max-width: 100%;
  }

  .review-filters__bar {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .review-filters__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
  }

  .review-filters__chips .chip {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .latest-reviews__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .review-card__image {
    aspect-ratio: 16 / 9;
  }

  .featured-reviews__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .featured-review--large,
  .featured-review--small {
    grid-column: auto;
  }

  .featured-review__body {
    padding: var(--space-4);
  }

  .review-archive__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .review-archive__select {
    width: 100%;
  }

  .archive-item {
    flex-direction: column;
    gap: var(--space-3);
  }

  .archive-item__image {
    width: 56px;
    height: 56px;
  }

  .review-methodology__container {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .review-methodology__text,
  .review-methodology__criteria {
    grid-column: auto;
  }

  .review-subscribe {
    padding: var(--space-6) var(--space-4);
  }

  .review-subscribe__form {
    grid-template-columns: 1fr;
  }

  .review-subscribe__form input,
  .review-subscribe__form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-card,
  .featured-review,
  .archive-item {
    transition: none;
  }
}
