/* style/poker.css */
.page-poker {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-poker__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #FFFFFF; /* Text on hero image will be white */
    text-align: center;
}

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

.page-poker__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-poker__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    padding: 20px;
    box-sizing: border-box;
}

.page-poker__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
}

.page-poker__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
    max-width: 800px;
}

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

.page-poker__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    text-align: center;
    font-size: 1.1em;
    cursor: pointer;
}

.page-poker__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-poker__button--primary:hover {
    background-color: #e0a030;
    transform: translateY(-2px);
}

.page-poker__button--secondary {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-poker__button--secondary:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-poker__section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-poker__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #000000;
}

.page-poker__section-intro {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker__variant-grid,
.page-poker__feature-grid,
.page-poker__steps-grid,
.page-poker__strategy-grid,
.page-poker__faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-poker__variant-card,
.page-poker__feature-item,
.page-poker__step-item,
.page-poker__strategy-item {
    background-color: #000000; /* Dark card background */
    color: #FFFFFF; /* Light text on dark card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-poker__variant-card img,
.page-poker__feature-item img {
    width: 100%; /* Occupy card width */
    max-width: 400px; /* Example max width for card images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-poker__card-title,
.page-poker__item-title,
.page-poker__faq-question {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FCBC45; /* Emphasize titles */
}

.page-poker__card-description,
.page-poker__item-description,
.page-poker__faq-answer {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-poker__button--card,
.page-poker__button--step {
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: auto; /* Push button to bottom of card */
}

.page-poker__button--card:hover,
.page-poker__button--step:hover {
    background-color: #e0a030;
}

.page-poker__step-item {
    position: relative;
    padding-top: 60px;
}

.page-poker__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCBC45;
    color: #000000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-poker__strategy-item {
    text-align: left;
    background-color: #1a1a1a; /* Slightly lighter dark for strategy cards */
    padding: 25px;
    min-height: 200px; /* Ensure strategy items have minimum height */
}

.page-poker__strategy-item .page-poker__item-title {
    color: #FFFFFF;
}

.page-poker__strategy-item .page-poker__item-description {
    color: #cccccc;
}

.page-poker__strategy-cta,
.page-poker__faq-cta {
    margin-top: 50px;
}

.page-poker__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #FCBC45;
}

.page-poker__button--learn-more:hover {
    background-color: #333333;
    border-color: #e0a030;
}

.page-poker__responsible-gaming-content {
    background-color: #f0f0f0;
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
    color: #333333;
    text-align: left;
}

.page-poker__responsible-gaming-content .page-poker__text {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-poker__faq-item {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    color: #333333;
}

.page-poker__faq-item .page-poker__faq-question {
    color: #000000;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-poker__faq-item .page-poker__faq-answer {
    color: #555555;
    font-size: 1em;
    margin-bottom: 0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-poker {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }

    .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__button {
        width: 80%;
        margin: 0 auto;
    }

    .page-poker__section-title {
        font-size: 2em;
    }

    .page-poker__section-intro {
        font-size: 0.95em;
    }

    .page-poker__variant-grid,
    .page-poker__feature-grid,
    .page-poker__steps-grid,
    .page-poker__strategy-grid,
    .page-poker__faq-container {
        grid-template-columns: 1fr;
    }

    /* Ensure all images within .page-poker are responsive and don't overflow */
    .page-poker img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Minimum size still applies */
        min-height: 200px;
    }

    /* Specific rules for images inside cards to prevent overflow */
    .page-poker__variant-card img,
    .page-poker__feature-item img {
        max-width: 100%;
        height: auto;
    }
}

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

    .page-poker__hero-description {
        font-size: 0.9em;
    }

    .page-poker__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}