/* style/poker.css */

/* Base styles for the page-poker scope */
.page-poker {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main color, suitable for dark background */
    background-color: #0A0A0A; /* Background color */
    line-height: 1.6;
    font-size: 1rem;
}

/* Container for content sections */
.page-poker__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-poker__section-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* H2 size with clamp */
    font-weight: 700;
    line-height: 1.2;
    color: #FFD36B; /* Glow color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.page-poker__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #F2C14E, transparent);
    border-radius: 2px;
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* 10px top padding, not var(--header-offset) */
    overflow: hidden; /* Ensure content stays within bounds */
    min-height: 600px;
}

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

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

.page-poker__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-poker__main-title {
    font-size: clamp(2.8rem, 5vw, 3.8rem); /* H1 size with clamp */
    font-weight: 800;
    line-height: 1.1;
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-poker__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #FFF6D6; /* Text Main color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-poker__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-poker__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for light button */
    border: 2px solid #F2C14E;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
    transform: translateY(-2px);
}

.page-poker__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color for text */
    border: 2px solid #F2C14E; /* Main color for border */
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-poker__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: #F2C14E;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
    transform: translateY(-2px);
}

.page-poker__btn--large {
    min-width: 250px;
    padding: 18px 40px;
    font-size: 1.3rem;
}

/* Content Sections */
.page-poker__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-poker__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-poker__text-block {
    flex: 1;
    min-width: 300px;
    color: #FFF6D6; /* Text Main color */
}

.page-poker__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-poker__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-poker__image-block--center {
    justify-content: center;
    margin-top: 40px;
}

.page-poker__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #3A2A12; /* Border color */
    display: block; /* Ensure it behaves as a block element for max-width/height:auto */
}

/* Background colors for sections */
.page-poker__dark-bg {
    background-color: #0A0A0A; /* Background color */
    color: #FFF6D6; /* Text Main color */
}

.page-poker__light-bg {
    background-color: #111111; /* Card BG color */
    color: #FFF6D6; /* Text Main color */
}

/* Card styles */
.page-poker__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-poker__card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6; /* Text Main color */
}

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

.page-poker__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD36B; /* Glow color for card titles */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-poker__card-text {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main color */
}

/* Links within content */
.page-poker__link {
    color: #F2C14E; /* Main color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-poker__link:hover {
    color: #FFD36B; /* Auxiliary color on hover */
}

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

.page-poker__faq-item {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* 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;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFD36B; /* Glow color for questions */
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.05);
}

.page-poker__faq-title {
    margin: 0;
    color: inherit; /* Inherit color from question */
    font-size: 1.15rem;
    font-weight: 600;
    flex-grow: 1;
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: #F2C14E; /* Main color for toggle icon */
    transition: transform 0.3s ease;
}

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

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for consistency */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main color */
}

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

.page-poker__faq-answer p {
    margin: 0;
    font-size: 1rem;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__hero-content {
        padding: 15px;
    }

    .page-poker__main-title {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    }

    .page-poker__description {
        font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    }

    .page-poker__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }

    .page-poker__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-poker__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on smaller screens */
    }

    .page-poker__text-block,
    .page-poker__image-block {
        width: 100%;
        min-width: unset;
    }
    
    .page-poker__image-block--center {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-poker {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-poker__hero-section {
        padding-top: 10px !important; /* Ensure 10px top padding for mobile */
        min-height: 450px;
    }

    .page-poker__main-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .page-poker__description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-poker__btn--large {
        min-width: unset;
        font-size: 1.1rem;
    }

    .page-poker__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-poker__container {
        padding: 20px 15px; /* Add padding to container for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-poker__content-wrapper {
        margin-bottom: 40px;
    }
    
    .page-poker__text-block p {
        font-size: 0.95rem;
    }

    /* Images responsiveness */
    .page-poker img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-poker__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Card grid responsiveness */
    .page-poker__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .page-poker__card {
        padding: 20px;
    }
    
    .page-poker__card-title {
        font-size: 1.3rem;
    }

    /* FAQ responsiveness */
    .page-poker__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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