/* style/poker.css */

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

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

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    padding: 80px 0;
    background-color: #0A2463; /* Primary brand color background for hero */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-poker__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-poker__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Secondary color for emphasis */
    line-height: 1.2;
}

.page-poker__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-poker__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    opacity: 0.2; /* Subtle background */
    display: block;
}

/* Buttons */
.page-poker__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 180px; /* Ensure button minimum width */
    text-align: center;
    font-size: 1.1em;
}

.page-poker__btn--primary {
    background-color: #FFD700; /* Secondary color */
    color: #0A2463; /* Primary color text */
    border: 2px solid #FFD700;
}

.page-poker__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-poker__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Secondary color text */
    border: 2px solid #FFD700;
}

.page-poker__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
}

.page-poker__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 120px;
}

.page-poker__btn--text {
    background: none;
    border: none;
    color: #0A2463;
    padding: 0;
    text-decoration: underline;
    font-weight: normal;
    min-width: unset;
}

.page-poker__btn--text:hover {
    color: #FFD700;
}

/* Section common styles */
.page-poker__section-title {
    font-size: 2.5em;
    color: #0A2463;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
}

.page-poker__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* About Section */
.page-poker__about-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

.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 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-poker__feature-title {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-poker__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Games Section */
.page-poker__games-section {
    padding: 80px 0;
}

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

.page-poker__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.page-poker__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-poker__game-title {
    font-size: 1.4em;
    color: #0A2463;
    margin-bottom: 10px;
    padding: 0 20px;
    text-align: center;
}

.page-poker__game-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1; /* Allows text to expand and push button to bottom */
}

/* Tournaments Section */
.page-poker__tournaments-section {
    padding: 80px 0;
    background-color: #0A2463;
    color: #ffffff;
}

.page-poker__tournaments-section .page-poker__section-title {
    color: #FFD700;
}

.page-poker__tournaments-section .page-poker__section-description {
    color: #f0f0f0;
}

.page-poker__tournament-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
}

.page-poker__tournament-highlight img {
    flex: 1 1 400px; /* Min width for image, min 200px */
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    display: block;
    min-width: 200px; /* Ensure minimum display size */
    min-height: 200px;
    object-fit: cover;
}

.page-poker__tournament-details {
    flex: 1 1 400px;
    max-width: 50%;
}

.page-poker__tournament-name {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-poker__tournament-info {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Strategy Section */
.page-poker__strategy-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-poker__strategy-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.page-poker__strategy-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-poker__strategy-title {
    font-size: 1.4em;
    color: #0A2463;
    margin-bottom: 10px;
    padding: 0 20px;
    text-align: center;
}

.page-poker__strategy-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1;
}

/* Bonuses Section */
.page-poker__bonuses-section {
    padding: 80px 0;
}

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

.page-poker__bonus-card {
    background-color: #0A2463;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
}

.page-poker__bonus-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency, min 200px */
    object-fit: cover;
    display: block;
    margin-bottom: 25px;
}

.page-poker__bonus-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    padding: 0 20px;
    text-align: center;
}

.page-poker__bonus-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 30px;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 80px 0;
}

.page-poker__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

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

.page-poker__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
}

/* Call to Action Section */
.page-poker__cta-section {
    padding: 80px 0;
    background-color: #0A2463;
    color: #ffffff;
    text-align: center;
}

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

.page-poker__cta-section .page-poker__section-description {
    color: #f0f0f0;
}

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


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

    .page-poker__section-title {
        font-size: 2em;
    }

    .page-poker__tournament-highlight {
        flex-direction: column;
        text-align: center;
    }

    .page-poker__tournament-highlight img,
    .page-poker__tournament-details {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-poker__hero-section {
        padding: 60px 0;
    }

    .page-poker__hero-title {
        font-size: 2.2em;
    }

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

    .page-poker__btn {
        padding: 12px 25px;
        font-size: 1em;
        min-width: unset;
    }

    .page-poker__section-title {
        font-size: 1.8em;
    }

    .page-poker__section-description {
        font-size: 0.95em;
    }

    .page-poker__about-section,
    .page-poker__games-section,
    .page-poker__tournaments-section,
    .page-poker__strategy-section,
    .page-poker__bonuses-section,
    .page-poker__responsible-gaming-section,
    .page-poker__faq-section,
    .page-poker__cta-section {
        padding: 50px 0;
    }

    .page-poker__features-grid,
    .page-poker__game-cards-grid,
    .page-poker__strategy-grid,
    .page-poker__bonus-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-poker__game-card img,
    .page-poker__strategy-card img,
    .page-poker__bonus-card img {
        height: 200px; /* Ensure minimum display height for mobile */
        max-width: 100%; /* Prevent overflow */
    }

    .page-poker__tournament-highlight img {
        min-width: 200px;
        min-height: 200px;
        max-width: 100%; /* Prevent overflow */
    }

    .page-poker__hero-actions,
    .page-poker__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-poker__btn {
        width: 80%; /* Make buttons full width on small screens */
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Ensure all images within .page-poker are at least 200px wide/high */
.page-poker img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Important for preventing distortion if aspect ratio changes */
    max-width: 100%; /* Ensures responsiveness and prevents overflow */
    height: auto; /* Ensures aspect ratio is maintained */
}
/* Override specific image sizes that are smaller than 200px */
.page-poker__game-card img,
.page-poker__strategy-card img,
.page-poker__bonus-card img {
    min-width: 200px;
    min-height: 200px;
    /* Specific heights are set in desktop, but min-height ensures compliance */
}

/* No CSS filters allowed for images */
.page-poker img {
    filter: none !important; /* Explicitly ensure no filters are applied */
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    .page-poker {
        overflow-x: hidden;
    }
    .page-poker__container {
        padding: 0 15px;
    }
}