/* Page-scoped styles for wieczory-pokerowe */

.poker-page {
  overflow: hidden;
}

/* Visually hidden helper for section headings that are present for structure but not visible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */
.poker-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--bg-base);
}

.poker-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.poker-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) brightness(0.8);
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

.poker-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.55) 100%);
}

.poker-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin-inline: 0;
  padding-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.poker-hero__index {
  color: var(--accent-gold);
  letter-spacing: 0.2em;
}

.poker-hero__line {
  width: 3rem;
  height: 1px;
  background-color: var(--accent-gold);
}

.poker-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 100%;
  margin-block-end: 0;
}

.poker-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 100%;
  margin-block-end: 0;
}

/* Introduction */
.poker-intro {
  background-color: var(--bg-base);
}

.poker-intro__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-xl);
  align-items: start;
}

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

.poker-intro__heading {
  margin-block-end: 0;
}

.poker-intro__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-block-end: 0;
}

.poker-intro__text p {
  margin-block-end: 0;
}

.poker-intro__quote {
  margin-block-start: var(--space-lg);
  padding-inline-start: var(--space-lg);
  border-inline-start: 2px solid var(--accent-gold);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--accent-gold);
  font-style: italic;
}

.poker-intro__quote p {
  margin-block-end: 0;
}

.poker-intro__ornament {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.poker-intro__ornament-mark {
  display: block;
  width: 120px;
  height: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  position: relative;
}

.poker-intro__ornament-mark::before,
.poker-intro__ornament-mark::after {
  content: "";
  position: absolute;
  background-color: var(--accent-gold);
  opacity: 0.6;
}

.poker-intro__ornament-mark::before {
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  transform: translateY(-50%);
}

.poker-intro__ornament-mark::after {
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  transform: translateX(-50%);
}

/* Atmosphere */
.poker-atmosphere {
  background-color: var(--bg-base);
}

.poker-atmosphere__grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-xl);
  align-items: center;
}

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

.poker-atmosphere__heading {
  margin-block-end: 0;
}

.poker-atmosphere__text p {
  margin-block-end: 0;
}

.poker-atmosphere__figure {
  margin-block-end: 0;
  min-width: 0;
}

.poker-atmosphere__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
}

.poker-atmosphere__media img {
  filter: sepia(0.3) brightness(0.8);
}

.poker-atmosphere__caption {
  margin-block-start: var(--space-xs);
  color: var(--text-secondary);
}

/* Rules */
.poker-rules {
  background-color: var(--bg-elevated);
}

.poker-rules__container {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.poker-rules__heading {
  margin-block-end: 0;
}

.poker-rules__lead {
  margin-block-end: 0;
}

.poker-rules__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.poker-rules__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.poker-rules__item:last-child {
  border-bottom: none;
}

.poker-rules__number {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  color: var(--accent-gold);
  font-family: var(--heading-font);
  font-size: 0.875rem;
  line-height: 1;
}

.poker-rules__note {
  width: 100%;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  margin-block-start: var(--space-md);
}

.poker-rules__note p {
  margin-block-end: 0;
}

/* Etiquette */
.poker-etiquette {
  background-color: var(--bg-base);
}

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

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

.poker-etiquette__heading {
  margin-block-end: 0;
}

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

.poker-etiquette__block h3 {
  margin-block-end: var(--space-xs);
}

.poker-etiquette__block p {
  margin-block-end: 0;
}

.poker-etiquette__quote-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.poker-etiquette__quote {
  margin-block-end: 0;
  padding: var(--space-lg);
  border-inline-start: 2px solid var(--accent-gold);
  background-color: var(--bg-elevated);
  border-radius: var(--radius-medium);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--accent-gold);
  font-style: italic;
}

.poker-etiquette__quote p {
  margin-block-end: 0;
}

/* Booking */
.poker-booking {
  background-color: var(--surface-card);
}

