/* Page-owned styles for poker-room/index.php */

.poker-room-page {
    --poker-hero-text-max: 560px;
    --poker-editorial-max: 720px;
    --poker-cta-max: 600px;
    --poker-card-gap: var(--space-lg);
    --poker-section-gap: var(--space-4xl);
    --poker-section-gap-mobile: var(--space-3xl);
    --poker-block-gap: var(--space-2xl);
    --poker-block-gap-mobile: var(--space-xl);
    --poker-article-gap: var(--space-xl);
    --poker-article-gap-mobile: var(--space-lg);
    --poker-border-radius-image: var(--radius-md);
}

/* Cinematic Hero */
.poker-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-ink);
    overflow: hidden;
}

.poker-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.poker-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.poker-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 15, 13, 0.85) 0%, rgba(11, 15, 13, 0.55) 45%, rgba(11, 15, 13, 0.15) 100%);
}

.poker-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: var(--space-4xl) var(--space-3xl);
}

.poker-hero__text {
    max-width: var(--poker-hero-text-max);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    text-align: left;
}

.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-brass);
    margin: 0;
}

.poker-hero__title {
    font-size: var(--text-display-size);
    line-height: var(--text-display-line-height);
    letter-spacing: var(--text-display-letter-spacing);
    font-weight: var(--text-display-weight);
    color: var(--color-cream);
    margin: 0;
    max-width: 12ch;
}

.poker-hero__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--color-cream-muted);
    margin: 0;
    max-width: 45ch;
}

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

/* Section header adjustments for paper surface */
.section-header--paper::before {
    background-color: var(--color-burgundy);
}

.section-header--paper h2 {
    color: var(--color-ink);
}

.section-header--paper p {
    color: rgba(11, 15, 13, 0.65);
}

/* Dedicated Poker Room */
.poker-room-section {
    padding-block: var(--poker-section-gap);
}

.poker-room-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--poker-block-gap);
    align-items: start;
    margin-block-end: var(--poker-block-gap);
}

.poker-room-layout__text {
    grid-column: span 7;
    min-width: 0;
}

.poker-room-layout__image {
    grid-column: span 5;
    min-width: 0;
    margin: 0;
}

.poker-room-layout__image img {
    width: 100%;
    height: auto;
    border: var(--border-wood);
    border-radius: var(--poker-border-radius-image);
    object-fit: cover;
}

.poker-room-layout__image figcaption {
    margin-block-start: var(--space-xs);
}

.poker-room-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--poker-article-gap);
    max-width: var(--poker-editorial-max);
    margin-inline: 0;
}

.poker-room-article {
    min-width: 0;
}

.poker-room-article h3,
.poker-games-article h3,
.poker-private-article h3,
.poker-lounge-article h3,
.poker-players-article h3,
.poker-restaurant-article h3 {
    margin-block-end: var(--space-sm);
}

.poker-room-article p,
.poker-games-article p,
.poker-private-article p,
.poker-lounge-article p,
.poker-players-article p,
.poker-restaurant-article p {
    margin: 0;
}

/* Organised Poker Games */
.poker-games-section {
    padding-block: var(--poker-section-gap);
}

.poker-games-panel {
    display: flex;
    flex-direction: column;
    gap: var(--poker-article-gap);
    max-width: var(--poker-editorial-max);
    margin-inline: 0;
}

.poker-games-article {
    min-width: 0;
}

/* Poker Tournaments */
.poker-tournaments-section {
    padding-block: var(--poker-section-gap);
}

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

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

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

.poker-tournament-card p {
    margin: 0;
    flex: 1 1 auto;
    max-width: 55ch;
}

.poker-tournament-card .link-brass {
    align-self: flex-start;
}

/* Private Poker Events */
.poker-private-section {
    padding-block: var(--poker-section-gap);
}

.poker-private-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--poker-block-gap);
    align-items: start;
}

.poker-private-layout__image {
    grid-column: span 5;
    min-width: 0;
    margin: 0;
}

.poker-private-layout__image img {
    width: 100%;
    height: auto;
    border: var(--border-wood);
    border-radius: var(--poker-border-radius-image);
    object-fit: cover;
}

.poker-private-layout__image figcaption {
    margin-block-start: var(--space-xs);
}

.poker-private-layout__text {
    grid-column: span 7;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--poker-article-gap);
}

.poker-private-article {
    min-width: 0;
}

/* Card Lounge */
.poker-lounge-section {
    padding-block: var(--poker-section-gap);
}

.poker-lounge-panel {
    display: flex;
    flex-direction: column;
    gap: var(--poker-article-gap);
    max-width: var(--poker-editorial-max);
    margin-inline: 0;
    background-color: var(--color-wood);
    border: var(--border-brass);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.poker-lounge-article {
    min-width: 0;
}

/* Serious Poker Players */
.poker-players-section {
    padding-block: var(--poker-section-gap);
}

.poker-players-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--poker-block-gap);
    align-items: start;
}

