/* style/poker.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-color: #0A0A0A;
    --card-background: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

.page-poker__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-poker__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main-color);
}

.page-poker__card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-poker__card-text {
    font-size: 1em;
    color: var(--text-main-color);
    flex-grow: 1;
}

.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-poker__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-poker__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-poker__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.page-poker__btn-link {
    background: none;
    color: var(--secondary-color);
    border: none;
    padding: 0;
    margin-top: 15px;
    text-decoration: underline;
}

.page-poker__btn-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.page-poker__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop default */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.page-poker__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 675px; /* Limit height to prevent excessive image size */
}

.page-poker__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px 40px 20px;
    max-width: 900px;
    box-sizing: border-box;
    background: var(--background-color);
    border-radius: 8px;
    margin-top: -80px; /* Pull content slightly over the image for visual flow, without overlapping text */
    padding-top: 80px;
}

.page-poker__hero-title {
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
}

.page-poker__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

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

/* Features Section */
.page-poker__features-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-poker__dark-section {
    background-color: var(--background-color);
}

/* Games Showcase Section */
.page-poker__games-showcase {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-poker__game-card .page-poker__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

/* Promotions Section */
.page-poker__promotions-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-poker__promo-card .page-poker__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

/* Getting Started Section */
.page-poker__getting-started {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-poker__step-card {
    text-align: center;
}

.page-poker__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Mobile App Section */
.page-poker__mobile-app-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-poker__mobile-app-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-poker__mobile-app-content {
    flex: 1;
    min-width: 300px;
}

.page-poker__mobile-app-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.page-poker__mobile-app-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: block;
}

.page-poker__app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.page-poker__app-features li {
    margin-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    color: var(--text-main-color);
}

.page-poker__list-icon {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.3em;
}

.page-poker__app-download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Security Section */
.page-poker__security-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-poker__security-item .page-poker__security-icon {
    width: 200px; /* Enforce min-size for content images */
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-poker__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-poker__faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.page-poker__faq-question {
    background-color: var(--card-background);
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: #1a1a1a;
}

.page-poker__faq-question h3 {
    margin: 0;
    color: var(--text-main-color);
    font-size: 1.1em;
    flex-grow: 1;
    text-align: left;
}

.page-poker__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--secondary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-poker__faq-answer {
    background-color: #1a1a1a;
    color: var(--text-main-color);
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
}

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

.page-poker__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Bottom Section */
.page-poker__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color);
}

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

/* All images responsive base styles */
.page-poker img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General content image size enforcement */
.page-poker__game-image,
.page-poker__promo-image,
.page-poker__security-icon {
    min-width: 200px;
    min-height: 150px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-poker__hero-content {
        margin-top: 0;
        padding-top: 20px;
    }
    .page-poker__mobile-app-flex {
        flex-direction: column;
    }
    .page-poker__mobile-app-image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-poker {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-poker__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Mobile default */
    }

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

    .page-poker__section-description {
        font-size: 1em;
    }

    .page-poker__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-poker__container,
    .page-poker__hero-cta-buttons,
    .page-poker__app-download-buttons,
    .page-poker__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary,
    .page-poker__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-poker__hero-cta-buttons,
    .page-poker__app-download-buttons,
    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-poker img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-poker__card,
    .page-poker__section,
    .page-poker__box,
    .page-poker__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-poker__hero-content {
        margin-top: -40px; /* Adjust for mobile */
        padding-top: 40px;
    }

    .page-poker__game-card .page-poker__game-image,
    .page-poker__promo-card .page-poker__promo-image,
    .page-poker__security-item .page-poker__security-icon {
        min-width: unset; /* Allow flexibility */
        min-height: unset;
        height: auto;
    }

    .page-poker__faq-question,
    .page-poker__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 15px;
    }
}