/* style/poker.css */

/* Base styles for the poker page content */
.page-poker {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8; /* Light background if image has transparency */
    padding-bottom: 60px; /* Space below content */
}

.page-poker__hero-image {
    display: block;
    width: 100%;
    height: auto; /* Responsive image */
    object-fit: cover;
}

.page-poker__hero-container {
    position: relative;
    max-width: 100%; /* Ensure it doesn't cause horizontal scroll */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-poker__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff; /* White text over dark/rich image */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
    padding: 40px;
    border-radius: 10px;
    max-width: 80%;
    box-sizing: border-box;
}

.page-poker__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-poker__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-poker__cta-button {
    display: inline-block;
    background-color: #8B0000; /* Dark Red button */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-poker__cta-button:hover {
    background-color: #a30000; /* Slightly lighter red on hover */
    transform: translateY(-2px);
}

.page-poker__cta-button--centered {
    display: block;
    margin: 40px auto;
    text-align: center;
}

.page-poker__cta-button--large {
    padding: 20px 40px;
    font-size: 1.3em;
}

/* Section Titles */
.page-poker__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark red for section titles */
    text-align: center;
    margin-bottom: 50px;
    padding-top: 40px;
    border-bottom: 3px solid #FFD700; /* Gold underline */
    display: inline-block;
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.page-poker__section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* About Section & General Grid */
.page-poker__about-section,
.page-poker__games-section,
.page-poker__how-to-play-section,
.page-poker__promotions-section,
.page-poker__faq-section,
.page-poker__cta-bottom-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for sections */
}

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

.page-poker__card {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-poker__card-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold for card titles */
    margin-bottom: 15px;
}

.page-poker__card-text {
    font-size: 1em;
    color: #666666;
}

/* Games Section */
.page-poker__grid--games {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-poker__game-card {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-poker__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-poker__game-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-poker__game-title {
    font-size: 1.8em;
    color: #8B0000; /* Dark red for game titles */
    margin-bottom: 10px;
}

.page-poker__game-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-poker__game-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #333333; /* Dark text on gold */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-poker__game-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
}

/* How to Play Section */
.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: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-poker__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #8B0000; /* Dark red background */
    color: #FFD700; /* Gold text */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #FFD700; /* Gold border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-poker__step-title {
    font-size: 1.4em;
    color: #8B0000; /* Dark red for step titles */
    margin-bottom: 15px;
}

.page-poker__step-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

.page-poker__step-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #333333; /* Dark text on gold */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-poker__step-button:hover {
    background-color: #e6c200;
}

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

.page-poker__promo-card {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-poker__promo-image {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-poker__promo-title {
    font-size: 1.6em;
    color: #8B0000; /* Dark red for promo titles */
    margin: 20px 15px 10px;
}

.page-poker__promo-text {
    font-size: 1em;
    color: #666666;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-poker__promo-button {
    display: inline-block;
    background-color: #8B0000; /* Dark Red button */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    border: none;
    cursor: pointer;
}

.page-poker__promo-button:hover {
    background-color: #a30000;
}

/* FAQ Section */
.page-poker__faq-item {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-poker__faq-question {
    font-size: 1.3em;
    color: #FFD700; /* Gold for FAQ questions */
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-poker__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #8B0000;
}

.page-poker__faq-question.active::after {
    content: '-';
}

.page-poker__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.page-poker__faq-answer.open {
    max-height: 200px; /* Adjust as needed for content length */
    padding-top: 15px;
}

/* Bottom CTA Section */
.page-poker__cta-bottom-section {
    background-color: #8B0000; /* Dark red background for strong CTA */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-poker__cta-bottom-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold title */
    margin-bottom: 25px;
}

.page-poker__cta-bottom-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__hero-title {
        font-size: 2.8em;
    }
    .page-poker__section-title {
        font-size: 2em;
    }
    .page-poker__cta-bottom-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-poker {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-poker__hero-content {
        padding: 30px;
        max-width: 90%;
    }
    .page-poker__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-poker__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-poker__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-poker__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-poker__section-description {
        font-size: 1em;
    }
    .page-poker__game-image,
    .page-poker__promo-image {
        height: auto; /* Allow auto height to scale with max-width */
        min-width: 200px; /* Minimum width for content images */
        min-height: 200px; /* Minimum height for content images */
    }
    /* Mobile content area images must be responsive */
    .page-poker img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure hero image maintains its aspect ratio while being responsive */
    .page-poker__hero-image {
        width: 100%;
        height: auto;
    }
}

/* Ensure no images smaller than 200px in content area on desktop either */
/* These are already handled in specific image classes, adding a general override to be safe */
.page-poker img:not(.page-poker__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
.page-poker__hero-image {
    width: 100%;
    height: auto;
}