/* style/poker-texas-holdem.css */

/* Custom properties for colors based on the provided palette */
:root {
    --phdream-primary: #F2C14E;
    --phdream-secondary: #FFD36B;
    --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --phdream-card-bg: #111111;
    --phdream-body-bg: #0A0A0A; /* Assuming this is for main content sections that are dark */
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;

    /* For light sections, fallback to standard dark text on light background for contrast */
    --phdream-light-section-bg: #ffffff; /* Or a very light grey */
    --phdream-light-section-text: #333333;
}

/* Base styles for the page content, assuming body background is dark (var(--site-bg) from shared.css) */
.page-poker-texas-holdem {
    color: var(--phdream-text-main); /* Light text on dark background */
    background-color: var(--phdream-body-bg); /* Default background for main page content sections */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-poker-texas-holdem__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-poker-texas-holdem__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--phdream-body-bg); /* Dark background for the section */
}

.page-poker-texas-holdem__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-poker-texas-holdem__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-poker-texas-holdem__hero-content {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--phdream-light-section-bg); /* Light background for text content */
    color: var(--phdream-light-section-text); /* Dark text for contrast */
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with the image for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-poker-texas-holdem__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--phdream-light-section-text); /* Dark text on light background */
}

.page-poker-texas-holdem__subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--phdream-light-section-text);
}

.page-poker-texas-holdem__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.page-poker-texas-holdem__btn-primary,
.page-poker-texas-holdem__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-poker-texas-holdem__btn-primary {
    background: var(--phdream-button-gradient);
    color: #ffffff; /* White text on primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-poker-texas-holdem__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-poker-texas-holdem__btn-secondary {
    background-color: transparent;
    color: var(--phdream-light-section-text); /* Dark text on secondary button */
    border: 2px solid var(--phdream-primary);
}

.page-poker-texas-holdem__btn-secondary:hover {
    background-color: var(--phdream-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section titles */
.page-poker-texas-holdem__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--phdream-text-main); /* Default to light text for dark sections */
}

.page-poker-texas-holdem__subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--phdream-text-main); /* Default to light text for dark sections */
}

/* Light background sections */
.page-poker-texas-holdem__light-bg {
    background-color: var(--phdream-light-section-bg);
    color: var(--phdream-light-section-text);
}

.page-poker-texas-holdem__light-bg .page-poker-texas-holdem__section-title,
.page-poker-texas-holdem__light-bg .page-poker-texas-holdem__subsection-title {
    color: var(--phdream-light-section-text); /* Dark text for titles in light sections */
}

.page-poker-texas-holdem__light-bg .page-poker-texas-holdem__btn-secondary {
    color: var(--phdream-light-section-text);
    border-color: var(--phdream-primary);
}
.page-poker-texas-holdem__light-bg .page-poker-texas-holdem__btn-secondary:hover {
    background-color: var(--phdream-primary);
    color: #ffffff;
}

/* Dark background sections */
.page-poker-texas-holdem__dark-bg {
    background-color: var(--phdream-body-bg);
    color: var(--phdream-text-main);
}
.page-poker-texas-holdem__dark-bg .page-poker-texas-holdem__section-title,
.page-poker-texas-holdem__dark-bg .page-poker-texas-holdem__subsection-title {
    color: var(--phdream-text-main); /* Light text for titles in dark sections */
}


/* Content images */
.page-poker-texas-holdem__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hand Rankings Grid */
.page-poker-texas-holdem__hand-ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-poker-texas-holdem__hand-item {
    background-color: var(--phdream-card-bg); /* Dark card background */
    color: var(--phdream-text-main); /* Light text */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--phdream-border);
}

.page-poker-texas-holdem__hand-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--phdream-primary); /* Use primary color for highlights */
}

.page-poker-texas-holdem__hand-rankings-image {
    max-width: 100%;
    height: auto;
    margin-top: 40px;
    border: 1px solid var(--phdream-border);
}

/* FAQ Section */
.page-poker-texas-holdem__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker-texas-holdem__faq-item {
    background-color: var(--phdream-light-section-bg); /* Light background for FAQ items */
    color: var(--phdream-light-section-text); /* Dark text */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-poker-texas-holdem__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    background-color: #f9f9f9; /* Slightly off-white for question background */
    border-bottom: 1px solid #e0e0e0;
}

.page-poker-texas-holdem__faq-question:hover {
    background-color: #f0f0f0;
}

.page-poker-texas-holdem__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-poker-texas-holdem__faq-item.active .page-poker-texas-holdem__faq-toggle {
    transform: rotate(45deg);
}

.page-poker-texas-holdem__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-poker-texas-holdem__faq-item.active .page-poker-texas-holdem__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

.page-poker-texas-holdem__faq-answer p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Bottom CTA section */
.page-poker-texas-holdem__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: var(--phdream-body-bg); /* Dark background */
    color: var(--phdream-text-main); /* Light text */
}

.page-poker-texas-holdem__cta-bottom-section .page-poker-texas-holdem__section-title {
    color: var(--phdream-text-main);
    margin-bottom: 20px;
}

.page-poker-texas-holdem__cta-bottom-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-poker-texas-holdem__cta-bottom-section .page-poker-texas-holdem__cta-buttons {
    margin-top: 20px;
}

.page-poker-texas-holdem__cta-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-poker-texas-holdem__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-poker-texas-holdem__content-area {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-poker-texas-holdem__hero-section {
        padding: 10px 0;
    }
    .page-poker-texas-holdem__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }
    .page-poker-texas-holdem__main-title {
        font-size: 2rem;
    }
    .page-poker-texas-holdem__subtitle {
        font-size: 1rem;
    }
    .page-poker-texas-holdem__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-poker-texas-holdem__btn-primary,
    .page-poker-texas-holdem__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-poker-texas-holdem__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .page-poker-texas-holdem__subsection-title {
        font-size: 1.3rem;
        margin-top: 30px;
    }

    /* Mobile specific image adaptation */
    .page-poker-texas-holdem img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-poker-texas-holdem__section,
    .page-poker-texas-holdem__card,
    .page-poker-texas-holdem__container,
    .page-poker-texas-holdem__cta-buttons,
    .page-poker-texas-holdem__button-group,
    .page-poker-texas-holdem__btn-container,
    .page-poker-texas-holdem__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-poker-texas-holdem__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    }

    .page-poker-texas-holdem__hand-ranking-grid {
        grid-template-columns: 1fr;
    }

    .page-poker-texas-holdem__cta-bottom-section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .page-poker-texas-holdem__hero-content {
        margin-top: -30px;
    }
}