/* style/poker.css */

/* Variables based on custom color palette */
:root {
    --poker-primary-color: #F2C14E;
    --poker-secondary-color: #FFD36B;
    --poker-background-color: #0A0A0A; /* Main background, for sections */
    --poker-card-bg: #111111;
    --poker-text-main: #FFF6D6;
    --poker-border-color: #3A2A12;
    --poker-glow-color: #FFD36B;
    --poker-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the poker page content */
.page-poker {
    font-family: Arial, sans-serif;
    color: var(--poker-text-main); /* Light text for dark background */
    line-height: 1.6;
    background-color: transparent; /* Body background from shared.css */
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

.page-poker__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-poker__dark-section {
    background-color: var(--poker-background-color);
    color: var(--poker-text-main);
}

.page-poker__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent inner padding */
    box-sizing: border-box;
}

/* Typography */
.page-poker__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    font-weight: 700;
    color: var(--poker-secondary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-poker__sub-title,
.page-poker__card-title,
.page-poker__feature-title,
.page-poker__step-title,
.page-poker__faq-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--poker-text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-poker__hero-description,
.page-poker__section-text,
.page-poker__text-block,
.page-poker__card-description,
.page-poker__feature-description,
.page-poker__step-description,
.page-poker p,
.page-poker li {
    font-size: 1.1rem;
    color: var(--poker-text-main);
    margin-bottom: 15px;
}

/* Buttons */
.page-poker__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-poker__btn-primary {
    background: var(--poker-button-gradient);
    color: #ffffff; /* White text for gradient button */
    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(--poker-primary-color);
    border: 2px solid var(--poker-primary-color);
}

.page-poker__btn-secondary:hover {
    background: var(--poker-primary-color);
    color: var(--poker-background-color);
    transform: translateY(-3px);
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0; /* Handled by body and hero content */
    min-height: 70vh;
    overflow: hidden;
    margin-bottom: 20px;
    padding-top: 10px; /* Small top padding */
}

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

.page-poker__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-poker__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-poker__game-card {
    background-color: var(--poker-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--poker-border-color);
}

.page-poker__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-poker__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

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

.page-poker__feature-item {
    background-color: var(--poker-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--poker-border-color);
}

.page-poker__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-poker__feature-icon {
    width: 250px; /* Adjusted to meet min size */
    height: 200px; /* Adjusted to meet min size */
    object-fit: cover; /* Use cover for better visual */
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Steps Cards */
.page-poker__step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-poker__step-card {
    background-color: var(--poker-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--poker-border-color);
}

.page-poker__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-poker__step-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

/* Responsible Gaming Section */
.page-poker__responsible-gaming-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

/* FAQ Section */
.page-poker__faq-list {
    margin-top: 40px;
}

.page-poker__faq-item {
    background-color: var(--poker-card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--poker-border-color);
    overflow: hidden; /* For smooth max-height transition */
}

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

.page-poker__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-poker__faq-title {
    margin: 0;
    color: var(--poker-text-main);
    font-size: 1.2rem;
    font-weight: 600;
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--poker-primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
    transform: rotate(0deg); /* No rotation for '-' */
}

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--poker-text-main);
}

.page-poker__faq-item.active .page-poker__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 30px;
}

.page-poker__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Padding for paragraph within answer */
}

/* No CSS filters for images */
.page-poker img:not(.page-poker__hero-image) {
    filter: none; /* Ensure no filters are applied, except for hero image brightness */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__section {
        padding: 40px 15px;
    }
    .page-poker__hero-content {
        padding: 30px 15px;
    }
    .page-poker__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-poker__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-poker__sub-title,
    .page-poker__card-title,
    .page-poker__feature-title,
    .page-poker__step-title,
    .page-poker__faq-title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }
}

@media (max-width: 768px) {
    .page-poker {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-poker__hero-section {
        min-height: 60vh;
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-poker__hero-content {
        padding: 20px 15px;
    }
    .page-poker__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-poker__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-poker__btn-primary,
    .page-poker__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image adaptation */
    .page-poker img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-poker__section,
    .page-poker__container,
    .page-poker__game-card,
    .page-poker__feature-item,
    .page-poker__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-poker__game-image,
    .page-poker__feature-icon,
    .page-poker__step-image,
    .page-poker__responsible-gaming-image {
        min-width: 100% !important;
        height: auto !important;
    }
    .page-poker__game-cards,
    .page-poker__feature-grid,
    .page-poker__step-cards {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-poker__faq-question {
        padding: 15px 20px;
    }
    .page-poker__faq-answer {
        padding: 0 20px;
    }
    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-poker__section {
        padding: 30px 10px;
    }
    .page-poker__container {
        padding: 0 10px;
    }
    .page-poker__hero-content {
        padding: 15px 10px;
    }
    .page-poker__main-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }
    .page-poker__section-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }
    .page-poker__btn-primary,
    .page-poker__btn-secondary {
        font-size: 1rem;
        padding: 10px 15px;
    }
    .page-poker__faq-question {
        padding: 12px 15px;
    }
    .page-poker__faq-title {
        font-size: 1rem;
    }
    .page-poker__faq-toggle {
        font-size: 1.5rem;
    }
    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 10px 15px;
    }
}