/* style/poker.css */

/* Variables for consistent styling */
:root {
    --poker-primary-color: #F2C14E; /* Main brand color */
    --poker-secondary-color: #FFD36B; /* Auxiliary brand color */
    --poker-background-dark: #0A0A0A; /* Page background */
    --poker-card-bg: #111111; /* Card background */
    --poker-text-main: #FFF6D6; /* Main text color */
    --poker-border-color: #3A2A12; /* Border color */
    --poker-glow-color: #FFD36B; /* Glow effect color */
    --poker-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
}

.page-poker {
    font-family: Arial, sans-serif;
    color: var(--poker-text-main); /* Default text color for the page */
    background-color: var(--poker-background-dark); /* Page background from custom colors */
    line-height: 1.6;
}

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

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--poker-background-dark);
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-poker__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of hero image */
    overflow: hidden;
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-poker__hero-content {
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-poker__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--poker-secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-poker__hero-description {
    font-size: 1.2em;
    color: var(--poker-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-poker__cta-buttons--center {
    margin-top: 40px;
}

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-poker__btn-primary {
    background: var(--poker-button-gradient);
    color: #0A0A0A; /* Dark text on bright button for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    filter: brightness(1.1);
}

.page-poker__btn-secondary {
    background: transparent;
    color: var(--poker-secondary-color);
    border: 2px solid var(--poker-secondary-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.2);
}

.page-poker__btn-secondary:hover {
    background: var(--poker-secondary-color);
    color: var(--poker-background-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
}

.page-poker__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 6px;
}

/* Section Titles and Descriptions */
.page-poker__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--poker-primary-color);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-poker__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--poker-secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* General Sections */
.page-poker__about-section,
.page-poker__game-types-section,
.page-poker__how-to-play-section,
.page-poker__mobile-section,
.page-poker__security-section,
.page-poker__faq-section,
.page-poker__cta-final-section {
    padding: 80px 0;
    background-color: var(--poker-background-dark);
}

.page-poker__dark-section {
    background-color: var(--poker-card-bg); /* Use card background for darker sections */
}

.page-poker__medium-bg {
    background-color: rgba(255, 211, 107, 0.05); /* Slightly lighter background for contrast */
}

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

.page-poker__card {
    background-color: var(--poker-card-bg);
    border: 1px solid var(--poker-border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-poker__card-title {
    font-size: 1.3em;
    color: var(--poker-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-poker__image-text-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-poker__image-block {
    flex: 1;
    min-width: 300px;
}

.page-poker__text-block {
    flex: 1;
}

.page-poker__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-poker__step-card {
    background-color: var(--poker-card-bg);
    border: 1px solid var(--poker-border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-poker__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--poker-button-gradient);
    color: #0A0A0A;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

.page-poker__step-title {
    font-size: 1.2em;
    color: var(--poker-primary-color);
    margin-bottom: 15px;
}

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

.page-poker__bonus-card {
    background-color: var(--poker-card-bg);
    border: 1px solid var(--poker-border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-poker__bonus-image {
    width: 100%;
    height: 200px; /* Fixed height for bonus images */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-poker__bonus-title {
    font-size: 1.4em;
    color: var(--poker-primary-color);
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-poker__bonus-card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-poker__bonus-card .page-poker__btn-primary {
    margin-bottom: 20px;
}

.page-poker__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row;
}

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

.page-poker__mobile-image {
    flex: 1;
    min-width: 300px;
    order: 2; /* Image on right for desktop */
}

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

.page-poker__security-item {
    background-color: var(--poker-card-bg);
    border: 1px solid var(--poker-border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.page-poker__faq-item {
    background-color: var(--poker-card-bg);
    border: 1px solid var(--poker-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--poker-card-bg);
    color: var(--poker-primary-color);
    font-size: 1.15em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

.page-poker__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

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

.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;
    color: var(--poker-text-main);
}

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

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

/* Final CTA Section */
.page-poker__cta-final-content {
    text-align: center;
}

.page-poker__cta-final-content .page-poker__section-title {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-poker__image-text-grid,
    .page-poker__mobile-content {
        flex-direction: column;
        text-align: center;
    }

    .page-poker__mobile-image {
        order: initial; /* Reset order for mobile */
    }

    .page-poker__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-poker__container {
        padding: 0 15px;
    }

    .page-poker__hero-section {
        padding-bottom: 40px;
    }

    .page-poker__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary,
    .page-poker a[class*="button"],
    .page-poker a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-poker__cta-buttons,
    .page-poker__button-group,
    .page-poker__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-poker__section-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
        margin-top: 40px;
    }

    .page-poker__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-poker__sub-title {
        font-size: clamp(1.2em, 4vw, 1.5em);
    }

    .page-poker__about-section,
    .page-poker__game-types-section,
    .page-poker__how-to-play-section,
    .page-poker__mobile-section,
    .page-poker__security-section,
    .page-poker__faq-section,
    .page-poker__cta-final-section {
        padding: 50px 0;
    }

    /* Images and containers for mobile responsiveness */
    .page-poker img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block;
    }
    
    .page-poker__section,
    .page-poker__card,
    .page-poker__container,
    .page-poker__hero-image-wrapper,
    .page-poker__image-block,
    .page-poker__mobile-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Ensure no overflow from content */
    }

    /* Fixed header spacing for video section (if present) */
    .page-poker__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
}

/* Ensure content area images are not too small */
.page-poker__content-image,
.page-poker__bonus-image {
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}