/* ===== Kepek page styles ===== */

.kepek-page {
  /* Page-owned main container */
}

/* Hero section */
.kepek-hero {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(242, 245, 255, 0.05) 0%, rgba(242, 245, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 70% 55%, rgba(242, 245, 255, 0.04) 0%, rgba(242, 245, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 45% 80%, rgba(242, 245, 255, 0.06) 0%, rgba(242, 245, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 85% 30%, rgba(242, 245, 255, 0.03) 0%, rgba(242, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 220px 220px, 300px 300px, 260px 260px, 340px 340px;
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
}

.kepek-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  max-width: var(--container-editorial);
  margin-inline: auto;
  padding-inline: var(--page-pad-mobile);
}

.kepek-hero__content {
  min-width: 0;
}

.kepek-hero__content h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-block-end: var(--space-5);
}

.kepek-hero__lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 65ch;
  margin-block-end: var(--space-4);
}

.kepek-hero__support {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-slate);
  max-width: 65ch;
  margin-block-end: 0;
}

.kepek-hero__visual {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.kepek-hero__crewmate {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  background-color: var(--deep-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-panel);
  position: relative;
  overflow: hidden;
}

.kepek-hero__crewmate::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 80%;
  background-color: var(--electric-cyan);
  border-radius: 45% 45% 45% 45% / 50% 50% 45% 45%;
  opacity: 0.85;
}

.kepek-hero__crewmate::after {
  content: '';
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 22%;
  background-color: var(--space-black);
  border-radius: 12px;
  opacity: 0.9;
}

/* Overview section */
.kepek-overview {
  padding-block: var(--space-7) var(--space-6);
}

.kepek-overview__panel {
  background-color: var(--deep-panel);
  border: 1px solid var(--border-default);
  border-inline-start: 3px solid var(--electric-cyan);
  border-radius: var(--radius-panel);
  padding: var(--space-6);
}

.kepek-overview__panel h2 {
  margin-block-end: var(--space-4);
}

.kepek-overview__text {
  max-width: 70ch;
  margin-block-end: var(--space-5);
}

.kepek-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
}

.kepek-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background-color: transparent;
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--electric-cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.kepek-filter-btn:hover {
  background-color: var(--cyan-glow);
  border-color: var(--electric-cyan);
  color: var(--cool-white);
}

.kepek-filter-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.kepek-filter-btn.is-active {
  background-color: var(--electric-cyan);
  color: var(--space-black);
  border-color: var(--electric-cyan);
}

/* Gallery sections */
.kepek-gallery-section {
  padding-block: var(--space-6);
}

.kepek-gallery-section__intro {
  max-width: 70ch;
  margin-block-end: var(--space-5);
}

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

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

.kepek-card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-image);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.kepek-card__button:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.kepek-card__button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.kepek-card__button img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.kepek-card .screenshot-caption {
  margin-block-start: var(--space-2);
  max-width: 60ch;
}

/* Category-specific image borders */
.kepek-gallery-section--impostor .kepek-card__button {
  border-color: rgba(255, 59, 78, 0.3);
}

.kepek-gallery-section--impostor .kepek-card__button:hover {
  border-color: rgba(255, 59, 78, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.18);
}

.kepek-gallery-section--meetings .kepek-card__button {
  border-color: rgba(0, 229, 255, 0.3);
}

.kepek-gallery-section--meetings .kepek-card__button:hover {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.kepek-gallery-section--multiplayer .kepek-card__button {
  border-color: rgba(182, 255, 59, 0.3);
}

.kepek-gallery-section--multiplayer .kepek-card__button:hover {
  border-color: rgba(182, 255, 59, 0.6);
  box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.18);
}

/* Closing section */
.kepek-closing {
  padding-block: var(--space-8) var(--space-9);
}

.kepek-closing__panel {
  background-color: var(--deep-panel);
  border: 1px solid var(--border-default);
  border-inline-start: 3px solid var(--neon-lime);
  border-radius: var(--radius-panel);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.kepek-closing__panel h2 {
  margin-block-end: 0;
}

.kepek-closing__text {
  max-width: 70ch;
  margin-block-end: 0;
}

.kepek-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: var(--space-2);
}

.kepek-closing__actions .btn {
  min-width: 200px;
}

/* Lightbox overlay */
.kepek-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background-color: rgba(11, 14, 26, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.kepek-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.kepek-lightbox__content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--deep-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-panel);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.kepek-lightbox__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}

.kepek-lightbox__caption {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cool-white);
  margin-block-end: 0;
}

.kepek-lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--space-black);
  border: 1px solid var(--electric-cyan);
  border-radius: 50%;
  color: var(--electric-cyan);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.kepek-lightbox__close:hover {
  background-color: var(--cyan-glow);
  color: var(--cool-white);
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.kepek-lightbox__close:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Scroll reveal animation */
.kepek-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.kepek-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
  .kepek-hero__inner {
    padding-inline: var(--page-pad-tablet);
  }

  .kepek-overview__panel,
  .kepek-closing__panel {
    padding: var(--space-7);
  }
}

@media (min-width: 1024px) {
  .kepek-hero__inner {
    padding-inline: var(--page-pad-desktop);
  }

  .kepek-grid {
    gap: var(--space-6);
  }
}

@media (max-width: 767px) {
  .kepek-hero {
    padding-block: var(--space-6) var(--space-5);
  }

  .kepek-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-inline: var(--page-pad-mobile);
  }

  .kepek-hero__content h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .kepek-hero__lead {
    font-size: 18px;
    line-height: 1.65;
  }

  .kepek-hero__visual {
    justify-content: center;
  }

  .kepek-hero__crewmate {
    max-width: 280px;
  }

  .kepek-overview__panel {
    padding: var(--space-5);
  }

  .kepek-filters {
    gap: var(--space-2);
  }

  .kepek-filter-btn {
    padding: var(--space-1) var(--space-3);
    font-size: 12px;
  }

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

  .kepek-card__button img {
    aspect-ratio: 16 / 9;
  }

  .kepek-closing__panel {
    padding: var(--space-5);
  }

  .kepek-closing__actions {
    flex-direction: column;
  }

  .kepek-closing__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .kepek-lightbox__content {
    padding: var(--space-3);
  }

  .kepek-lightbox__close {
    top: var(--space-2);
    right: var(--space-2);
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .kepek-hero__content h1 {
    font-size: 34px;
  }

  .kepek-hero__lead {
    font-size: 16px;
  }

  .kepek-hero__support {
    font-size: 16px;
  }

  .kepek-overview__text,
  .kepek-gallery-section__intro,
  .kepek-closing__text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kepek-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
