/* Page-owned styles for pokazy page. Scoped to .pokazy-main and page-owned components. */

.pokazy-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding-block: var(--space-12) var(--space-24);
}

.pokazy-main > section {
  width: 100%;
}

.pokazy-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-end: var(--space-6);
}

.pokazy-coordinate {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.pokazy-hero {
  background-color: var(--bg-base);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.pokazy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.pokazy-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-8);
  padding: var(--space-8);
  align-items: center;
}

.pokazy-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.pokazy-hero__heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-block-end: 0;
  color: var(--text-primary);
  border-inline-start: 4px solid var(--accent-neon);
  padding-inline-start: var(--space-4);
}

.pokazy-hero__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-block-end: 0;
  max-width: 60ch;
}

.pokazy-hero__categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
}

.pokazy-hero__category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  background-color: var(--bg-surface);
}

.pokazy-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-neon);
  border: 1px solid var(--accent-neon);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  background-color: rgba(0, 255, 135, 0.05);
}

.pokazy-status__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent-neon);
  animation: pokazy-pulse 2s ease-in-out infinite;
}

@keyframes pokazy-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 255, 135, 0); }
}

.pokazy-hero__media {
  min-width: 0;
}

.pokazy-hero__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-grid);
  background-color: var(--bg-surface);
  aspect-ratio: 16 / 9;
}

.pokazy-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pokazy-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
}

/* Corner crosses */
.pokazy-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-neon);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 3;
}

.pokazy-corner--tl {
  top: 6px;
  left: 6px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.pokazy-corner--tr {
  top: 6px;
  right: 6px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.pokazy-corner--bl {
  bottom: 6px;
  left: 6px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.pokazy-corner--br {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* Categories */
.pokazy-categories {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
}

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

.pokazy-category-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  background-color: var(--bg-base);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pokazy-category-card:hover {
  border-color: var(--accent-neon);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.25);
}

.pokazy-category-card__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-neon);
}

.pokazy-category-card h3 {
  margin-block-end: 0;
  font-size: 1.125rem;
}

.pokazy-category-card p {
  margin-block-end: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Show profiles */
.pokazy-show-profile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
}

.pokazy-show-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-8);
  align-items: start;
}

.pokazy-show-profile__grid--reverse {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.pokazy-show-profile__media {
  min-width: 0;
}

.pokazy-show-profile__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-grid);
  background-color: var(--bg-base);
}

.pokazy-show-profile--star .pokazy-show-profile__frame {
  aspect-ratio: 4 / 3;
}

.pokazy-show-profile--acro .pokazy-show-profile__frame {
  aspect-ratio: 3 / 4;
}

.pokazy-show-profile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.pokazy-show-profile__frame:hover .pokazy-show-profile__image {
  transform: scale(1.03);
}

.pokazy-show-profile__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
}

.pokazy-show-profile__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.pokazy-show-profile__panel h2 {
  margin-block-end: 0;
}

.pokazy-show-profile__panel p {
  margin-block-end: 0;
}

.pokazy-data-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pokazy-data-list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pokazy-data-list__label {
  color: var(--text-secondary);
  min-width: 140px;
}

.pokazy-data-list__value {
  color: var(--accent-neon);
  font-weight: 700;
}

.pokazy-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pokazy-rating__stars {
  color: var(--accent-neon);
  letter-spacing: 0.1em;
}

.pokazy-rating__score {
  color: var(--accent-neon);
  font-weight: 700;
}

.pokazy-rating__reviews {
  color: var(--text-secondary);
}

.pokazy-recommendation {
  color: var(--text-secondary);
  border-inline-start: 2px solid var(--accent-neon);
  padding-inline-start: var(--space-3);
}

.pokazy-safety {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pokazy-safety h3 {
  margin-block-end: 0;
  font-size: 1rem;
}

.pokazy-safety__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pokazy-safety__list li::before {
  content: "✓ ";
  color: var(--accent-neon);
}

/* Schedule */
.pokazy-schedule {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
}

.pokazy-schedule__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-end: var(--space-4);
}

.pokazy-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.pokazy-filter-btn:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

.pokazy-filter-btn.is-active {
  background-color: var(--accent-neon);
  color: var(--bg-base);
  border-color: var(--accent-neon);
}

.pokazy-schedule__table-wrap {
  overflow-x: auto;
  margin-block-end: var(--space-4);
}

.pokazy-schedule__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin-block-end: 0;
}

.pokazy-schedule__table th,
.pokazy-schedule__table td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-grid);
  text-align: start;
  vertical-align: top;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pokazy-schedule__table th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background-color: var(--bg-base);
}

