/* style/poker.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-poker {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* HERO Section */
.page-poker__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-poker__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for desktop hero image */
    overflow: hidden;
}

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

.page-poker__hero-content {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    background: var(--background-color);
    color: var(--text-main-color);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.page-poker__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-poker__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

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

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

.page-poker__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

.page-poker__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-poker__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

.page-poker__btn-link {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-poker__btn-link:hover {
    background: var(--secondary-color);
    color: var(--background-color);
}

/* General Section Styling */
.page-poker__section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-poker__dark-section {
    background-color: var(--card-bg);
}

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

.page-poker__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-poker__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main-color);
}

/* Card Styling */
.page-poker__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main-color);
}

.page-poker__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-poker__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-poker__card-text {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

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

/* Game Showcase */
.page-poker__game-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-poker__game-card {
    padding: 20px;
}

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

.page-poker__promo-card {
    padding: 20px;
}

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

.page-poker__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
}

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: #e0b040; /* Slightly darker primary color on hover */
}

.page-poker__faq-title {
    font-size: 1.1em;
    margin: 0;
    color: var(--background-color);
}

.page-poker__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--background-color);
}

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

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-main-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

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

.page-poker__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    color: var(--text-main-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-poker__main-title {
        font-size: 2.8em;
    }
    .page-poker__section-title {
        font-size: 2.2em;
    }
}

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

    .page-poker__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    }

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

    .page-poker__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-poker__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary,
    .page-poker__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-poker__section {
        padding: 40px 0;
    }

    .page-poker__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-poker__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-poker__card {
        padding: 20px;
    }

    .page-poker__card-title {
        font-size: 1.3em;
    }

    .page-poker__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile specific container padding to prevent overflow */
    .page-poker__section,
    .page-poker__card,
    .page-poker__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-poker__faq-question {
        padding: 12px 15px;
    }

    .page-poker__faq-title {
        font-size: 1em;
    }

    .page-poker__faq-answer {
        padding: 0 15px;
    }

    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-poker__main-title {
        font-size: 1.8em;
    }
    .page-poker__section-title {
        font-size: 1.6em;
    }
    .page-poker__hero-description {
        font-size: 0.9em;
    }
    .page-poker__card-title {
        font-size: 1.1em;
    }
    .page-poker__card-text {
        font-size: 0.9em;
    }
}