/* Page-owned styles for /kepek/ */

#kepek-main {
  min-width: 0;
}

/* Bevezető */
.kepek-intro__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.kepek-intro__copy {
  width: 70%;
  max-width: 70%;
  margin-inline: auto;
  text-align: center;
}

.kepek-intro__copy p {
  margin-block-end: var(--space-md);
}

.kepek-intro__copy p:last-child {
  margin-block-end: 0;
}

.kepek-intro__figure {
  width: 80%;
  max-width: 80%;
  margin-inline: auto;
  margin-block-end: 0;
}

.kepek-intro__figure img {
  width: 100%;
  height: auto;
  border: var(--border-ink);
  border-radius: var(--radius);
  display: block;
}

.kepek-intro__figure figcaption {
  margin-block-start: var(--space-xs);
  text-align: center;
}

/* Játékmenet közben */
.kepek-gameplay__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  min-width: 0;
}

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

.kepek-gameplay__item--platform {
  flex-direction: row;
  align-items: flex-start;
}

.kepek-gameplay__item--object {
  flex-direction: row-reverse;
  align-items: flex-start;
}

.kepek-gameplay__figure {
  flex: 0 0 50%;
  min-width: 0;
  margin-block-end: 0;
}

.kepek-gameplay__figure img {
  width: 100%;
  height: auto;
  border: var(--border-ink);
  border-radius: var(--radius);
  display: block;
}

.kepek-gameplay__figure figcaption {
  margin-block-start: var(--space-xs);
}

.kepek-gameplay__copy {
  flex: 1 1 50%;
  min-width: 0;
  text-align: left;
}

.kepek-gameplay__copy h3 {
  margin-block-end: var(--space-sm);
}

.kepek-gameplay__copy p {
  margin-block-end: var(--space-sm);
}

.kepek-gameplay__copy p:last-child {
  margin-block-end: 0;
}

/* Környezetek és világok */
.kepek-worlds__intro {
  width: 70%;
  max-width: 70%;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-lg);
}

.kepek-worlds__intro p {
  margin-block-end: 0;
}

.kepek-worlds__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  min-width: 0;
}

.kepek-worlds__figure {
  min-width: 0;
  margin-block-end: 0;
}

.kepek-worlds__figure img {
  width: 100%;
  height: auto;
  border: var(--border-ink);
  border-radius: var(--radius);
  display: block;
}

.kepek-worlds__figure figcaption {
  margin-block-start: var(--space-xs);
  text-align: center;
}

/* Főellenség és történet */
.kepek-story__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.kepek-story__figure {
  width: 70%;
  max-width: 70%;
  margin-inline: auto;
  margin-block-end: 0;
}

.kepek-story__figure img {
  width: 100%;
  height: auto;
  border: var(--border-ink);
  border-radius: var(--radius);
  display: block;
}

.kepek-story__figure figcaption {
  margin-block-start: var(--space-xs);
  text-align: center;
}

.kepek-story__copy {
  width: 60%;
  max-width: 60%;
  margin-inline: auto;
  text-align: center;
}

.kepek-story__copy h3 {
  margin-block-end: var(--space-sm);
}

.kepek-story__copy p {
  margin-block-end: var(--space-sm);
}

.kepek-story__copy p:last-child {
  margin-block-end: 0;
}

/* Vizuális stílus */
.kepek-style__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  min-width: 0;
}

.kepek-style__figure {
  min-width: 0;
  margin-block-end: 0;
}

.kepek-style__figure img {
  width: 100%;
  height: auto;
  border: var(--border-ink);
  border-radius: var(--radius);
  display: block;
}

.kepek-style__figure figcaption {
  margin-block-start: var(--space-xs);
}

.kepek-style__copy {
  min-width: 0;
  text-align: left;
}

.kepek-style__copy h3 {
  margin-block-end: var(--space-sm);
}

.kepek-style__copy p {
  margin-block-end: var(--space-sm);
}

.kepek-style__copy p:last-child {
  margin-block-end: 0;
}

/* Összefoglaló és letöltés */
.kepek-download__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.kepek-download__copy {
  width: 60%;
  max-width: 60%;
  margin-inline: auto;
  text-align: center;
}

.kepek-download__copy h3 {
  margin-block-end: var(--space-sm);
}

.kepek-download__copy p {
  margin-block-end: 0;
}

.kepek-download__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-width: 0;
}

.kepek-download__button-icon {
  font-size: var(--text-body-small);
  line-height: 1;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
  .kepek-gameplay__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .kepek-gameplay__item--platform,
  .kepek-gameplay__item--object {
    flex-direction: column;
    gap: var(--space-md);
  }

  .kepek-gameplay__figure {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .kepek-gameplay__copy {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

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

  .kepek-style__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .kepek-style__figure {
    width: 100%;
    max-width: 100%;
  }

  .kepek-style__copy {
    width: 100%;
    max-width: 100%;
  }
}

/* Mobile breakpoint */
@media (max-width: 600px) {
  .kepek-intro__copy,
  .kepek-intro__figure,
  .kepek-story__figure,
  .kepek-story__copy,
  .kepek-download__copy,
  .kepek-worlds__intro {
    width: 100%;
    max-width: 100%;
  }

  .kepek-gameplay__grid,
  .kepek-worlds__grid,
  .kepek-style__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .kepek-worlds__figure {
    width: 100%;
    max-width: 100%;
  }

  .kepek-gameplay__item--platform,
  .kepek-gameplay__item--object {
    flex-direction: column;
    gap: var(--space-md);
  }

  .kepek-gameplay__figure,
  .kepek-gameplay__copy {
    width: 100%;
    max-width: 100%;
  }

  .kepek-download__button {
    width: 100%;
    max-width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .kepek-download__button {
    transition: none;
  }

  .kepek-download__button:hover {
    transform: none;
  }
}
