/* Szereplők page styles */

.szereplok-main {
  padding-block-start: var(--space-2xl);
  padding-block-end: var(--space-4xl);
}

.szereplok-main section {
  margin-block-end: var(--space-3xl);
}

.szereplok-main section:last-child {
  margin-block-end: 0;
}

.szereplok-section-heading {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-xl);
}

.szereplok-section-heading__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-ink-navy-soft);
}

/* Hero */
.szereplok-hero {
  background-color: var(--surface-page-deep);
  border-radius: var(--radius-xl);
  padding-block: var(--space-2xl);
  margin-block-end: var(--space-3xl);
}

.szereplok-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.szereplok-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.szereplok-hero__content h1 {
  margin-block-end: 0;
}

.szereplok-hero__lead {
  max-width: 620px;
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-ink-navy-soft);
  margin-block-end: 0;
}

.szereplok-hero__cta {
  margin-block-start: var(--space-sm);
}

.szereplok-hero__media {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.szereplok-hero__figure {
  width: 100%;
  max-width: 640px;
}

.szereplok-hero__figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Importance */
.szereplok-importance {
  background-color: var(--surface-page);
}

.szereplok-importance__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.szereplok-importance-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  min-width: 0;
}

.szereplok-importance-card h3 {
  margin-block-end: 0;
}

.szereplok-importance-card p {
  margin-block-end: 0;
}

/* Characters */
.szereplok-characters {
  background-color: var(--surface-page-deep);
  border-radius: var(--radius-xl);
  padding-block: var(--space-2xl);
}

.szereplok-characters__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.szereplok-character-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.szereplok-character-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-start-start-radius: var(--radius-lg);
  border-start-end-radius: var(--radius-lg);
}

.szereplok-character-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.szereplok-character-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  min-width: 0;
}

.szereplok-character-card__body h3 {
  margin-block-end: 0;
}

.szereplok-character-card__role {
  font-size: var(--text-caption-size);
  font-weight: var(--text-caption-weight);
  letter-spacing: 0.02em;
  color: var(--color-ink-navy-soft);
  text-transform: uppercase;
  margin-block-end: var(--space-xs);
}

.szereplok-character-card__body p:last-child {
  margin-block-end: 0;
}

/* Relationships */
.szereplok-relationships {
  background-color: var(--surface-page);
}

.szereplok-relationships__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

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

.szereplok-relationships__content h2 {
  margin-block-end: 0;
}

.szereplok-relationships__content p {
  margin-block-end: 0;
}

.szereplok-relationships__visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.szereplok-relationships__visual .screenshot-frame {
  width: 100%;
}

.szereplok-relationships__visual .screenshot-frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.szereplok-friendship-steps {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.szereplok-friendship-steps::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2rem;
  bottom: 2rem;
  border-inline-start: 2px dashed var(--color-ink-navy);
  opacity: 0.25;
}

.szereplok-friendship-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.szereplok-friendship-step__number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-turquoise-calm);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-body-size);
  border: var(--border-primary);
}

.szereplok-friendship-step > div {
  min-width: 0;
  flex: 1;
}

.szereplok-friendship-step h4 {
  margin-block-end: var(--space-2xs);
}

.szereplok-friendship-step p {
  margin-block-end: 0;
}

/* Impact */
.szereplok-impact {
  background-color: var(--surface-soft-turquoise);
  border-radius: var(--radius-xl);
  padding-block: var(--space-2xl);
}

.szereplok-impact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

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

.szereplok-impact__content h2 {
  margin-block-end: 0;
}

.szereplok-impact__content p {
  margin-block-end: 0;
}

.szereplok-impact__table-wrapper {
  min-width: 0;
  overflow-x: auto;
  background-color: var(--color-white);
  border: var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.szereplok-service-table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  min-width: 480px;
}

.szereplok-service-table th,
.szereplok-service-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: start;
  border-block-end: var(--border-secondary);
  white-space: nowrap;
}

.szereplok-service-table thead th {
  background-color: var(--surface-soft-turquoise);
  color: var(--color-ink-navy);
  font-weight: 700;
}

.szereplok-service-table tbody tr:last-child th,
.szereplok-service-table tbody tr:last-child td {
  border-block-end: none;
}

.szereplok-service-table tbody tr {
  transition: background-color var(--transition-fast);
}

.szereplok-service-table tbody tr:hover {
  background-color: var(--surface-soft-yellow);
}

/* Tips */
.szereplok-tips {
  background-color: var(--surface-page);
}

.szereplok-tips__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.szereplok-tip-card {
  background-color: var(--surface-soft-yellow);
  border: var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  min-width: 0;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.szereplok-tip-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.szereplok-tip-card h3 {
  margin-block-end: 0;
}

.szereplok-tip-card p {
  margin-block-end: 0;
}

/* Story */
.szereplok-story {
  background-color: var(--surface-page-deep);
  border-radius: var(--radius-xl);
  padding-block: var(--space-2xl);
}

.szereplok-story__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.szereplok-story__content h2 {
  margin-block-end: 0;
}

.szereplok-story__content p {
  margin-block-end: 0;
}

.szereplok-story__media {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.szereplok-story__media .screenshot-frame {
  width: 100%;
  max-width: 560px;
}

.szereplok-story__media .screenshot-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Store banner */
.szereplok-store-banner {
  background-color: var(--surface-page);
}

.szereplok-store-banner__inner {
  background-color: var(--color-coral-soft);
  border: var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.szereplok-store-banner__inner h2 {
  margin-block-end: 0;
}

.szereplok-store-banner__inner p {
  max-width: 600px;
  margin-block-end: 0;
  color: var(--color-ink-navy-soft);
}

.szereplok-store-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-block-start: var(--space-sm);
}

/* Tablet */
@media (min-width: 40rem) {
  .szereplok-importance__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .szereplok-tips__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* Desktop */
@media (min-width: 64rem) {
  .szereplok-hero__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-xl);
  }

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

  .szereplok-relationships__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .szereplok-impact__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .szereplok-story__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .szereplok-character-card,
  .szereplok-tip-card,
  .screenshot-frame--rotated,
  .screenshot-frame--rotated-reverse {
    transition: none;
  }

  .szereplok-character-card:hover,
  .szereplok-tip-card:hover,
  .screenshot-frame--rotated:hover,
  .screenshot-frame--rotated-reverse:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
}
