/* Page-owned styles for offline-poker page */
.offline-poker-page {
    --poker-paper-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --poker-paper-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.12);
    --poker-clip: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    --poker-clip-alt: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Hero */
.poker-hero {
    padding-block-start: var(--space-xl);
    padding-block-end: var(--space-2xl);
}

.poker-hero__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
}

.poker-hero__text {
    min-width: 0;
    background-color: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-medium);
    box-shadow: var(--poker-paper-shadow);
    padding: var(--card-padding-large);
    clip-path: var(--poker-clip);
    position: relative;
    z-index: 1;
}

.poker-hero__text h1 {
    font-size: var(--text-display-size);
    line-height: var(--text-display-line-height);
    font-weight: var(--text-display-weight);
    margin-block-end: var(--space-md);
}

.poker-hero__lead {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-block-end: var(--space-md);
}

.poker-hero__note {
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-block-end: 0;
}

.poker-hero__media {
    min-width: 0;
    position: relative;
    z-index: 0;
}

.poker-hero__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-medium);
    box-shadow: var(--poker-paper-shadow);
    clip-path: var(--poker-clip-alt);
    filter: sepia(0.12) saturate(0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.poker-hero__image:hover {
    transform: scale(1.02);
    box-shadow: var(--poker-paper-shadow-hover);
}

/* Intro */
.offline-poker-intro {
    background-color: var(--color-surface);
    border-block: var(--border-thin);
}

.offline-poker-intro__container {
    max-width: 800px;
    margin-inline: auto;
}

.offline-poker-intro__container h2 {
    margin-block-end: var(--space-lg);
}

.offline-poker-intro__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

/* Live poker */
.live-poker {
    background-color: var(--color-background);
}

.live-poker__container {
    max-width: var(--container-max-width);
}

.live-poker__container h2 {
    margin-block-end: var(--space-xl);
}

.live-poker__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-xl);
    align-items: start;
}

.live-poker__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.live-poker__variant {
    background-color: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-medium);
    box-shadow: var(--poker-paper-shadow);
    padding: var(--card-padding);
    min-width: 0;
}

.live-poker__variant h3 {
    margin-block-end: var(--space-sm);
}

.live-poker__variant p {
    margin-block-end: 0;
}

.live-poker__decor {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background-color: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-medium);
    box-shadow: var(--poker-paper-shadow);
    position: relative;
}

.live-poker__decor-card {
    font-size: 3rem;
    line-height: 1;
    color: var(--color-secondary);
    transition: transform var(--transition-fast);
    display: inline-block;
}

.live-poker__decor-card--spade:hover,
.live-poker__decor-card--heart:hover {
    transform: rotate(8deg) scale(1.05);
}

.live-poker__decor-chip {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-circular);
    background-color: var(--color-primary);
    box-shadow: inset 0 0 0 4px var(--color-surface), 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast);
}

.live-poker__decor-chip--one {
    background-color: var(--color-accent);
}

.live-poker__decor-chip--two {
    background-color: var(--color-secondary);
}

.live-poker__decor-chip:hover {
    transform: translateY(-4px) rotate(6deg);
}

/* Equipment */
.poker-equipment {
    background-color: var(--color-surface);
    border-block: var(--border-thin);
}

.poker-equipment__container {
    max-width: var(--container-max-width);
}

.poker-equipment__container h2 {
    margin-block-end: var(--space-xl);
}

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

.poker-equipment__item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background-color: var(--color-background);
    border: var(--border-thin);
    border-radius: var(--radius-medium);
    box-shadow: var(--poker-paper-shadow);
    padding: var(--card-padding);
}

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

.poker-equipment__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-medium);
    clip-path: var(--poker-clip);
    filter: sepia(0.12) saturate(0.9);
    box-shadow: var(--poker-paper-shadow);
}

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

.poker-equipment__text h3 {
    margin-block-end: var(--space-sm);
}

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

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

.poker-rules__container {
    max-width: 800px;
    margin-inline: auto;
}

.poker-rules__container h2 {
    margin-block-end: var(--space-lg);
}

.poker-rules__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.poker-rules__content h3 {
    margin-block-end: var(--space-sm);
}

.poker-rules__list {
    margin-block-end: 0;
    padding-inline-start: var(--space-lg);
}

.poker-rules__age {
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    color: var(--color-text-secondary);
    border-inline-start: 3px solid var(--color-primary);
    padding-inline-start: var(--space-md);
}

/* Reservation */
.poker-reservation {
    background-color: var(--color-surface);
    border-block: var(--border-thin);
}

.poker-reservation__container {
    max-width: var(--container-max-width);
}

.poker-reservation__container h2 {
    margin-block-end: var(--space-lg);
}

.poker-reservation__layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: center;
    justify-content: space-between;
}

.poker-reservation__text {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 700px;
}

.poker-reservation__text p {
    margin-block-end: var(--space-md);
}

.poker-reservation__text p:last-child {
    margin-block-end: 0;
}

.poker-reservation__action {
    flex: 0 0 auto;
    min-width: 0;
}

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

.poker-faq__container {
    max-width: 800px;
    margin-inline: auto;
}

.poker-faq__container h2 {
    margin-block-end: var(--space-lg);
}

.poker-faq__accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.poker-faq__item {
    background-color: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-medium);
    box-shadow: var(--poker-paper-shadow);
    overflow: hidden;
}

.poker-faq__question {
    width: 100%;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-heading);
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    font-weight: var(--text-h3-weight);
    color: var(--color-text-primary);
    background-color: var(--color-surface);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    transition: background-color var(--transition-fast);
}

.poker-faq__question:hover {
    background-color: var(--color-background);
}

.poker-faq__question::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-accent);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.poker-faq__question[aria-expanded='true']::after {
    transform: rotate(45deg);
}

.poker-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
}

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

/* CTA */
.poker-cta {
    background-color: var(--color-surface);
    border-block: var(--border-thin);
    text-align: center;
}

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

.poker-cta__container h2 {
    margin-block-end: 0;
}

.poker-cta__container p {
    margin-block-end: 0;
    max-width: 600px;
}

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

    .poker-hero__text {
        order: 2;
    }

    .poker-hero__media {
        order: 1;
    }

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

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

@media (max-width: 767px) {
    .poker-hero {
        padding-block-start: var(--space-lg);
        padding-block-end: var(--space-xl);
    }

    .poker-hero__text {
        padding: var(--card-padding);
    }

    .poker-hero__text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .poker-hero__lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .poker-reservation__layout {
        flex-direction: column;
        align-items: stretch;
    }

    .poker-reservation__action {
        align-self: flex-start;
    }

    .poker-faq__question {
        font-size: 1.25rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .poker-hero__text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .poker-hero__lead {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .poker-hero__note {
        font-size: 0.8125rem;
    }

    .live-poker__decor {
        padding: var(--space-md);
    }

    .live-poker__decor-card {
        font-size: 2.25rem;
    }

    .live-poker__decor-chip {
        width: 2.25rem;
        height: 2.25rem;
    }
}
