/* style/poker.css */

/* Base styles for the poker page */
.page-poker {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Explicit background color */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-poker__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-poker__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45; /* Login button color for accent */
    border-radius: 2px;
}

.page-poker__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-poker__inline-link {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}

.page-poker__inline-link:hover {
    color: #FCBC45;
}

/* Buttons */
.page-poker__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    border: none;
}

.page-poker__btn--primary {
    background-color: #000000;
    color: #FFFFFF;
}

.page-poker__btn--primary:hover {
    background-color: #333333;
    color: #FCBC45;
}

.page-poker__btn--secondary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-poker__btn--secondary:hover {
    background-color: #e0a538;
    color: #FFFFFF;
}

.page-poker__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-poker__btn--cta {
    font-size: 1.5em;
    padding: 15px 35px;
    margin-top: 30px;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-poker__btn--cta:hover {
    background-color: #e0a538;
    color: #FFFFFF;
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text for dark/image background */
    padding: 0; /* Hero image will fill the space */
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability, NO COLOR CHANGE */
}

.page-poker__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    padding: 20px;
    box-sizing: border-box;
}

.page-poker__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-poker__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

/* About Section */
.page-poker__about-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

/* Game Types Section */
.page-poker__game-types {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-poker__game-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-poker__game-card:hover {
    transform: translateY(-5px);
}

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

.page-poker__card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-poker__card-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 15px;
}

/* Features Section */
.page-poker__features-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-poker__feature-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.page-poker__feature-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-poker__feature-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Strategy Section */
.page-poker__strategy-section {
    padding: 60px 0;
    background-color: #f0f0f0;
    color: #333333;
}

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

.page-poker__strategy-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-poker__strategy-card:hover {
    transform: translateY(-5px);
}

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

/* Live Section */
.page-poker__live-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
    text-align: center;
}

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

.page-poker__action-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* How to Start Section */
.page-poker__how-to-start {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-poker__step-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-poker__step-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
}

.page-poker__step-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-poker__faq-list {
    margin-top: 40px;
}

.page-poker__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-poker__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.page-poker__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.page-poker__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-poker__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-poker__faq-answer.active {
    display: block;
}

/* CTA Section */
.page-poker__cta-section {
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-poker__cta-section .page-poker__section-title {
    color: #FFFFFF;
}

.page-poker__cta-section .page-poker__section-title::after {
    background-color: #FCBC45;
}

.page-poker__cta-section .page-poker__text-content {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-poker__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-poker__hero-title {
        font-size: 3em;
    }
    .page-poker__hero-description {
        font-size: 1.2em;
    }
    .page-poker__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-poker {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-poker__hero-title {
        font-size: 2.5em;
    }
    .page-poker__hero-description {
        font-size: 1em;
    }
    .page-poker__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-poker__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-poker__section-title {
        font-size: 1.8em;
    }
    .page-poker__text-content {
        font-size: 1em;
    }
    .page-poker__game-grid,
    .page-poker__features-grid,
    .page-poker__strategy-grid,
    .page-poker__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-poker__game-image,
    .page-poker__strategy-image {
        height: auto; /* Allow image to scale */
        min-height: 200px; /* Ensure minimum size */
    }
    /* Critical: Ensure images don't overflow on mobile */
    .page-poker__container img,
    .page-poker__game-image,
    .page-poker__strategy-image,
    .page-poker__live-image,
    .page-poker__cta-image {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content area does not cause horizontal scroll */
    .page-poker__container {
        overflow-x: hidden;
    }
    .page-poker__action-center {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-poker__hero-title {
        font-size: 2em;
    }
    .page-poker__btn--cta {
        font-size: 1.2em;
        padding: 12px 25px;
    }
    .page-poker__faq-question {
        font-size: 1.1em;
    }
}

/* Image specific CSS to ensure min-width/height */
/* Any selector that can select an img under .page-poker must ensure min-size 200px */
.page-poker img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for smaller cards if needed, ensuring minimums */
.page-poker__game-image {
    width: 100%; /* Will be capped by parent container max-width */
    height: 250px; /* Fixed height for consistency, will be overridden by auto on mobile */
    object-fit: cover;
}

.page-poker__strategy-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency, will be overridden by auto on mobile */
    object-fit: cover;
}

/* Ensure no filter is used to change image colors */
/* filter: brightness() is allowed if it does not change color, only luminance */
/* filter: invert(), sepia(), hue-rotate(), saturate() are strictly forbidden */
.page-poker__hero-image {
    filter: brightness(0.6); /* Allowed for readability, not color change */
}
/* No other images should have filters */
.page-poker__game-image,
.page-poker__strategy-image,
.page-poker__live-image,
.page-poker__cta-image {
    filter: none; /* Explicitly ensure no filters */
}