/* style/poker.css */

/* Base styling for the poker page */
.page-poker {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text on dark/rich background image */
    text-align: center;
    padding: 80px 20px 40px; /* Adjusted padding, header offset handled by main */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000000; /* Fallback/base for hero section */
}

.page-poker__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-poker__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6; /* Slightly dim image for text readability */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-poker__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-poker__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-poker__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #F0F0F0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-poker__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-poker__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

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

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

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

/* General Section Styling */
.page-poker__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-poker__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-poker__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.page-poker__about-section {
    background-color: #F8F8F8;
    padding: 60px 0;
}

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

.page-poker__image-text-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.page-poker__image-text-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #EEEEEE;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-poker__item-title {
    font-size: 1.6em;
    color: #000000;
    margin: 25px 15px 10px;
}

.page-poker__item-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1; /* Make descriptions take equal height */
}

/* Game Types Section */
.page-poker__game-types-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-poker__game-card {
    background-color: #F8F8F8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.page-poker__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for game cards */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #EEEEEE;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-poker__card-title {
    font-size: 1.8em;
    color: #000000;
    margin: 25px 15px 10px;
}

.page-poker__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-poker__button--play-now,
.page-poker__button--explore-games {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 10px 25px;
    font-size: 1em;
    margin-top: auto; /* Push button to bottom */
}

.page-poker__button--play-now:hover,
.page-poker__button--explore-games:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-2px);
}

/* Tournaments Section */
.page-poker__tournaments-section {
    background-color: #000000; /* Dark background for this section */
    color: #FFFFFF; /* Light text */
    padding: 60px 0;
}

.page-poker__tournaments-section .page-poker__section-title {
    color: #FFFFFF; /* Ensure title is white on dark background */
}

.page-poker__tournaments-section .page-poker__text-block {
    color: #E0E0E0;
}

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

.page-poker__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-poker__feature-title {
    font-size: 1.5em;
    color: #FCBC45; /* Highlight color for feature titles */
    margin-bottom: 10px;
}

.page-poker__feature-description {
    font-size: 1em;
    color: #F0F0F0;
}

.page-poker__tournament-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}


/* Promotions Section */
.page-poker__promotions-section {
    padding: 60px 0;
    background-color: #F8F8F8;
}

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

.page-poker__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-poker__promo-card .page-poker__card-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 0;
}

.page-poker__promo-card .page-poker__card-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-poker__button--view-promo {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 10px 25px;
    font-size: 1em;
    margin-top: auto;
}

.page-poker__button--view-promo:hover {
    background-color: #E0A83A;
    border-color: #E0A83A;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-poker__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-poker__faq-answer {
    font-size: 1em;
    color: #555555;
    line-height: 1.8;
    display: none; /* Hidden by default, shown by JS */
}

.page-poker__faq-item--active .page-poker__faq-answer {
    display: block;
}

/* Call to Action Section */
.page-poker__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF; /* Light text */
    padding: 80px 0;
    text-align: center;
}

.page-poker__cta-section .page-poker__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-poker__cta-section .page-poker__text-block {
    color: #E0E0E0;
    margin-bottom: 40px;
}

.page-poker__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* JavaScript animation classes */
.page-poker--hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-poker--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__hero-title {
        font-size: 3em;
    }
    .page-poker__hero-description {
        font-size: 1.2em;
    }
    .page-poker__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile content area constraint */
    .page-poker__content-wrapper {
        padding: 15px;
    }

    .page-poker__hero-section {
        padding: 60px 15px 30px;
    }

    .page-poker__hero-title {
        font-size: 2.5em;
    }

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

    .page-poker__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-poker__button {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
    }

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

    .page-poker__text-block {
        font-size: 1em;
    }

    .page-poker__image-text-grid,
    .page-poker__game-cards-grid,
    .page-poker__promo-cards-grid,
    .page-poker__tournament-features {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 25px;
    }

    .page-poker__image-text-item img,
    .page-poker__game-card img {
        height: 200px; /* Adjust image height for mobile cards */
        min-width: 200px; /* Ensure min size */
        min-height: 200px; /* Ensure min size */
        max-width: 100%; /* Ensure mobile images don't overflow */
    }

    .page-poker__tournament-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure min size */
        min-height: 200px; /* Ensure min size */
    }

    .page-poker__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Ensure content area does not cause horizontal scroll */
    .page-poker {
        overflow-x: hidden;
    }
    .page-poker__content-wrapper {
        max-width: 100%; /* Important for preventing overflow */
        box-sizing: border-box; /* Include padding in width */
    }

    /* Important: All images within .page-poker must be responsive */
    .page-poker img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-poker__hero-title {
        font-size: 2em;
    }
    .page-poker__hero-description {
        font-size: 1em;
    }
    .page-poker__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-poker__section-title {
        font-size: 1.5em;
    }
    .page-poker__item-title,
    .page-poker__card-title,
    .page-poker__feature-title {
        font-size: 1.3em;
    }
    .page-poker__faq-question {
        font-size: 1.1em;
    }
}