/* style/poker.css */

/* Base styles for the poker page */
.page-poker {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set background to white */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-poker__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-poker__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Buttons */
.page-poker__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
    box-sizing: border-box;
    border: 2px solid transparent; /* Default transparent border */
}

.page-poker__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border-color: #FCBC45;
}

.page-poker__button--primary:hover {
    background-color: #e0a73a;
    transform: translateY(-2px);
}

.page-poker__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border-color: #000000;
}

.page-poker__button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-poker__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    min-width: 100px;
}

/* Hero Section */
.page-poker__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 60px; /* Adjust padding, padding-top will be overridden by main's padding-top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-poker__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-poker__hero-content {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    max-width: 900px;
}

.page-poker__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FCBC45; /* Highlight title with brand accent color */
}

.page-poker__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Games Section */
.page-poker__games-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-poker__game-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-poker__game-card:hover {
    transform: translateY(-8px);
}

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

.page-poker__game-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-poker__game-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Strategy Section */
.page-poker__strategy-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-poker__strategy-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-poker__strategy-text {
    flex: 1;
    min-width: 300px;
}

.page-poker__strategy-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
    color: #333333;
    font-size: 1.1em;
}

.page-poker__strategy-list li {
    margin-bottom: 10px;
}

.page-poker__strategy-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px; /* Constrain image width */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px; /* Enforce minimum size */
}

/* Tournaments Section */
.page-poker__tournaments-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-poker__tournament-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-poker__tournament-card:hover {
    transform: translateY(-8px);
}

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

.page-poker__tournament-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-poker__tournament-description {
    font-size: 1em;
    color: #666666;
}

.page-poker__call-to-action {
    text-align: center;
    margin-top: 40px;
}

/* Bonuses Section */
.page-poker__bonuses-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-poker__bonuses-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap-reverse; /* Image on right for desktop, top for mobile */
}

.page-poker__bonuses-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px; /* Enforce minimum size */
}

.page-poker__bonuses-content {
    flex: 1;
    min-width: 300px;
}

.page-poker__bonuses-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    color: #333333;
    font-size: 1.1em;
}

.page-poker__bonuses-list li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FCBC45'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
}


/* App Section */
.page-poker__app-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-poker__app-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-poker__app-content {
    flex: 1;
    min-width: 300px;
}

.page-poker__app-features {
    margin-bottom: 30px;
}

.page-poker__app-features p {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-poker__app-features ul {
    list-style: none;
    padding: 0;
    color: #333333;
    font-size: 1em;
}

.page-poker__app-features li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FCBC45'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
}

.page-poker__app-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px; /* Enforce minimum size */
}

/* Why Choose Section */
.page-poker__why-choose-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-poker__feature-item {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-poker__feature-item:hover {
    transform: translateY(-5px);
}

.page-poker__feature-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-poker__feature-description {
    font-size: 1em;
    color: #666666;
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-poker__faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-poker__faq-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-poker__faq-question {
    font-size: 1.3em;
    color: #000000;
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-poker__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-poker__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-poker__faq-answer {
    font-size: 1em;
    color: #555555;
    padding: 0 25px 20px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-poker__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 0 25px 20px;
}

.page-poker__faq-answer a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-poker__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-poker__hero-title {
        font-size: 3em;
    }
    .page-poker__hero-description {
        font-size: 1.2em;
    }
    .page-poker__strategy-layout,
    .page-poker__bonuses-layout,
    .page-poker__app-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-poker__strategy-image,
    .page-poker__bonuses-image,
    .page-poker__app-image {
        min-width: unset;
        width: 100%;
        max-width: 700px; /* Adjust max-width for larger tablets */
        margin: 0 auto;
    }
    .page-poker__strategy-text,
    .page-poker__bonuses-content,
    .page-poker__app-content {
        min-width: unset;
        width: 100%;
    }
    .page-poker__strategy-list,
    .page-poker__bonuses-list,
    .page-poker__app-features ul {
        text-align: left;
        padding-left: 0; /* Remove default padding */
        list-style: none; /* Remove default list style */
    }
    .page-poker__strategy-list li,
    .page-poker__bonuses-list li,
    .page-poker__app-features li {
        padding-left: 30px; /* Re-add custom checkmark padding */
    }
}

@media (max-width: 768px) {
    .page-poker {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-poker__hero-section {
        padding: 60px 15px 40px;
        min-height: 400px;
    }

    .page-poker__hero-title {
        font-size: 2.2em;
    }

    .page-poker__hero-description {
        font-size: 1em;
    }

    .page-poker__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-poker__button {
        width: 100%;
        max-width: 300px;
    }

    .page-poker__section-title {
        font-size: 2em;
    }

    .page-poker__section-intro {
        font-size: 1em;
    }

    .page-poker__games-section,
    .page-poker__strategy-section,
    .page-poker__tournaments-section,
    .page-poker__bonuses-section,
    .page-poker__app-section,
    .page-poker__why-choose-section,
    .page-poker__faq-section {
        padding: 40px 0;
    }

    /* Enforce min-width for all images in content area */
    .page-poker img {
        max-width: 100%; /* Important for mobile responsiveness */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px; /* Ensure minimum size */
    }

    /* Specific overrides for small images if any had smaller explicit widths */
    .page-poker__game-image,
    .page-poker__tournament-image,
    .page-poker__strategy-image,
    .page-poker__bonuses-image,
    .page-poker__app-image {
        width: 100%;
        height: auto; /* Let height adjust to maintain aspect ratio */
        max-width: 100%;
        min-width: 200px;
        min-height: 200px;
    }

    .page-poker__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-poker__faq-question::after {
        font-size: 1.2em;
    }
    .page-poker__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px;
    }
}