/* style/poker.css */

/* Variables from custom color scheme */
:root {
    --nustar-primary-color: #F2C14E; /* Main */
    --nustar-secondary-color: #FFD36B; /* Auxiliary */
    --nustar-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button specific gradient, but prompt has explicit primary/secondary button colors */
    --nustar-card-bg: #111111;
    --nustar-site-bg: #0A0A0A; /* From prompt: Body background #0A0A0A */
    --nustar-text-main: #FFF6D6;
    --nustar-border-color: #3A2A12;
    --nustar-glow-color: #FFD36B;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-poker {
    color: var(--nustar-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--nustar-site-bg); /* Ensure main content area matches body background if not explicitly white */
}

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

/* Headings */
.page-poker__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size, not fixed large */
    font-weight: 700;
    line-height: 1.2;
    color: var(--nustar-secondary-color); /* Use a bright color for H1 */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow */
}

.page-poker__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--nustar-secondary-color);
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.page-poker__sub-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--nustar-primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-poker__feature-title,
.page-poker__game-title,
.page-poker__promo-title,
.page-poker__security-title,
.page-poker__info-title,
.page-poker__faq-question h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--nustar-text-main);
    margin-bottom: 10px;
}

.page-poker p {
    margin-bottom: 15px;
    color: var(--nustar-text-main);
}

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-poker__btn-primary {
    background: var(--nustar-primary-color); /* Explicitly #F2C14E */
    color: #ffffff; /* Explicitly white */
    border: 2px solid transparent;
}

.page-poker__btn-primary:hover {
    background: #e0b045; /* Slightly darker primary on hover */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-poker__btn-secondary {
    background: #ffffff; /* Explicitly white */
    color: var(--nustar-primary-color); /* Explicitly #F2C14E */
    border: 2px solid var(--nustar-primary-color);
}

.page-poker__btn-secondary:hover {
    background: var(--nustar-primary-color);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-poker__btn-inline {
    margin-top: 20px;
    margin-right: 15px;
}

.page-poker__btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Cards & Sections */
.page-poker__card {
    background-color: var(--nustar-card-bg); /* #111111 */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nustar-border-color); /* #3A2A12 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure cards in grid have equal height */
    box-sizing: border-box;
}

.page-poker__dark-section {
    background-color: var(--nustar-site-bg); /* Matches body, ensuring dark background */
    padding: 60px 0;
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Ensure image above text */
    align-items: center;
    background-color: var(--nustar-site-bg);
}

.page-poker__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure hero image has a decent minimum height */
}

.page-poker__hero-content-wrapper {
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

.page-poker__tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--nustar-text-main);
}

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

/* About Section */
.page-poker__about-section {
    padding: 60px 0;
}

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

.page-poker__feature-image {
    width: 200px; /* Enforced min size */
    height: 200px; /* Enforced min size */
    object-fit: contain; /* Ensure full image is visible */
    margin-bottom: 15px;
}

/* Games Section */
.page-poker__games-section {
    padding: 60px 0;
    background-color: var(--nustar-site-bg);
}

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

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

/* Promotion Section */
.page-poker__promo-section {
    padding: 60px 0;
}

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

/* Security Section */
.page-poker__security-section {
    padding: 60px 0;
    background-color: var(--nustar-site-bg);
}

.page-poker__security-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.page-poker__security-item {
    flex: 1;
    min-width: 280px;
    max-width: 45%; /* Adjust for two columns on wider screens */
    box-sizing: border-box;
    padding: 20px;
    background-color: var(--nustar-card-bg);
    border-radius: 12px;
    border: 1px solid var(--nustar-border-color);
}

.page-poker__security-image {
    width: 200px; /* Enforced min size */
    height: 200px; /* Enforced min size */
    object-fit: contain;
    margin-bottom: 15px;
}

/* Mobile Section */
.page-poker__mobile-section {
    padding: 60px 0;
    background-color: var(--nustar-site-bg);
}

.page-poker__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-poker__mobile-text {
    flex: 1;
}

.page-poker__mobile-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.page-poker__mobile-image {
    width: 100%;
    max-width: 400px; /* Max width for the phone image */
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--nustar-border-color);
}

/* Support & Payment Section */
.page-poker__support-payment-section {
    padding: 60px 0;
    background-color: var(--nustar-site-bg);
}

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

/* CTA Banner */
.page-poker__cta-banner {
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('[GALLERY:bg:1920x400:nustar poker background,abstract,golden,dark,philippines]'); /* Use a background image for impact */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: #ffffff;
}

.page-poker__cta-banner .page-poker__section-title {
    color: var(--nustar-secondary-color);
    margin-bottom: 20px;
}

.page-poker__cta-banner .page-poker__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 60px 0;
    background-color: var(--nustar-site-bg);
}

.page-poker__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker__faq-item {
    background-color: var(--nustar-card-bg);
    border: 1px solid var(--nustar-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--nustar-card-bg);
    color: var(--nustar-text-main);
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: rgba(255, 211, 107, 0.1); /* Subtle hover */
}

.page-poker__faq-question h3 {
    margin: 0;
    color: var(--nustar-text-main);
    font-size: clamp(1rem, 2vw, 1.2rem);
    flex-grow: 1;
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--nustar-primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus) */
}

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #1a1a1a; /* Slightly lighter than card bg for answer */
    color: var(--nustar-text-main);
}

.page-poker__faq-item.active .page-poker__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px 25px 25px;
}

.page-poker__faq-answer p {
    margin-bottom: 0;
    color: var(--nustar-text-main);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__hero-section {
        padding-bottom: 40px;
    }
    .page-poker__hero-image {
        min-height: 300px;
    }
    .page-poker__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-poker__mobile-text {
        order: 2; /* Text below image on mobile */
    }
    .page-poker__mobile-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-poker__security-item {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-poker__container {
        padding: 0 15px;
    }

    /* General responsive for images */
    .page-poker img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-poker__section,
    .page-poker__card,
    .page-poker__container,
    .page-poker__hero-content-wrapper,
    .page-poker__cta-buttons,
    .page-poker__feature-grid,
    .page-poker__game-cards-grid,
    .page-poker__promo-grid,
    .page-poker__security-features,
    .page-poker__info-grid,
    .page-poker__mobile-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }

    /* Specific overrides for main sections to remove extra padding from parent container */
    .page-poker__hero-section,
    .page-poker__about-section,
    .page-poker__games-section,
    .page-poker__promo-section,
    .page-poker__security-section,
    .page-poker__mobile-section,
    .page-poker__support-payment-section,
    .page-poker__cta-banner,
    .page-poker__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-poker__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-poker__section-title {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    /* Buttons responsive */
    .page-poker__cta-button,
    .page-poker__btn-primary,
    .page-poker__btn-secondary,
    .page-poker a[class*="button"],
    .page-poker a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove inline margins */
        margin-right: 0 !important; /* Remove inline margins */
    }
    
    .page-poker__cta-buttons,
    .page-poker__button-group,
    .page-poker__btn-container {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-poker__feature-grid,
    .page-poker__game-cards-grid,
    .page-poker__promo-grid,
    .page-poker__info-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-poker__security-features {
        flex-direction: column;
        gap: 20px;
    }
    .page-poker__security-item {
        max-width: 100%;
        margin: 0 auto;
    }

    .page-poker__faq-question {
        padding: 15px 20px;
    }
    .page-poker__faq-answer {
        padding: 0 20px;
    }
    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}