/* style/fishing-games.css */

/* --- Base Styles --- */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Body background is light */
}

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

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

.page-fishing-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Ensure all content area images are at least 200x200px */
.page-fishing-games img {
    min-width: 200px;
    min-height: 200px;
}

/* --- Color Contrast Classes --- */
.page-fishing-games__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg .page-fishing-games__section-description,
.page-fishing-games__dark-bg .page-fishing-games__grid-title,
.page-fishing-games__dark-bg .page-fishing-games__grid-text,
.page-fishing-games__dark-bg .page-fishing-games__card-title,
.page-fishing-games__dark-bg .page-fishing-games__card-text,
.page-fishing-games__dark-bg .page-fishing-games__step-title,
.page-fishing-games__dark-bg .page-fishing-games__step-text,
.page-fishing-games__dark-bg .page-fishing-games__tip-title,
.page-fishing-games__dark-bg .page-fishing-games__tip-text,
.page-fishing-games__dark-bg .page-fishing-games__promo-title,
.page-fishing-games__dark-bg .page-fishing-games__promo-text,
.page-fishing-games__dark-bg .page-fishing-games__faq-question h3,
.page-fishing-games__dark-bg .page-fishing-games__faq-answer p {
    color: #ffffff;
}

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

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__grid-title,
.page-fishing-games__light-bg .page-fishing-games__card-title,
.page-fishing-games__light-bg .page-fishing-games__step-title,
.page-fishing-games__light-bg .page-fishing-games__tip-title,
.page-fishing-games__light-bg .page-fishing-games__promo-title,
.page-fishing-games__light-bg .page-fishing-games__faq-question h3 {
    color: #017439; /* Use brand primary for titles on light background */
}

/* --- Buttons --- */
.page-fishing-games__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login buttons */
    color: #FFFF00; /* Custom font color for register/login buttons */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

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

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

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

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

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

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

/* --- Introduction Section --- */
.page-fishing-games__introduction-section {
    padding: 80px 0;
}

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

.page-fishing-games__grid-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__grid-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-fishing-games__grid-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439;
}

.page-fishing-games__grid-text {
    font-size: 1em;
    color: #555555;
}

/* --- Game Types Section --- */
.page-fishing-games__game-types-section {
    padding: 80px 0;
}

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

.page-fishing-games__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__card-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
    padding: 0 20px;
}

.page-fishing-games__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1;
}

.page-fishing-games__card-button {
    margin-top: auto; /* Push button to bottom */
    width: calc(100% - 40px);
}

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

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

.page-fishing-games__step-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__step-icon {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

.page-fishing-games__step-text {
    font-size: 1em;
    color: #555555;
}

/* --- Tips Section --- */
.page-fishing-games__tips-section {
    padding: 80px 0;
}

.page-fishing-games__tips-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.page-fishing-games__tip-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__tip-item h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__tip-item p {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-fishing-games__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__promo-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
    padding: 0 20px;
}

.page-fishing-games__promo-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1; /* Allow text to grow */
}

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

.page-fishing-games__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Transparent white on dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

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

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

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #f9f9f9;
    color: #333333;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-fishing-games__faq-answer p {
    margin: 0;
    color: #555555;
}

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

.page-fishing-games__cta-content {
    background-color: #f9f9f9;
    padding: 50px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 500px;
    }
    .page-fishing-games__hero-title {
        font-size: 2.5em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    /* Mobile button responsive styles */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__cta-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
      overflow: hidden !important;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Mobile image responsive styles */
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsive styles */
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__content-grid,
    .page-fishing-games__game-cards,
    .page-fishing-games__steps-grid,
    .page-fishing-games__tips-list,
    .page-fishing-games__promo-cards,
    .page-fishing-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px; /* Add padding for mobile */
        padding-right: 15px; /* Add padding for mobile */
    }
    
    .page-fishing-games__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__game-types-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        padding: 40px 0;
    }
    .page-fishing-games__grid-item,
    .page-fishing-games__card,
    .page-fishing-games__step-item,
    .page-fishing-games__tip-item,
    .page-fishing-games__promo-card,
    .page-fishing-games__faq-item {
        margin-left: 0;
        margin-right: 0;
    }
    .page-fishing-games__faq-question {
      padding: 15px 20px;
      font-size: 1.1em;
    }
    .page-fishing-games__faq-question h3 {
      font-size: 1.1em;
    }
    .page-fishing-games__faq-answer {
      padding: 0 20px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px 20px;
    }
}

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