/* style/poker.css */

/* Variables for consistent styling */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg-color: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-dark: #333333;
    --text-light: #ffffff;
    --max-content-width: 1200px;
}

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

/* Fixed header spacing for main content */
.page-poker__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-poker__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 20px;
}

.page-poker__hero-image-container {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-poker__hero-text-block {
    text-align: center;
    max-width: 800px;
}

.page-poker__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

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

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

.page-poker__btn-primary,
.page-poker__btn-secondary,
.page-poker__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto; /* Default for desktop */
}

.page-poker__btn-primary {
    background: var(--button-gradient);
    color: var(--background-color); /* Dark text for light button gradient */
    border: none;
    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(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.2);
}

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

.page-poker__btn-tertiary {
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
}

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

.page-poker__btn-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.page-poker__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    text-align: center;
    width: fit-content;
}

.page-poker__container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-poker__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.page-poker__section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-main-color);
}

.page-poker__sub-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.page-poker__about-section,
.page-poker__getting-started-section,
.page-poker__game-variants-section,
.page-poker__promotions-section,
.page-poker__mobile-section,
.page-poker__responsible-gaming-section,
.page-poker__faq-section,
.page-poker__cta-bottom-section {
    padding: 60px 0;
}

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

.page-poker__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    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);
}

.page-poker__card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-poker__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* About Section Grid */
.page-poker__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-poker__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
}

/* Getting Started Steps */
.page-poker__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-poker__step-card .page-poker__card-title {
    margin-top: 10px;
}

.page-poker__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(255, 211, 107, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid var(--secondary-color);
}

/* Game Variants Section */
.page-poker__game-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-poker__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-poker__strategy-block {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-poker__strategy-block .page-poker__sub-section-title {
    margin-bottom: 25px;
}

.page-poker__text-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

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

.page-poker__strategy-list li {
    background: rgba(255, 211, 107, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
}

.page-poker__strategy-list li strong {
    color: var(--secondary-color);
}

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

.page-poker__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Mobile Section */
.page-poker__mobile-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-poker__mobile-text-content {
    flex: 1;
    text-align: left;
}

.page-poker__mobile-text-content .page-poker__section-title {
    text-align: left;
}

.page-poker__mobile-text-content .page-poker__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-poker__mobile-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-poker__mobile-features li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-poker__mobile-features li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-poker__mobile-image-container {
    flex: 1;
    text-align: center;
}

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

/* Responsible Gaming Section */
.page-poker__responsible-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto 50px auto;
}

.page-poker__responsible-list li {
    background: rgba(242, 193, 78, 0.05);
    border-left: 3px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
}

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

.page-poker__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-poker__faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: bold;
    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;
}

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

.page-poker__faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
    margin: 0;
}

.page-poker__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-poker__cta-bottom-section {
    background: linear-gradient(135deg, var(--card-bg-color), rgba(17, 17, 17, 0.8));
    text-align: center;
    padding: 80px 0;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-poker__mobile-layout {
        flex-direction: column;
        text-align: center;
    }

    .page-poker__mobile-text-content {
        text-align: center;
    }

    .page-poker__mobile-text-content .page-poker__section-title,
    .page-poker__mobile-text-content .page-poker__section-description {
        text-align: center;
    }

    .page-poker__mobile-features {
        text-align: left; /* Keep list items left-aligned */
        margin: 30px auto;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .page-poker__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Adjust for mobile header */
    }

    .page-poker__hero-content-wrapper {
        padding: 15px;
    }

    .page-poker__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-poker__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary,
    .page-poker__btn-tertiary,
    .page-poker a[class*="button"],
    .page-poker a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-poker__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-poker__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-poker__section-description {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .page-poker__sub-section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .page-poker__card {
        padding: 20px;
    }

    .page-poker__card-title {
        font-size: 1.3rem;
    }

    .page-poker__card-text {
        font-size: 0.95rem;
    }

    .page-poker__features-grid,
    .page-poker__steps-grid,
    .page-poker__game-type-cards,
    .page-poker__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-poker__game-image,
    .page-poker__promo-image {
        height: 180px;
    }

    .page-poker__mobile-image {
        width: 100%;
        height: auto;
    }

    .page-poker__faq-question {
        padding: 15px 20px;
    }

    .page-poker__faq-question h3 {
        font-size: 1.1rem;
    }

    .page-poker__faq-answer {
        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-content-wrapper,
    .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 and padding-right are handled by .page-poker__container and .page-poker__cta-buttons directly */
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-poker__main-title {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
    }

    .page-poker__hero-description {
        font-size: 0.9rem;
    }

    .page-poker__section-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .page-poker__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .page-poker__card-title {
        font-size: 1.2rem;
    }

    .page-poker__card-text,
    .page-poker__text-content,
    .page-poker__strategy-list li,
    .page-poker__responsible-list li,
    .page-poker__mobile-features li,
    .page-poker__faq-answer p {
        font-size: 0.9rem;
    }
}