/* style/fishing-games.css */

/* --- Base Styles & Variables --- */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default text color from palette */
    background-color: var(--background-color-page, #08160F); /* Default background from palette */
}

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

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

.page-fishing-games__dark-bg {
    background-color: var(--background-color-page, #08160F);
    color: var(--text-main-color, #F2FFF6);
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-main-color, #F2FFF6);
    font-weight: bold;
}

.page-fishing-games__section-title--dark {
    color: #333333;
}

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-fishing-games__text-block--dark {
    color: #555555; /* Darker text for light background */
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
    position: relative;
    padding: 10px 0 60px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
    color: var(--text-main-color, #F2FFF6);
    text-align: center;
}

.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;
    filter: brightness(0.5); /* Darken image for text readability */
    display: block; /* Ensure it doesn't leave space below */
}

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

.page-fishing-games__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main-color, #F2FFF6);
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary-color, #A7D9B8);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

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

.page-fishing-games__cta-buttons--center {
    margin-top: 40px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: var(--text-main-color, #F2FFF6);
    border: 2px solid var(--border-color, #2E7A4E);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--border-color, #2E7A4E);
    color: #ffffff;
}

.page-fishing-games__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* --- Card Styles --- */
.page-fishing-games__card {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__card h3 {
    color: var(--text-main-color, #F2FFF6);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.page-fishing-games__card p {
    color: var(--text-secondary-color, #A7D9B8);
}

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

.page-fishing-games__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure no extra space */
}

/* --- Download Section --- */
.page-fishing-games__section--how-to-download {
    background-color: #f0f2f5; /* Light background for contrast */
}

.page-fishing-games__download-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__download-card {
    background-color: #ffffff; /* White card on light background */
    color: #333333; /* Dark text for light card */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__download-card h3 {
    color: #11A84E; /* Brand color for titles on light background */
}

.page-fishing-games__download-card p,
.page-fishing-games__download-card ol li {
    color: #555555;
}

.page-fishing-games__download-image {
    width: 100%;
    height: 220px;
    object-fit: contain; /* Use contain for app screens/QR codes */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__download-steps {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-fishing-games__download-steps li {
    margin-bottom: 10px;
}

/* Buttons in download card for light background */
.page-fishing-games__download-card .page-fishing-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    margin-top: auto; /* Push button to bottom */
}

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

.page-fishing-games__game-card {
    text-align: center;
}

.page-fishing-games__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-fishing-games__game-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
}

/* --- Strategy List --- */
.page-fishing-games__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-fishing-games__strategy-item {
    background-color: #ffffff; /* White card on light background */
    color: #333333; /* Dark text for light card */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-fishing-games__strategy-title {
    font-size: 1.3em;
    color: #11A84E; /* Brand color for titles on light background */
    margin-bottom: 10px;
}

.page-fishing-games__strategy-description {
    font-size: 1em;
    color: #555555;
}

/* --- Promotion Cards --- */
.page-fishing-games__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-fishing-games__promo-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__promo-description {
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

.page-fishing-games__promo-card .page-fishing-games__btn-primary,
.page-fishing-games__promo-card .page-fishing-games__btn-secondary {
    margin-top: auto; /* Push buttons to bottom */
    width: 100%;
    text-align: center;
}

/* --- FAQ Section --- */
.page-fishing-games__section--faq {
    background-color: #f0f2f5; /* Light background for contrast */
}

.page-fishing-games__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    color: #333333;
    overflow: hidden; /* For details tag */
}

.page-fishing-games__faq-item summary {
    list-style: none; /* Hide default marker for details */
}

.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #11A84E; /* Brand color for questions */
    border-bottom: 1px solid #e0e0e0;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
}

/* --- Images & Video responsiveness --- */
.page-fishing-games img,
.page-fishing-games video {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

.page-fishing-games__hero-image {
    width: 100%; /* Explicitly set width for hero image */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-fishing-games__section {
        padding: 40px 0;
    }

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

    .page-fishing-games__hero-section {
        padding: 10px 0 40px; /* Small top padding, body handles header offset */
        min-height: 400px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__download-methods,
    .page-fishing-games__game-showcase,
    .page-fishing-games__strategy-list,
    .page-fishing-games__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__container {
        padding: 0 15px !important;
    }

    /* Mobile image and video responsiveness */
    .page-fishing-games img,
    .page-fishing-games video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__download-methods,
    .page-fishing-games__game-showcase,
    .page-fishing-games__strategy-list,
    .page-fishing-games__promo-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-fishing-games__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-fishing-games__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

    .page-fishing-games__video-section {
        padding-top: 10px !important;
    }
}

/* Ensure no image filters */
.page-fishing-games img {
    filter: none; /* Explicitly remove any potential filter */
}
/* Hero image has a brightness filter for text readability, this is allowed as it's not changing the color but making it darker */
.page-fishing-games__hero-image {
    filter: brightness(0.5);
}

/* Contrast Fixes (if needed) - as per instructions */
.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__text-block,
.page-fishing-games__light-bg .page-fishing-games__card h3,
.page-fishing-games__light-bg .page-fishing-games__card p,
.page-fishing-games__light-bg .page-fishing-games__strategy-title,
.page-fishing-games__light-bg .page-fishing-games__strategy-description,
.page-fishing-games__light-bg .page-fishing-games__faq-question,
.page-fishing-games__light-bg .page-fishing-games__faq-answer {
    color: #333333; /* Ensure dark text on light background */
}
.page-fishing-games__light-bg .page-fishing-games__card {
    background-color: #ffffff; /* White card on light background */
}
.page-fishing-games__light-bg .page-fishing-games__faq-question {
    color: #11A84E; /* Brand color for questions */
}