.poker-players-article {
    min-width: 0;
}

.poker-players-article p {
    max-width: 60ch;
}

/* Restaurant */
.poker-restaurant-section {
    padding-block: var(--poker-section-gap);
}

.poker-restaurant-panel {
    display: flex;
    flex-direction: column;
    gap: var(--poker-article-gap);
    max-width: var(--poker-editorial-max);
    margin-inline: 0;
    background-color: var(--color-paper);
    border: var(--border-wood-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.poker-restaurant-article {
    min-width: 0;
}

.poker-restaurant-article h3 {
    color: var(--color-burgundy);
}

.poker-restaurant-article p {
    color: var(--color-ink);
}

/* CTA */
.poker-cta-section {
    padding-block: var(--poker-section-gap);
}

.poker-cta-panel {
    max-width: var(--poker-cta-max);
    margin-inline: auto;
    text-align: center;
    background-color: var(--color-felt);
    border: var(--border-brass);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

.poker-cta-panel h2 {
    margin: 0;
    color: var(--color-cream);
}

.poker-cta-panel p {
    margin: 0;
    max-width: 55ch;
    color: var(--color-cream-muted);
}

.poker-cta-panel__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--text-body-small-size);
    line-height: var(--text-body-small-line-height);
}

.poker-cta-panel__contact a {
    color: var(--color-brass);
    text-decoration: underline;
    text-decoration-color: var(--color-brass);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.poker-cta-panel__contact a:hover,
.poker-cta-panel__contact a:focus-visible {
    color: var(--color-brass-bright);
    text-decoration-color: var(--color-brass-bright);
}

.poker-cta-panel .btn {
    min-width: 200px;
}

/* Disclaimer */
.poker-disclaimer-section {
    padding-block: var(--poker-block-gap);
}

.poker-disclaimer {
    max-width: var(--poker-editorial-max);
    margin-inline: 0;
    padding-block-start: var(--space-lg);
    border-block-start: 1px solid rgba(42, 28, 20, 0.4);
}

.poker-disclaimer p {
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-line-height);
    letter-spacing: var(--text-caption-letter-spacing);
    color: var(--color-cream-muted);
    margin: 0;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .poker-hero {
        min-height: 70vh;
        align-items: flex-end;
    }

    .poker-hero__text {
        max-width: 520px;
    }

    .poker-hero__title {
        font-size: clamp(2.4rem, 6vw, 4rem);
    }

    .poker-room-layout {
        grid-template-columns: 1fr;
        gap: var(--poker-block-gap-mobile);
    }

    .poker-room-layout__text,
    .poker-room-layout__image {
        grid-column: 1 / -1;
    }

    .poker-room-layout__image img,
    .poker-private-layout__image img {
        width: 100%;
        height: auto;
    }

    .poker-private-layout {
        grid-template-columns: 1fr;
        gap: var(--poker-block-gap-mobile);
    }

    .poker-private-layout__image,
    .poker-private-layout__text {
        grid-column: 1 / -1;
    }

    .poker-players-grid {
        grid-template-columns: 1fr;
        gap: var(--poker-article-gap-mobile);
    }

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

    .poker-tournament-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .poker-room-page {
        --poker-section-gap: var(--poker-section-gap-mobile);
        --poker-block-gap: var(--poker-block-gap-mobile);
        --poker-article-gap: var(--poker-article-gap-mobile);
    }

    .poker-hero {
        min-height: 60vh;
        align-items: flex-end;
    }

    .poker-hero__overlay {
        background: linear-gradient(180deg, rgba(11, 15, 13, 0.2) 0%, rgba(11, 15, 13, 0.85) 70%, rgba(11, 15, 13, 0.95) 100%);
    }

    .poker-hero__content {
        padding-block: var(--space-2xl) var(--space-xl);
    }

    .poker-hero__text {
        max-width: 100%;
        gap: var(--space-md);
    }

    .poker-hero__title {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
        max-width: 100%;
    }

    .poker-hero__lead {
        max-width: 100%;
    }

    .poker-room-layout,
    .poker-private-layout,
    .poker-players-grid,
    .poker-tournaments-grid {
        grid-template-columns: 1fr;
        gap: var(--poker-article-gap-mobile);
    }

    .poker-room-layout__text,
    .poker-room-layout__image,
    .poker-private-layout__image,
    .poker-private-layout__text,
    .poker-tournament-card {
        grid-column: 1 / -1;
    }

    .poker-room-layout__image img,
    .poker-private-layout__image img {
        width: 100%;
        height: auto;
    }

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

    .poker-lounge-panel,
    .poker-restaurant-panel {
        padding: var(--space-lg);
    }

    .poker-cta-panel {
        padding: var(--space-xl);
        gap: var(--space-md);
    }

    .poker-cta-panel .btn {
        width: 100%;
        min-width: 0;
    }

    .poker-disclaimer {
        padding-block-start: var(--space-md);
    }
}

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

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

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