.poker-booking__container {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.poker-booking__heading {
  margin-block-end: 0;
}

.poker-booking__lead {
  margin-block-end: 0;
}

.poker-booking__contacts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.poker-booking__contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.poker-booking__icon {
  color: var(--accent-gold);
  font-size: 1.25rem;
  line-height: 1;
}

.poker-booking__contact a {
  color: var(--text-primary);
  transition: color var(--transition-default);
}

.poker-booking__contact a:hover {
  color: var(--accent-gold);
}

.poker-booking__note,
.poker-booking__availability {
  margin-block-end: 0;
}

/* FAQ */
.poker-faq {
  background-color: var(--bg-elevated);
}

.poker-faq__container {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.poker-faq__heading {
  margin-block-end: 0;
}

.poker-faq__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.poker-faq__item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-medium);
  background-color: var(--surface-card);
  overflow: hidden;
}

.poker-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-default), background-color var(--transition-default);
}

.poker-faq__trigger:hover {
  color: var(--accent-gold);
}

.poker-faq__trigger:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: -2px;
}

.poker-faq__icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  position: relative;
  transition: transform var(--transition-default);
}

.poker-faq__icon::before,
.poker-faq__icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent-gold);
  transition: transform var(--transition-default);
}

.poker-faq__icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.poker-faq__icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.poker-faq__item.open .poker-faq__icon {
  transform: rotate(45deg);
}

.poker-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}

.poker-faq__answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  margin-block-end: 0;
  color: var(--text-secondary);
}

/* Final quote */
.poker-final-quote {
  background-color: var(--bg-base);
}

.poker-final-quote__container {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.poker-final-quote__quote {
  margin-block-end: 0;
  padding: var(--space-xl) var(--space-lg);
  border: none;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
  position: relative;
}

.poker-final-quote__quote::before,
.poker-final-quote__quote::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 1px;
  background-color: var(--accent-gold);
  transform: translateY(-50%);
}

.poker-final-quote__quote::before {
  left: -1rem;
}

.poker-final-quote__quote::after {
  right: -1rem;
}

.poker-final-quote__quote p {
  margin-block-end: 0;
}

/* CTA */
.poker-cta {
  background-color: var(--surface-card);
}

.poker-cta__container {
  max-width: 500px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.poker-cta__heading {
  margin-block-end: 0;
}

.poker-cta__text {
  margin-block-end: 0;
}

.poker-cta__button {
  margin-block-start: var(--space-sm);
}

.poker-cta__note {
  margin-block-end: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .poker-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .poker-intro__ornament {
    display: none;
  }

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

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

  .poker-etiquette__quote-wrap {
    height: auto;
  }
}

@media (max-width: 768px) {
  .poker-hero {
    min-height: 70vh;
  }

  .poker-hero__content {
    padding-bottom: var(--space-xl);
    padding-inline: var(--space-md);
  }

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

  .poker-hero__subtitle {
    font-size: 1rem;
  }

  .poker-intro__grid,
  .poker-atmosphere__grid,
  .poker-etiquette__grid {
    gap: var(--space-lg);
  }

  .poker-intro__quote,
  .poker-etiquette__quote {
    font-size: 1.25rem;
  }

  .poker-final-quote__quote::before,
  .poker-final-quote__quote::after {
    width: 1.5rem;
  }

  .poker-final-quote__quote::before {
    left: -0.5rem;
  }

  .poker-final-quote__quote::after {
    right: -0.5rem;
  }

  .poker-faq__trigger {
    padding: var(--space-sm) var(--space-md);
  }

  .poker-faq__answer p {
    padding: 0 var(--space-md) var(--space-md);
  }
}

@media (max-width: 390px) {
  .poker-hero__title {
    font-size: 1.8rem;
  }

  .poker-hero__subtitle {
    font-size: 0.875rem;
  }

  .poker-rules__container,
  .poker-booking__container,
  .poker-faq__container,
  .poker-cta__container {
    padding-inline: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-hero__image {
    transform: none;
    transition: none;
  }

  .poker-faq__answer {
    transition: none;
  }

  .poker-faq__icon {
    transition: none;
  }
}