.pokazy-schedule__table tbody tr {
  transition: background-color var(--transition-fast);
}

.pokazy-schedule__table tbody tr:hover {
  background-color: rgba(0, 255, 135, 0.05);
}

.pokazy-availability {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-grid);
}

.pokazy-availability--available {
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.pokazy-availability--limited {
  color: #FFD166;
  border-color: #FFD166;
}

.pokazy-availability--soldout {
  color: #FF6B6B;
  border-color: #FF6B6B;
}

.pokazy-schedule__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.pokazy-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.pokazy-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.pokazy-legend-dot--available {
  background-color: var(--accent-neon);
}

.pokazy-legend-dot--limited {
  background-color: #FFD166;
}

.pokazy-legend-dot--soldout {
  background-color: #FF6B6B;
}

/* Booking */
.pokazy-booking {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
}

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

.pokazy-booking__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  background-color: var(--bg-base);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.pokazy-booking__panel h3 {
  margin-block-end: 0;
  font-size: 1.125rem;
}

.pokazy-booking__panel p {
  margin-block-end: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pokazy-steps {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-reset: pokazy-step;
}

.pokazy-steps li {
  counter-increment: pokazy-step;
  font-size: 0.875rem;
  line-height: 1.5;
  padding-inline-start: var(--space-6);
  position: relative;
}

.pokazy-steps li::before {
  content: counter(pokazy-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-base);
  background-color: var(--accent-neon);
  border-radius: var(--radius-sm);
}

.pokazy-access-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pokazy-access-list li::before {
  content: "• ";
  color: var(--accent-neon);
}

/* Related */
.pokazy-related {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
}

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

.pokazy-related-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  background-color: var(--bg-base);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.pokazy-related-card:hover {
  border-color: var(--accent-neon);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.25);
  color: var(--text-primary);
  text-decoration: none;
}

.pokazy-related-card__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-neon);
}

.pokazy-related-card h3 {
  margin-block-end: 0;
  font-size: 1.125rem;
}

.pokazy-related-card p {
  margin-block-end: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pokazy-related-card__cta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-neon);
  margin-block-start: auto;
}

/* CTA */
.pokazy-cta {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-neon);
  border-radius: var(--radius-sm);
  padding: var(--space-8);
}

.pokazy-cta__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  max-width: 60%;
  margin-inline: auto;
}

.pokazy-cta__panel h2 {
  margin-block-end: 0;
}

.pokazy-cta__panel p {
  margin-block-end: 0;
  max-width: 50ch;
}

.pokazy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* Responsive */
@media (max-width: 1024px) {
  .pokazy-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pokazy-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .pokazy-show-profile__grid,
  .pokazy-show-profile__grid--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .pokazy-show-profile--star .pokazy-show-profile__frame,
  .pokazy-show-profile--acro .pokazy-show-profile__frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .pokazy-main {
    gap: var(--space-12);
    padding-block: var(--space-8) var(--space-16);
  }

  .pokazy-hero__grid {
    padding: var(--space-4);
  }

  .pokazy-categories,
  .pokazy-show-profile,
  .pokazy-schedule,
  .pokazy-booking,
  .pokazy-related {
    padding: var(--space-4);
  }

  .pokazy-booking__grid,
  .pokazy-related__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pokazy-cta {
    padding: var(--space-6);
  }

  .pokazy-cta__panel {
    max-width: 100%;
  }

  .pokazy-schedule__table {
    min-width: 0;
  }

  .pokazy-schedule__table thead {
    display: none;
  }

  .pokazy-schedule__table tbody,
  .pokazy-schedule__table tr,
  .pokazy-schedule__table td {
    display: block;
    width: 100%;
  }

  .pokazy-schedule__table tr {
    margin-block-end: var(--space-4);
    border: 1px solid var(--border-grid);
    border-radius: var(--radius-sm);
    background-color: var(--bg-base);
  }

  .pokazy-schedule__table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    border: none;
    border-block-end: 1px solid var(--border-grid);
    padding: var(--space-2) var(--space-3);
  }

  .pokazy-schedule__table td:last-child {
    border-block-end: none;
  }

  .pokazy-schedule__table td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
  }
}

@media (max-width: 480px) {
  .pokazy-categories__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pokazy-hero__heading {
    font-size: 1.5rem;
  }

  .pokazy-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .pokazy-cta__actions .btn {
    width: 100%;
  }

  .pokazy-data-list li {
    flex-direction: column;
    gap: var(--space-1);
  }

  .pokazy-data-list__label {
    min-width: 0;
  }
}
