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

.page-poker {
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--main-bg);
    font-family: Arial, sans-serif;
}

.page-poker__section-spacing {
    padding: 60px 0;
}

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

.page-poker__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-poker__section-subtitle {
    font-size: 1.2em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

.page-poker__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-poker__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

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

.page-poker__btn-primary {
    background: var(--button-gradient);
    color: #000000; /* Ensure contrast on gradient */
    border: none;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

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

.page-poker__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--card-bg);
    transform: translateY(-2px);
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--main-bg);
}

.page-poker__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.page-poker__hero-content-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -150px; /* Adjust to slightly overlap the image, but text is below */
    background: rgba(10, 10, 10, 0.7); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.page-poker__main-title {
    font-size: clamp(2.5em, 4.5vw, 3.8em);
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-poker__hero-description {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

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

/* Intro Section */
.page-poker__intro-section {
    background-color: var(--main-bg);
}

.page-poker__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-poker__text-block p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-poker__image-item {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Features Section */
.page-poker__features-section {
    background-color: var(--main-bg);
}

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

.page-poker__feature-item {
    text-align: center;
}

.page-poker__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.page-poker__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-poker__feature-item p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
}

/* Games Section */
.page-poker__games-section {
    background-color: var(--main-bg);
}

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

.page-poker__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-poker__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-poker__game-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-poker__game-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-poker__game-btn {
    margin-top: auto;
}

/* Promo Section */
.page-poker__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-poker__promo-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-poker__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-poker__promo-details {
    text-align: left;
}

.page-poker__promo-heading {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-poker__promo-text {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.page-poker__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-poker__promo-list li {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-main);
    position: relative;
    padding-left: 30px;
}

.page-poker__promo-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    color: var(--glow-color);
}

/* Guide Section */
.page-poker__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-poker__step-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-poker__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--glow-color);
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-poker__step-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-poker__step-item p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
}

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

/* Mobile Section */
.page-poker__mobile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-poker__mobile-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Security Section */
.page-poker__security-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-poker__security-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-poker__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-poker__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: var(--text-main);
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    background-color: rgba(242, 193, 78, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-poker__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.page-poker__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
    transform: rotate(0deg); /* No rotation for '-' */
}

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
}

.page-poker__faq-item.active .page-poker__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 30px;
}

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

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

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

/* Media Queries */
@media (min-width: 769px) {
    .page-poker__content-grid,
    .page-poker__promo-content,
    .page-poker__mobile-content,
    .page-poker__security-content {
        grid-template-columns: 1fr 1fr;
    }

    .page-poker__hero-content-wrapper {
        margin-top: -200px; /* More overlap on larger screens */
        padding: 60px 40px;
    }
    
    .page-poker__mobile-content .page-poker__image-block {
        order: 1; /* Image first on desktop */
    }

    .page-poker__mobile-content .page-poker__text-block {
        order: 2;
        text-align: right;
    }

    .page-poker__mobile-buttons {
        justify-content: flex-end;
    }
}

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

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

    .page-poker__card {
        padding: 20px;
    }

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

    .page-poker__hero-content-wrapper {
        margin-top: -100px; /* Less overlap on mobile */
        padding: 25px 20px;
    }

    .page-poker__hero-buttons,
    .page-poker__guide-cta,
    .page-poker__cta-buttons,
    .page-poker__mobile-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-poker__section-spacing {
        padding: 40px 0;
    }

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

    .page-poker__hero-image-wrapper,
    .page-poker__content-grid,
    .page-poker__features-grid,
    .page-poker__game-cards-grid,
    .page-poker__promo-content,
    .page-poker__guide-steps,
    .page-poker__mobile-content,
    .page-poker__security-content,
    .page-poker__faq-list,
    .page-poker__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Specific override for game card image height on mobile */
    .page-poker__game-image {
        height: 180px; 
    }

    .page-poker__hero-image {
        max-height: 400px; /* Limit hero image height on mobile */
    }

    .page-poker__feature-icon {
        width: 48px;
        height: 48px;
    }

    /* FAQ items padding on mobile */
    .page-poker__faq-question,
    .page-poker__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-poker__faq-item.active .page-poker__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
}