/* style/poker.css */

/* General Page Styles */
.page-poker {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main for dark background */
    background-color: #0A0A0A; /* Body background from shared.css */
    line-height: 1.6;
}

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

/* Section Styles */
.page-poker__section {
    padding: 60px 0;
    text-align: center;
}

.page-poker__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px; /* Adjust as needed */
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
}

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

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

.page-poker__hero-content {
    position: relative;
    z-index: 2;
    width: 100%; /* Ensure content takes full width for centering */
    max-width: 900px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure content takes full height for vertical centering */
}

.page-poker__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-poker__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-poker__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: bold;
    color: #F2C14E; /* Main color */
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-poker__text-block {
    font-size: 1.1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-poker__text-link {
    color: #FFD36B; /* Glow color for links */
    text-decoration: underline;
}

.page-poker__text-link:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-poker__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

.page-poker__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

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

.page-poker__card-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
}

.page-poker__card-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-poker__card-button {
    align-self: center; /* Center button in card */
}

/* How to Play Steps */
.page-poker__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-poker__step-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-poker__step-title {
    font-size: 1.4rem;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
}

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

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

.page-poker__feature-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-poker__feature-icon {
    width: 80px; /* Example size, adjust as needed */
    height: 80px; /* Example size, adjust as needed */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px #FFD36B); /* Glow effect */
}

.page-poker__feature-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
}

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

/* Buttons */
.page-poker__btn-primary,
.page-poker__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

.page-poker__btn-secondary {
    background-color: transparent;
    color: #FFD36B; /* Glow color */
    border: 2px solid #FFD36B; /* Glow color border */
    box-shadow: 0 2px 8px rgba(255, 211, 107, 0.3);
}

.page-poker__btn-secondary:hover {
    background-color: #FFD36B; /* Glow color */
    color: #111111; /* Dark text */
    box-shadow: 0 4px 12px rgba(255, 211, 107, 0.5);
    transform: translateY(-2px);
}

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

.page-poker__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A1A1A; /* Slightly lighter than card BG for distinction */
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: #222222;
}

.page-poker__faq-question-text {
    font-size: 1.2rem;
    color: #F2C14E; /* Main color */
    margin: 0;
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD36B; /* Glow color */
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure proper vertical alignment */
}

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

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

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

.page-poker__faq-answer p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.page-poker__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-poker__cta-content {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 50px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-top: 60px;
}

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

/* Copyright Info */
.page-poker__copyright-info {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #3A2A12; /* Border color, subtle for copyright */
    margin-top: 40px;
    border-top: 1px solid #3A2A12;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-poker__hero-title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }
    .page-poker__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    }
}

@media (max-width: 768px) {
    .page-poker__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding on mobile */
        min-height: 450px;
    }

    .page-poker__hero-content {
        padding: 15px;
    }

    .page-poker__hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        margin-bottom: 15px;
    }

    .page-poker__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 20px;
    }

    .page-poker__hero-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,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-poker__section,
    .page-poker__card,
    .page-poker__container,
    .page-poker__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-poker img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-poker__text-block {
        font-size: 1rem;
    }

    .page-poker__game-cards,
    .page-poker__promo-cards,
    .page-poker__steps,
    .page-poker__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-poker__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-poker__faq-question {
        padding: 15px 20px;
    }
    .page-poker__faq-question-text {
        font-size: 1.1rem;
    }
    .page-poker__faq-answer {
        padding: 15px 20px;
    }
}