/* Wieczory Pokerowe – page-owned styles */

.poker-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark-walnut);
}

.poker-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.poker-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 42, 74, 0.82) 0%, rgba(27, 42, 74, 0.68) 55%, rgba(27, 42, 74, 0.9) 100%);
  z-index: 1;
}

.poker-hero__content {
  position: relative;
  z-index: 2;
  max-width: 37.5rem;
  width: 100%;
  margin-inline: auto;
  padding: var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.poker-hero__eyebrow {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.85;
  margin: 0;
}

.poker-hero__title {
  color: var(--color-navy-foreground);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
}

.poker-hero__lead {
  color: var(--color-navy-foreground);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  max-width: 34rem;
  margin: 0;
}

.poker-hero__cta {
  margin-block-start: var(--space-2);
}

.poker-intro__container {
  max-width: 62.5rem;
}

.poker-intro__content {
  max-width: 43.75rem;
}

.poker-intro__list {
  margin-block-start: var(--space-4);
}

.poker-atmosphere__title {
  color: var(--color-navy-foreground);
  text-align: center;
  margin-block-end: var(--space-6);
}

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

.poker-atmosphere__card {
  min-width: 0;
  background-color: rgba(245, 240, 230, 0.06);
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-radius: var(--radius-medium);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poker-atmosphere__card h3 {
  color: var(--color-navy-foreground);
  margin: 0;
}

.poker-atmosphere__card p {
  color: var(--color-navy-foreground);
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.poker-atmosphere__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-medium);
  margin-block-end: var(--space-1);
}

.poker-formats__title {
  text-align: center;
  margin-block-end: var(--space-6);
}

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

.poker-format-card {
  min-width: 0;
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-walnut);
  border-radius: var(--radius-medium);
  padding: var(--card-padding-large);
  box-shadow: 0 1px 3px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.poker-format-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.poker-format-card__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-burgundy);
}

.poker-format-card h3 {
  margin: 0;
}

.poker-format-card p {
  margin: 0;
}

.poker-calendar__title {
  color: var(--color-navy-foreground);
  text-align: center;
  margin-block-end: var(--space-6);
}

.poker-calendar__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 56.25rem;
  margin-inline: auto;
}

.poker-event {
  display: grid;
  grid-template-columns: 8rem 1fr 8.5rem;
  gap: var(--space-4);
  align-items: center;
  background-color: rgba(245, 240, 230, 0.06);
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-radius: var(--radius-medium);
  padding: var(--space-4);
  min-width: 0;
}

.poker-event--featured {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 1px var(--color-burgundy);
}

.poker-event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-1);
  color: var(--color-navy-foreground);
}

.poker-event__day {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-cream);
}

.poker-event__month {
  font-size: var(--text-caption-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.poker-event__time {
  font-weight: 600;
  color: var(--color-cream);
}

.poker-event__body {
  min-width: 0;
}

.poker-event__body h3 {
  color: var(--color-navy-foreground);
  margin: 0 0 var(--space-2);
}

.poker-event__body p {
  color: var(--color-navy-foreground);
  margin: 0;
}

.poker-event__action {
  display: flex;
  justify-content: flex-end;
}

.poker-event__btn {
  white-space: nowrap;
}

.poker-flow__container {
  max-width: 50rem;
}

.poker-flow__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.poker-flow__step {
  display: grid;
  grid-template-columns: 3.125rem 1fr;
  gap: var(--space-4);
  align-items: start;
  min-width: 0;
}

.poker-flow__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background-color: var(--color-burgundy);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.poker-flow__content {
  min-width: 0;
}

.poker-flow__content h3 {
  margin: 0 0 var(--space-2);
}

.poker-flow__content p {
  margin: 0;
}

.poker-rules__title {
  color: var(--color-walnut-foreground);
  text-align: center;
  margin-block-end: var(--space-6);
}

.poker-rules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 62.5rem;
  margin-inline: auto;
}

.poker-rules__column {
  min-width: 0;
}

.poker-rules__column h3 {
  color: var(--color-walnut-foreground);
  margin-block-end: var(--space-4);
}

.poker-rules__list {
  color: var(--color-walnut-foreground);
}

.poker-rules__list li {
  color: var(--color-walnut-foreground);
}

.poker-rules__list a {
  color: var(--color-cream);
  text-decoration: underline;
}

.poker-rules__list a:hover {
  color: var(--color-burgundy);
}

.poker-experiences__title {
  text-align: center;
  margin-block-end: var(--space-6);
}

.poker-experiences__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 62.5rem;
  margin-inline: auto;
}

.poker-experiences__list {
  min-width: 0;
  margin: 0;
  padding-inline-start: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.poker-experiences__list li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.poker-gallery__title {
  color: var(--color-navy-foreground);
  text-align: center;
  margin-block-end: var(--space-4);
}

.poker-gallery__intro {
  color: var(--color-navy-foreground);
  text-align: center;
  max-width: 37.5rem;
  margin-inline: auto;
  margin-block-end: var(--space-6);
}

.poker-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 68.75rem;
  margin-inline: auto;
}

