/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-btn-bg: #C30808;
    --register-login-btn-text: #FFFF00;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --bg-dark: #1a1a2e;
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--bg-dark);
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    font-weight: bold;
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    color: var(--text-on-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

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

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text */
    border-radius: 10px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.page-fishing-games__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-fishing-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

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

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Intro Section */
.page-fishing-games__intro-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

/* Features Section */
.page-fishing-games__features-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.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);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__feature-text {
    font-size: 1em;
    color: var(--secondary-color);
    flex-grow: 1;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

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

.page-fishing-games__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-fishing-games__game-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-fishing-games__game-link:hover {
    color: var(--primary-color);
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    color: var(--text-on-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-fishing-games__btn-play {
    display: inline-block;
    background-color: var(--register-login-btn-bg);
    color: var(--register-login-btn-text);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

/* Strategy Section */
.page-fishing-games__strategy-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-fishing-games__strategy-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-fishing-games__strategy-item:hover {
    transform: translateY(-10px);
}

.page-fishing-games__strategy-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-fishing-games__strategy-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__strategy-text {
    font-size: 1em;
    color: var(--secondary-color);
    flex-grow: 1;
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

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

.page-fishing-games__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-fishing-games__promotion-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__promotion-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__promotion-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-fishing-games__promotion-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-fishing-games__promotion-link:hover {
    color: var(--primary-color);
}

.page-fishing-games__promotion-text {
    font-size: 0.95em;
    color: var(--text-on-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--secondary-color);
}

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

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.page-fishing-games__cta-final-section .page-fishing-games__hero-buttons {
    margin-top: 40px;
}

/* General Image Styles */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .page-fishing-games__section-title {
        font-size: 2em;
        padding-top: 20px;
    }

    .page-fishing-games__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* HERO 主图区域 */
    .page-fishing-games__hero-section {
        flex-direction: column;
        padding: 40px 0;
        padding-top: 0; /* Ensures no double padding if body is handled by shared */
    }

    .page-fishing-games__hero-content {
        padding: 15px;
        margin-top: 20px;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.6);
    }

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

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

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

    /* 通用图片与容器 */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* 按钮与按钮容器 */
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-play,
    .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__hero-buttons,
    .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;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

    /* 其他内容模块 */
    .page-fishing-games__features-grid,
    .page-fishing-games__games-grid,
    .page-fishing-games__strategy-grid,
    .page-fishing-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__game-card,
    .page-fishing-games__strategy-item,
    .page-fishing-games__promotion-card {
        padding: 20px;
    }

    .page-fishing-games__game-image,
    .page-fishing-games__promotion-image {
        height: 150px;
    }

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

    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }

    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 10px 15px 15px 15px;
    }

    .page-fishing-games__cta-bottom {
        margin-top: 30px;
    }
}