/* style/fishing-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Section styling */
.page-fishing-games__hero-section,
.page-fishing-games__intro-section,
.page-fishing-games__featured-games-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__promo-video-section,
.page-fishing-games__promotions-section,
.page-fishing-games__tips-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* Fixed header offset for the first section that is not a placeholder */
.page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Color schemes for sections based on background brightness */
.page-fishing-games__dark-bg {
    background-color: #0a0a0a; /* Body background from shared.css */
    color: #ffffff;
}

.page-fishing-games__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-fishing-games__section-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: inherit;
}

/* Highlight text */
.page-fishing-games__highlight {
    color: #26A9E0; /* Brand primary color */
    font-weight: bold;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't push button out */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-fishing-games__btn-primary {
    background-color: #26A9E0; /* Main color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-fishing-games__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Main color for text */
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-fishing-games__link-inline {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-fishing-games__link-inline:hover {
    color: #1e87b7;
    text-decoration: underline;
}

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--header-offset, 120px) 20px 60px; /* Use header offset */
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    position: relative;
}

.page-fishing-games__hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-fishing-games__hero-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
}

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
    filter: none; /* No color filters */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}


/* Intro Section */
.page-fishing-games__intro-section .page-fishing-games__container {
    max-width: 900px;
}
.page-fishing-games__intro-section .page-fishing-games__text-block {
    margin-bottom: 20px;
    text-align: left;
    color: #333333;
}
.page-fishing-games__intro-section .page-fishing-games__link-more {
    display: inline-block;
    margin-top: 20px;
}

/* Featured Games Section */
.page-fishing-games__featured-games-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}
.page-fishing-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

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

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

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}
.page-fishing-games__card-title a {
    color: #ffffff; /* Link in card title */
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-fishing-games__card-title a:hover {
    color: #26A9E0;
    text-decoration: underline;
}

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

.page-fishing-games__card-button {
    margin-top: auto; /* Push button to bottom */
}

/* How To Play Section */
.page-fishing-games__how-to-play-section .page-fishing-games__container {
    max-width: 1000px;
}
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__step-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    height: 100%;
    box-sizing: border-box;
}

.page-fishing-games__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-fishing-games__step-description {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: #555555;
}

/* Promo Video Section */
.page-fishing-games__promo-video-section {
    padding-top: 40px; /* Adjusted to not double header offset */
    padding-bottom: 60px;
}
.page-fishing-games__video-wrapper {
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    width: 100%; /* Ensure wrapper takes full width */
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves as a block element */
    max-width: 100%; /* Responsive video */
    height: auto;
    filter: none; /* No color filters */
    cursor: pointer; /* Indicate clickable */
}

.page-fishing-games__video-cta {
    margin-top: 20px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    background-color: #ffffff;
    color: #333333;
}
.page-fishing-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* No color filters */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-fishing-games__promo-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tips Section */
.page-fishing-games__tips-section {
    background-color: #0a0a0a;
    color: #ffffff;
}
.page-fishing-games__tips-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

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

.page-fishing-games__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-fishing-games__tips-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='%2326A9E0'%3E%3Cpath d='M9 20.42L2.79 14.21L5.62 11.38L9 14.76L18.38 5.38L21.21 8.21L9 20.42Z'/%3E%3C/svg%3E") no-repeat left 8px / 18px 18px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-fishing-games__tips-list li b {
    color: #26A9E0;
}

.page-fishing-games__tips-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-fishing-games__tips-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* No color filters */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: #ffffff;
    color: #333333;
}
.page-fishing-games__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-fishing-games__faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    overflow: hidden; /* For max-height transition */
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    color: #26A9E0;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Adjust padding for collapse */
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.95em;
    color: #555555;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px; /* Restore padding when active */
}

.page-fishing-games__faq-answer p {
    margin-bottom: 10px;
    color: #555555;
}
.page-fishing-games__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-fishing-games__faq-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #333333;
}

.page-fishing-games__faq-support-image {
    width: 250px;
    height: auto;
    border-radius: 10px;
    filter: none; /* No color filters */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* CTA Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
}
.page-fishing-games__cta-section .page-fishing-games__section-title {
    color: #ffffff;
}
.page-fishing-games__cta-section .page-fishing-games__section-subtitle {
    color: #f0f0f0;
}
.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    margin-top: 40px;
}
.page-fishing-games__cta-buttons .page-fishing-games__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}
.page-fishing-games__cta-buttons .page-fishing-games__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #26A9E0;
    border-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-subtitle {
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Mobile video responsiveness */
    .page-fishing-games video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-fishing-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }


    /* Mobile button responsiveness */
    .page-fishing-games__cta-button,
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games a[class*="button"],
    .page-fishing-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }
    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons */
        gap: 10px;
    }

    /* General content containers for mobile */
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__intro-section,
    .page-fishing-games__featured-games-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__tips-content {
        flex-direction: column;
    }
    .page-fishing-games__tips-text,
    .page-fishing-games__tips-image-wrapper {
        min-width: unset; /* Reset min-width for mobile */
        width: 100%;
    }
    .page-fishing-games__game-cards-grid,
    .page-fishing-games__steps-grid,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__card-title,
    .page-fishing-games__promo-title,
    .page-fishing-games__step-title {
        font-size: 1.2em;
    }
}