/* style/poker.css */

/* Custom properties for colors from the prompt */
:root {
    --bmw55-bg-dark: #0A0A0A;
    --bmw55-card-bg: #111111;
    --bmw55-text-main: #FFF6D6;
    --bmw55-border: #3A2A12;
    --bmw55-glow: #FFD36B;
    --bmw55-primary-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --bmw55-primary-color: #F2C14E; /* Main color */
    --bmw55-secondary-color: #FFD36B; /* Auxiliary color */
}

.page-poker {
    background-color: var(--bmw55-bg-dark);
    color: var(--bmw55-text-main); /* Ensure light text on dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

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

.page-poker__hero-section {
    padding-top: 10px; /* Small padding, body padding-top handles header offset */
    background: var(--bmw55-bg-dark); /* Ensure background for hero */
    position: relative;
    overflow: hidden;
}

.page-poker__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
}

.page-poker__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter is used on images */
}

.page-poker__hero-content {
    text-align: center;
    padding: 60px 20px;
    background: var(--bmw55-bg-dark); /* Dark background for text */
    color: var(--bmw55-text-main); /* Light text */
}

.page-poker__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--bmw55-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow effect */
}

.page-poker__description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--bmw55-text-main);
}

.page-poker__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-poker__btn-primary,
.page-poker__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-poker__btn-primary {
    background: var(--bmw55-primary-gradient);
    color: var(--bmw55-text-main); /* Text main color for buttons */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-poker__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-poker__btn-secondary {
    background: transparent;
    color: var(--bmw55-primary-color); /* Primary color for text */
    border: 2px solid var(--bmw55-primary-color);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-poker__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__about-section,
.page-poker__game-showcase-section,
.page-poker__strategy-guide-section,
.page-poker__tournaments-section,
.page-poker__vip-club-section,
.page-poker__faq-section,
.page-poker__cta-full-width {
    padding: 80px 0;
    background-color: var(--bmw55-bg-dark); /* Ensure dark background */
    color: var(--bmw55-text-main); /* Ensure light text */
}

.page-poker__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--bmw55-primary-color);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-poker__text-block {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: var(--bmw55-text-main);
}

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

.page-poker__card {
    background-color: var(--bmw55-card-bg); /* Card BG color */
    border: 1px solid var(--bmw55-border); /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--bmw55-text-main); /* Light text on dark card background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-poker__card-title,
.page-poker__game-title,
.page-poker__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bmw55-primary-color);
    margin-bottom: 15px;
}

.page-poker__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game images, adjust as needed */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    filter: none; /* Ensure no filter is used on images */
}

.page-poker__game-card .page-poker__btn-primary {
    margin-top: auto; /* Push button to bottom */
}

.page-poker__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-poker__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-poker__text-content {
    flex: 1;
    min-width: 300px;
    color: var(--bmw55-text-main);
}

.page-poker__text-content .page-poker__section-title {
    text-align: left;
    margin-bottom: 30px;
}

.page-poker__text-content .page-poker__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-poker__image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-poker__feature-image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Limit image size */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block;
    filter: none; /* Ensure no filter is used on images */
}

.page-poker__strategy-list,
.page-poker__vip-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
}

.page-poker__strategy-list li,
.page-poker__vip-benefits li {
    background-color: var(--bmw55-card-bg); /* Dark background for list items */
    border: 1px solid var(--bmw55-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: var(--bmw55-text-main);
}

.page-poker__strategy-list li strong,
.page-poker__vip-benefits li strong {
    color: var(--bmw55-primary-color);
    margin-right: 10px;
}

.page-poker__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-poker__cta-full-width .page-poker__cta-content {
    text-align: center;
}

/* FAQ Section */
.page-poker__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker__faq-item {
    background-color: var(--bmw55-card-bg); /* Dark card background */
    border: 1px solid var(--bmw55-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    color: var(--bmw55-text-main);
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bmw55-primary-color); /* Primary color for questions */
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.05); /* Subtle hover effect */
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--bmw55-primary-color);
}

.page-poker__faq-item.active .page-poker__faq-toggle {
    transform: rotate(45deg);
}

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.05rem;
    color: var(--bmw55-text-main);
}

.page-poker__faq-item.active .page-poker__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px 25px 25px; /* Padding for open state */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__hero-image-wrapper {
        height: 500px;
    }
    .page-poker__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-poker__content-wrapper--reverse {
        flex-direction: column; /* Keep column for smaller screens */
    }
    .page-poker__text-content .page-poker__section-title {
        text-align: center;
    }
    .page-poker__text-content .page-poker__text-block {
        text-align: center;
    }
    .page-poker__strategy-list,
    .page-poker__vip-benefits {
        text-align: center;
    }
    .page-poker__strategy-list li,
    .page-poker__vip-benefits li {
        justify-content: center;
        text-align: left; /* Keep text aligned left within item */
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .page-poker__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-poker__hero-image-wrapper {
        height: 300px; /* Smaller height for mobile hero image */
    }
    .page-poker__hero-content {
        padding: 40px 15px;
    }
    .page-poker__main-title {
        font-size: 2.2rem;
    }
    .page-poker__description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-poker__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .page-poker__btn-primary,
    .page-poker__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-poker__about-section,
    .page-poker__game-showcase-section,
    .page-poker__strategy-guide-section,
    .page-poker__tournaments-section,
    .page-poker__vip-club-section,
    .page-poker__faq-section,
    .page-poker__cta-full-width {
        padding: 50px 0;
    }
    .page-poker__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-poker__text-block {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-poker__info-cards,
    .page-poker__game-cards,
    .page-poker__tournament-features {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
        padding: 0 15px;
    }
    .page-poker__card {
        padding: 20px;
    }
    .page-poker__card-title,
    .page-poker__game-title,
    .page-poker__feature-title {
        font-size: 1.3rem;
    }
    .page-poker__game-image {
        height: 180px;
    }
    .page-poker__feature-image {
        max-width: 100%;
    }
    .page-poker__strategy-list li,
    .page-poker__vip-benefits li {
        font-size: 0.95rem;
        padding: 12px 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-poker__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-poker__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px;
    }
    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* Mobile image responsiveness for all images */
    .page-poker img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-poker__section,
    .page-poker__card,
    .page-poker__container,
    .page-poker__hero-section,
    .page-poker__about-section,
    .page-poker__game-showcase-section,
    .page-poker__strategy-guide-section,
    .page-poker__tournaments-section,
    .page-poker__vip-club-section,
    .page-poker__faq-section,
    .page-poker__cta-full-width {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections */
    }
}

/* Ensure content area images are not small icons, min 200px. Exceptions for category icons & partner game images are noted in prompt. This page doesn't have those specific exceptions. */
.page-poker img:not(.page-poker__category-icon):not(.page-poker__partner-game-image) {
    min-width: 200px;
    min-height: 200px;
}
/* For content images, ensure CSS doesn't shrink them below 200px, if width/height attributes are larger */
.page-poker__game-image, .page-poker__feature-image {
    width: auto; /* Allow auto width to respect max-width */
    height: auto; /* Allow auto height to respect max-width */
}