.poker-gallery__item {
  min-width: 0;
  margin: 0;
}

.poker-gallery__link {
  display: block;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--color-shadow);
}

.poker-gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.poker-gallery__link:hover .poker-gallery__image {
  transform: scale(1.03);
}

.poker-gallery__item figcaption {
  color: var(--color-navy-foreground);
  opacity: 0.85;
  text-align: center;
  margin-block-start: var(--space-2);
}

.poker-testimonials__title {
  text-align: center;
  margin-block-end: var(--space-6);
}

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

.poker-testimonial {
  min-width: 0;
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-walnut);
  border-radius: var(--radius-medium);
  padding: var(--card-padding-large);
  box-shadow: 0 1px 3px var(--color-shadow);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poker-testimonial p {
  margin: 0;
  font-style: italic;
}

.poker-testimonial footer {
  font-weight: 600;
  color: var(--color-dark-walnut);
}

.poker-booking__card {
  max-width: 37.5rem;
  margin-inline: auto;
  background-color: var(--color-cream);
  border-radius: var(--radius-large);
  padding: var(--space-6);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.poker-booking__card h2 {
  color: var(--color-dark-walnut);
  text-align: center;
  margin-block-end: var(--space-3);
}

.poker-booking__intro {
  text-align: center;
  color: var(--color-cream-foreground);
  margin-block-end: var(--space-5);
}

.poker-booking__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}

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

.poker-booking__field {
  min-width: 0;
}

.poker-booking__field label {
  margin-block-end: var(--space-2);
}

.poker-booking__field input,
.poker-booking__field select,
.poker-booking__field textarea {
  width: 100%;
}

.poker-booking__error {
  color: var(--color-burgundy);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  margin: var(--space-1) 0 0;
  min-height: 1.25rem;
}

.poker-booking__consent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
}

.poker-booking__consent input[type="checkbox"] {
  margin-block-start: 0.25rem;
  flex-shrink: 0;
}

.poker-booking__consent label {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  margin: 0;
}

.poker-booking__consent .poker-booking__error {
  width: 100%;
}

.poker-booking__submit {
  align-self: center;
  min-width: 14rem;
}

.poker-booking__success {
  text-align: center;
  color: var(--color-emerald);
  font-weight: 600;
  margin: 0;
  min-height: 1.5rem;
}

.poker-cta__container {
  max-width: 37.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.poker-cta__container h2 {
  margin: 0;
}

.poker-cta__container p {
  margin: 0;
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
}

.poker-cta__btn {
  margin-block-start: var(--space-2);
}

/* Lightbox */
.poker-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  padding: var(--space-4);
}

.poker-lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.poker-lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-cream);
  color: var(--color-dark-walnut);
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  cursor: pointer;
}

.poker-lightbox__close:hover {
  background-color: var(--color-burgundy);
  color: var(--color-cream);
}

/* Tablet */
@media (min-width: 48rem) and (max-width: 64rem) {
  .poker-atmosphere__grid,
  .poker-formats__grid,
  .poker-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-atmosphere__card:last-child {
    grid-column: span 2;
  }

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

  .poker-format-card:last-child {
    grid-column: span 2;
  }

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

  .poker-gallery__item:last-child {
    grid-column: span 2;
  }

  .poker-event {
    grid-template-columns: 7rem 1fr;
  }

  .poker-event__action {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 47.9375rem) {
  .poker-hero {
    min-height: 60vh;
  }

  .poker-hero__content {
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
  }

  .poker-hero__title {
    font-size: clamp(1.75rem, 1.3rem + 2.5vw, 2rem);
  }

  .poker-hero__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .poker-hero__cta {
    width: 100%;
  }

  .poker-atmosphere__grid,
  .poker-formats__grid,
  .poker-testimonials__grid,
  .poker-gallery__grid,
  .poker-rules__grid,
  .poker-experiences__grid {
    grid-template-columns: 1fr;
  }

  .poker-atmosphere__card:last-child,
  .poker-format-card:last-child,
  .poker-gallery__item:last-child {
    grid-column: auto;
  }

  .poker-event {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .poker-event__date {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
  }

  .poker-event__day {
    font-size: 2rem;
  }

  .poker-event__action {
    justify-content: flex-start;
  }

  .poker-event__btn {
    width: 100%;
    text-align: center;
  }

  .poker-flow__step {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .poker-flow__number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .poker-booking__card {
    padding: var(--space-4);
  }

  .poker-booking__row {
    grid-template-columns: 1fr;
  }

  .poker-booking__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-format-card,
  .poker-gallery__image {
    transition: none;
  }
}
