/* style/fishing-games.css */

/* Base styles for the page content */
.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: 20px;
    box-sizing: border-box;
}

.page-fishing-games__center-text {
    text-align: center;
}

/* Section titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff; /* Ensure contrast on dark backgrounds */
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__section-title a {
    color: inherit;
    text-decoration: none;
}

/* Text blocks */
.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark background */
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-fishing-games__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
    margin-right: 15px;
}

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

.page-fishing-games__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for brand primary */
    border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-fishing-games__button-group {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Images */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
    object-fit: cover;
    /* Ensure no filter is applied */
    filter: none;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 100px 20px; /* Adjust padding for hero section */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 600px;
    overflow: hidden;
}

.page-fishing-games__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    z-index: 2;
    padding: 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Custom color for hero title */
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: bold;
}

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

.page-fishing-games__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-fishing-games__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* About Section */
.page-fishing-games__about-section {
    padding: 60px 0;
}

/* Game Features Section */
.page-fishing-games__game-features {
    padding: 60px 0;
}

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for card titles */
    font-weight: bold;
}

.page-fishing-games__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-fishing-games__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Popular Games Section */
.page-fishing-games__popular-games {
    padding: 60px 0;
}

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

.page-fishing-games__game-card {
    background-color: #ffffff; /* White background for game cards */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #333333; /* Dark text for white background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.page-fishing-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
    padding: 60px 0;
}

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

.page-fishing-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #017439;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-fishing-games__list-item strong {
    color: #FFFF00; /* Yellow for strong text in list items */
}

.page-fishing-games__list-item a {
    color: #FFFF00; /* Yellow for links in list items */
    text-decoration: underline;
}

/* Promotions Section */
.page-fishing-games__promotions {
    padding: 60px 0;
}

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

.page-fishing-games__promo-card {
    background-color: #ffffff; /* White background for promo cards */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #333333; /* Dark text for white background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Security Section */
.page-fishing-games__security {
    padding: 60px 0;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
}

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

.page-fishing-games__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f5f5f5; /* Light grey for question background */
    cursor: pointer;
    font-weight: bold;
    color: #333333; /* Dark text for light background */
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: #e0e0e0;
}

.page-fishing-games__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #333333;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or 'minus' */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555; /* Slightly lighter dark text for answer */
    background-color: #ffffff;
}

.page-fishing-games__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555555;
}

.page-fishing-games__faq-answer a {
    color: #017439; /* Brand color for links in FAQ answer */
    text-decoration: underline;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-fishing-games__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Color Contrast Safety */
.page-fishing-games__dark-bg {
    background-color: #017439; /* Using brand color for dark sections */
    color: #ffffff;
}

.page-fishing-games__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Responsive Design */
@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 {
        flex-direction: column;
        text-align: center;
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-fishing-games__hero-content,
    .page-fishing-games__hero-image-wrapper {
        min-width: unset;
        max-width: 100%;
        padding: 0;
    }

    .page-fishing-games__hero-title {
        font-size: 2.5em;
    }

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

    .page-fishing-games__hero-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-fishing-games__text-block,
    .page-fishing-games__card-description,
    .page-fishing-games__list-item,
    .page-fishing-games__faq-answer p {
        font-size: 1em;
    }

    .page-fishing-games__container,
    .page-fishing-games__feature-card,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .page-fishing-games__game-image,
    .page-fishing-games__promo-image {
        height: 180px; /* Adjust image height for mobile */
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 2em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-fishing-games img:not(.page-fishing-games__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
/* Override for mobile if needed, but the general max-width:100% and height:auto should prevent this */
@media (max-width: 768px) {
    .page-fishing-games img {
        min-width: unset !important; /* Allow images to shrink on mobile */
        min-height: unset !important;
    }
}