/* 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 body background */
    background-color: var(--background-color, #ffffff); /* Ensure light background for text readability */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

.page-poker__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-poker__section-title {
    font-size: 2.8em;
    color: #000000;
    margin-bottom: 30px;
    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;
    border-radius: 2px;
}

.page-poker__text-content {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

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

.page-poker__button--register {
    background-color: #000000; /* Main color for primary action */
    color: #FFFFFF; /* White text for dark button */
    margin-right: 15px;
}

.page-poker__button--register:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-poker__button--login {
    background-color: #FCBC45; /* Login specific color */
    color: #000000; /* Dark text for light button */
}

.page-poker__button--login:hover {
    background-color: #e0a53a;
    transform: translateY(-2px);
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for hero */
}

.page-poker__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-poker__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
}

.page-poker__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin: 20px;
}

.page-poker__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45;
    line-height: 1.2;
}

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

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

/* About Section */
.page-poker__about-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    max-width: 100%;
}

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

.page-poker__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-poker__feature-card:hover {
    transform: translateY(-10px);
}

.page-poker__feature-icon {
    width: 400px; /* Match HTML width */
    height: 300px; /* Match HTML height */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-poker__feature-description {
    font-size: 1em;
    color: #666666;
}

/* Games Section */
.page-poker__games-section {
    padding: 80px 20px;
    background-color: #ffffff;
    max-width: 100%;
}

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

.page-poker__game-card {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-poker__game-image {
    width: 400px; /* Match HTML width */
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.page-poker__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
}

.page-poker__button--learn-more:hover {
    background-color: #333333;
}

/* Tournaments Section */
.page-poker__tournaments-section {
    padding: 80px 20px;
    background-color: #f0f0f0;
    max-width: 100%;
}

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

.page-poker__highlight-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-poker__highlight-card:hover {
    transform: translateY(-10px);
}

.page-poker__highlight-image {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-poker__highlight-description {
    font-size: 1em;
    color: #666666;
}

.page-poker__cta-bottom {
    margin-top: 50px;
}

.page-poker__button--view-promo {
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-poker__button--view-promo:hover {
    background-color: #e0a53a;
}

/* Bonuses Section */
.page-poker__bonuses-section {
    padding: 80px 20px;
    background-color: #ffffff;
    max-width: 100%;
}

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

.page-poker__promo-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-poker__promo-card:hover {
    transform: translateY(-10px);
}

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

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

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

.page-poker__button--claim {
    background-color: #000000;
    color: #FFFFFF;
}

.page-poker__button--claim:hover {
    background-color: #333333;
}

/* Getting Started Section */
.page-poker__get-started-section {
    padding: 80px 20px;
    background-color: #000000; /* Dark background for this section */
    color: #f0f0f0; /* Light text */
    max-width: 100%;
}

.page-poker__get-started-section .page-poker__section-title {
    color: #FCBC45; /* Highlight title on dark background */
}

.page-poker__get-started-section .page-poker__text-content {
    color: #cccccc;
}

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

.page-poker__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-poker__step-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-poker__button--step-action {
    background-color: #FCBC45;
    color: #000000;
}

.page-poker__button--step-action:hover {
    background-color: #e0a53a;
}

/* Final CTA Section */
.page-poker__cta-final-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    max-width: 100%;
}

.page-poker__final-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-poker__button--register-large {
    background-color: #000000;
    color: #FFFFFF;
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-poker__button--register-large:hover {
    background-color: #333333;
}

.page-poker__button--contact {
    background-color: #cccccc;
    color: #000000;
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-poker__button--contact:hover {
    background-color: #aaaaaa;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-poker__hero-title {
        font-size: 3em;
    }
    .page-poker__section-title {
        font-size: 2.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: 1.1em;
    }
    .page-poker__section-title {
        font-size: 1.8em;
    }
    .page-poker__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-poker__button {
        width: 100%;
        max-width: 250px;
    }
    .page-poker__hero-content {
        padding: 20px;
    }
    .page-poker__features-grid,
    .page-poker__game-cards-grid,
    .page-poker__tournament-highlights,
    .page-poker__promo-grid,
    .page-poker__steps-grid {
        grid-template-columns: 1fr;
    }
    /* Enforce min-size for content images, but allow scaling down */
    .page-poker img:not(.shared-header img):not(.shared-footer img) {
        min-width: 200px; /* Base min-width */
        min- /* Base min-height */
        max-width: 100%; /* Allow scaling down */
        height: auto; /* Maintain aspect ratio */
    }
    .page-poker__feature-icon,
    .page-poker__game-image,
    .page-poker__highlight-image,
    .page-poker__promo-image {
        width: 100%; /* Take full width of parent */
        max-width: 400px; /* Limit max width for smaller screens */
        margin-left: auto;
        margin-right: auto;
        height: auto; /* Allow auto height for responsive scaling */
    }
    .page-poker__final-actions {
        flex-direction: column;
        gap: 15px;
    }
}

/* Ensure no image filter is used */
.page-poker img {
    filter: none !important;
}

/* Content area image CSS dimensions lower bound (according to scope, not class name) */
/* Any selector that can select any img under .page-poker must not make the display size smaller than 200px */
.page-poker img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}

/* Adjust specific image elements to match HTML width/height on desktop and be responsive on mobile */
.page-poker__feature-icon {
    width: 400px;
    height: 300px;
    object-fit: contain;
}
.page-poker__game-image,
.page-poker__highlight-image,
.page-poker__promo-image {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

/* Mobile specific overrides for image display */
@media (max-width: 768px) {
    .page-poker__feature-icon,
    .page-poker__game-image,
    .page-poker__highlight-image,
    .page-poker__promo-image {
        width: 100%; /* Scale to full width of parent */
        height: auto; /* Maintain aspect ratio */
        max-width: 100%; /* Crucial to prevent horizontal overflow */
    }
    .page-poker__feature-icon {
        max-height: 300px; /* Limit max height if width scales down */
    }
    .page-poker__game-image,
    .page-poker__highlight-image,
    .page-poker__promo-image {
        max-height: 250px; /* Limit max height if width scales down */
    }
}