/* style/poker.css */

/* Root variables for page-specific colors */
:root {
    --page-poker-primary-color: #FFD700; /* Gold */
    --page-poker-secondary-color: #1A1A1A; /* Dark Grey/Black */
    --page-poker-text-color-light: #f0f0f0; /* Light text for dark backgrounds */
    --page-poker-text-color-dark: #333333; /* Dark text for light backgrounds */
    --page-poker-button-hover-dark: #b39700; /* Darker gold for hover */
    --page-poker-button-hover-light: #444444; /* Lighter dark for hover */
}

.page-poker {
    color: var(--page-poker-text-color-dark); /* Default text color for light body background */
}

.page-poker__section-spacing {
    padding: 80px 0;
}

.page-poker__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-poker__bg-dark {
    background-color: var(--page-poker-secondary-color);
    color: var(--page-poker-text-color-light);
}

.page-poker__section-title {
    font-size: 2.8em;
    color: var(--page-poker-secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-poker__section-title--light {
    color: var(--page-poker-primary-color);
}

.page-poker__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-poker__section-subtitle--light {
    color: var(--page-poker-text-color-light);
}

.page-poker__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-poker__button--primary {
    background-color: var(--page-poker-primary-color);
    color: var(--page-poker-secondary-color);
    border-color: var(--page-poker-primary-color);
}

.page-poker__button--primary:hover {
    background-color: var(--page-poker-button-hover-dark);
    border-color: var(--page-poker-button-hover-dark);
}

.page-poker__button--secondary {
    background-color: transparent;
    color: var(--page-poker-primary-color);
    border-color: var(--page-poker-primary-color);
}

.page-poker__button--secondary:hover {
    background-color: var(--page-poker-primary-color);
    color: var(--page-poker-secondary-color);
}

.page-poker__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-poker__center-cta {
    text-align: center;
    margin-top: 60px;
}

.page-poker__keyword-highlight {
    color: var(--page-poker-primary-color);
    font-weight: 600;
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: var(--page-poker-secondary-color);
    color: var(--page-poker-text-color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-poker__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px 20px 40px;
}

.page-poker__hero-title {
    font-size: 4em;
    color: var(--page-poker-primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-poker__hero-description {
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.page-poker__hero-image-container {
    position: relative;
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About Section */
.page-poker__about-section {
    background-color: #f8f8f8;
}

.page-poker__grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-poker__text-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-poker__text-content a {
    color: var(--page-poker-primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-poker__text-content a:hover {
    text-decoration: underline;
}

.page-poker__image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-poker__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-poker__games-section {
    color: var(--page-poker-text-color-light);
}

.page-poker__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-poker__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-poker__game-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-poker__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 400px; /* Ensure images are not too wide in cards */
    min-width: 200px; /* Min image size for card */
    min-height: 200px; /* Min image size for card */
}

.page-poker__game-card-title {
    font-size: 1.8em;
    color: var(--page-poker-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-poker__game-card-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-poker-text-color-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How-To Section */
.page-poker__how-to-section {
    background-color: #ffffff;
}

.page-poker__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-poker__step-item {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-poker__step-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-poker__step-icon {
    font-size: 2.5em;
    color: var(--page-poker-primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--page-poker-secondary-color);
    border: 3px solid var(--page-poker-primary-color);
}

.page-poker__step-title {
    font-size: 1.5em;
    color: var(--page-poker-secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-poker__step-item p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-poker__step-item a {
    color: var(--page-poker-primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-poker__step-item a:hover {
    text-decoration: underline;
}

.page-poker__how-to-image-container {
    text-align: center;
}

/* Strategy Section */
.page-poker__strategy-section {
    color: var(--page-poker-text-color-light);
}

.page-poker__strategy-section .page-poker__grid-two-col {
    grid-template-columns: 1fr 1.2fr; /* Make text content slightly wider */
}

.page-poker__text-content--light p, .page-poker__text-content--light li {
    color: var(--page-poker-text-color-light);
}

.page-poker__text-content--light a {
    color: var(--page-poker-primary-color);
}

.page-poker__sub-title {
    font-size: 1.8em;
    color: var(--page-poker-primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-poker__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-poker__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
    line-height: 1.6;
}

.page-poker__list li::before {
    content: '★'; /* Star icon for list items */
    color: var(--page-poker-primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Tournaments Section */
.page-poker__tournaments-section {
    background-color: #ffffff;
}

.page-poker__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-poker__promo-card {
    background-color: var(--page-poker-secondary-color);
    color: var(--page-poker-text-color-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-poker__promo-card:hover {
    transform: translateY(-10px);
}

.page-poker__promo-title {
    font-size: 1.6em;
    color: var(--page-poker-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-poker__promo-card p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-poker__tournaments-image-container {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-poker__faq-section {
    color: var(--page-poker-text-color-light);
}

.page-poker__faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.page-poker__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-poker__faq-question {
    font-size: 1.4em;
    color: var(--page-poker-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-poker__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-poker-text-color-light);
}

.page-poker__faq-answer a {
    color: var(--page-poker-primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-poker__faq-answer a:hover {
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-poker__cta-bottom-section {
    background-color: var(--page-poker-primary-color);
    color: var(--page-poker-secondary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.page-poker__cta-bottom-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px 40px;
}

.page-poker__cta-bottom-section .page-poker__section-title {
    color: var(--page-poker-secondary-color);
}

.page-poker__cta-bottom-section .page-poker__section-subtitle {
    color: var(--page-poker-secondary-color);
}

.page-poker__cta-bottom-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-poker__cta-bottom-section .page-poker__button--primary {
    background-color: var(--page-poker-secondary-color);
    color: var(--page-poker-primary-color);
    border-color: var(--page-poker-secondary-color);
}

.page-poker__cta-bottom-section .page-poker__button--primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-poker__cta-bottom-section .page-poker__button--secondary {
    background-color: transparent;
    color: var(--page-poker-secondary-color);
    border-color: var(--page-poker-secondary-color);
}

.page-poker__cta-bottom-section .page-poker__button--secondary:hover {
    background-color: var(--page-poker-secondary-color);
    color: var(--page-poker-primary-color);
}

.page-poker__cta-bottom-image-container {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.page-poker__cta-bottom-image-container .page-poker__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-poker__hero-title {
        font-size: 3.2em;
    }
    .page-poker__hero-description {
        font-size: 1.2em;
    }
    .page-poker__section-title {
        font-size: 2.2em;
    }
    .page-poker__section-subtitle {
        font-size: 1.1em;
    }
    .page-poker__grid-two-col {
        grid-template-columns: 1fr;
    }
    .page-poker__strategy-section .page-poker__grid-two-col {
        grid-template-columns: 1fr;
    }
    .page-poker__image-content {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-poker__hero-section {
        padding-top: var(--header-offset, 120px);
    }
    .page-poker__hero-title {
        font-size: 2.5em;
    }
    .page-poker__hero-description {
        font-size: 1em;
    }
    .page-poker__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-poker__section-spacing {
        padding: 60px 0;
    }
    .page-poker__section-title {
        font-size: 1.8em;
    }
    .page-poker__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-poker__button {
        width: 100%;
    }
    .page-poker__game-grid, .page-poker__steps-grid, .page-poker__promo-grid, .page-poker__faq-grid {
        grid-template-columns: 1fr;
    }
    /* Ensure content images do not overflow */
    .page-poker img {
        max-width: 100%;
        height: auto;
    }
    .page-poker__hero-image-container .page-poker__hero-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__image-content .page-poker__image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__game-card-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__how-to-image-container .page-poker__image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__tournaments-image-container .page-poker__image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__cta-bottom-image-container .page-poker__image {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-poker__hero-title {
        font-size: 2em;
    }
    .page-poker__hero-description {
        font-size: 0.9em;
    }
    .page-poker__section-title {
        font-size: 1.6em;
    }
    .page-poker__section-subtitle {
        font-size: 0.9em;
    }
}