/* Page-owned styles for Top 10 statków wycieczkowych */

.top10-page {
  --top10-card-gap: var(--space-lg);
  --top10-profile-gap: var(--space-xl);
}

/* Hero */
.top10-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-navy-900);
}

.top10-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.top10-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.top10-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: min(100% - 2 * var(--space-lg), 800px);
  margin-inline: auto;
  padding-block: var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.top10-hero__eyebrow {
  font-size: var(--text-small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-uppercase-letter-spacing);
  color: var(--color-brass-500);
  margin: 0;
}

.top10-hero h1 {
  color: var(--color-ivory-50);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  font-weight: var(--text-display-weight);
  margin: 0;
  max-width: 16ch;
}

.top10-hero__lead {
  color: var(--color-ivory-50);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 65ch;
  margin: 0;
}

.top10-hero__cta {
  margin-top: var(--space-sm);
}

/* Introduction */
.top10-intro {
  background-color: var(--color-ivory-50);
}

.top10-intro__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.top10-intro__copy {
  max-width: 800px;
  width: 100%;
}

.top10-intro__copy p {
  max-width: 70ch;
  margin-block-end: var(--space-md);
}

.top10-intro__criteria {
  margin-block-start: var(--space-md);
  max-width: 70ch;
}

/* List of ships */
.top10-list {
  background-color: var(--color-ivory-50);
}

.top10-list__intro {
  max-width: 70ch;
  margin-block-end: var(--space-xl);
}

.top10-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--top10-card-gap);
  align-items: start;
}

.top10-ship-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--color-shadow-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  min-width: 0;
}

.top10-ship-card:hover {
  border-color: var(--color-brass-500);
  transform: translateY(-2px);
}

.top10-ship-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-navy-700);
}

.top10-ship-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.top10-ship-card:hover .top10-ship-card__media img {
  transform: scale(1.03);
}

.top10-ship-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.top10-ship-card__body h3 {
  margin: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
}

.top10-ship-card__line,
.top10-ship-card__score,
.top10-ship-card__desc {
  margin: 0;
  max-width: 30ch;
}

.top10-ship-card__score strong {
  color: var(--color-brass-500);
}

.top10-ship-card__link {
  margin-top: auto;
  color: var(--color-brass-500);
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.top10-ship-card__link:hover {
  color: var(--color-ocean-blue-400);
}

/* Ship profiles */
.top10-profile {
  padding-block: var(--space-2xl);
}

.top10-profile__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--top10-profile-gap);
  align-items: center;
}

.top10-profile__container--text-right {
  grid-template-columns: 1fr 1.5fr;
}

.top10-profile__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.top10-profile__eyebrow {
  font-size: var(--text-small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--text-uppercase-letter-spacing);
  color: var(--color-brass-500);
  margin: 0;
}

.top10-profile__content h3 {
  margin: 0;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
}

.top10-profile__content p {
  max-width: 60ch;
  margin: 0;
}

.top10-profile__scores {
  max-width: 60ch;
  margin: 0;
}

.top10-profile__media {
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background-color: var(--color-navy-700);
}

.top10-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surface-dark .top10-profile__content h3 {
  color: var(--color-ivory-50);
}

.surface-dark .top10-profile__content p,
.surface-dark .top10-profile__content li {
  color: var(--color-ivory-50);
}

.surface-dark .top10-profile__content a {
  color: var(--color-brass-500);
}

.surface-dark .top10-profile__content a:hover {
  color: var(--color-ocean-blue-400);
}

/* Comparison table */
.top10-comparison {
  background-color: var(--color-ivory-50);
}

.top10-comparison__intro {
  max-width: 70ch;
  margin-block-end: var(--space-lg);
}

.top10-comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-medium);
  background-color: var(--color-white);
  box-shadow: var(--color-shadow-card);
}

.top10-comparison__table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin-block-end: 0;
}

.top10-comparison__table th,
.top10-comparison__table td {
  padding: var(--space-md);
  text-align: start;
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
}

.top10-comparison__table thead th {
  background-color: var(--color-navy-900);
  color: var(--color-ivory-50);
  font-family: var(--font-heading);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.top10-comparison__table tbody tr:nth-child(even) {
  background-color: rgba(10, 31, 68, 0.03);
}

.top10-comparison__table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-navy-900);
}

.top10-comparison__table tbody td:last-child strong {
  color: var(--color-brass-500);
}

/* Summary */
.top10-summary {
  background-color: var(--color-navy-900);
}

.top10-summary__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.top10-summary__copy {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.top10-summary__copy p {
  max-width: 70ch;
  margin-inline: auto;
  margin-block: 0;
  color: var(--color-ivory-50);
}

.top10-summary__copy a {
  color: var(--color-brass-500);
}

.top10-summary__copy a:hover {
  color: var(--color-ocean-blue-400);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
  .top10-profile__container,
  .top10-profile__container--text-right {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .top10-profile__media {
    order: -1;
  }

  .top10-profile__content p,
  .top10-profile__scores {
    max-width: 100%;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .top10-hero {
    min-height: 60vh;
  }

  .top10-hero__content {
    width: min(100% - 2 * var(--space-md), 800px);
    padding-block: var(--space-xl);
  }

  .top10-list__grid {
    grid-template-columns: 1fr;
  }

  .top10-ship-card__body {
    padding: var(--space-md);
  }

  .top10-ship-card__line,
  .top10-ship-card__score,
  .top10-ship-card__desc {
    max-width: 100%;
  }

  .top10-profile {
    padding-block: var(--space-xl);
  }

  .top10-comparison__table th,
  .top10-comparison__table td {
    padding: var(--space-sm) var(--space-md);
  }
}

@media (max-width: 480px) {
  .top10-hero__content {
    width: min(100% - 2 * var(--space-sm), 800px);
    padding-block: var(--space-lg);
    gap: var(--space-sm);
  }

  .top10-hero h1 {
    font-size: var(--text-h1-size);
  }

  .top10-hero__lead {
    font-size: 1rem;
  }

  .top10-list__grid {
    gap: var(--space-md);
  }

  .top10-profile__container,
  .top10-profile__container--text-right {
    gap: var(--space-md);
  }

  .top10-summary__copy {
    gap: var(--space-sm);
  }
}
