/* style/fishing-games.css */

/* Variables for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Light text on dark background */
    line-height: 1.6;
    background-color: var(--color-background); /* Ensure consistent dark background */
}

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

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

.page-fishing-games__dark-section {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

.page-fishing-games__section-title {
    font-size: 2.8em;
    color: var(--color-glow);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.6);
}

.page-fishing-games__section-subtitle {
    font-size: 2em;
    color: var(--color-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up slightly over image */
    background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text */
    border-radius: 10px;
    padding: 30px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.8);
}

.page-fishing-games__description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
}

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

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

.page-fishing-games__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background);
    transform: translateY(-3px);
}

/* Image styles */
.page-fishing-games__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-fishing-games__image--center {
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__game-card {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-fishing-games__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-fishing-games__card-title {
    font-size: 1.6em;
    color: var(--color-glow);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__card-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-fishing-games__card-button {
    width: 100%;
    text-align: center;
}

/* How to Play Section */
.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-fishing-games__step-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--color-primary);
}

.page-fishing-games__step-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-fishing-games__step-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

.page-fishing-games__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__tip-item {
    background-color: var(--color-background);
    border-left: 3px solid var(--color-secondary);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--color-text-main);
    font-size: 1em;
}

.page-fishing-games__tip-item strong {
    color: var(--color-glow);
}

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

.page-fishing-games__promotion-item {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-divider);
}

.page-fishing-games__promotion-title {
    font-size: 1.5em;
    color: var(--color-glow);
    margin-bottom: 10px;
}

.page-fishing-games__promotion-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

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

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

.page-fishing-games__feature-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--color-glow)); /* Only allowed for icons, not content images, to enhance visual */
}

.page-fishing-games__feature-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-fishing-games__feature-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

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

.page-fishing-games__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-divider);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-fishing-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-divider);
    list-style: none;
}

.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-fishing-games__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    color: var(--color-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
    background-color: var(--color-background);
}

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

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    background-color: var(--color-deep-green);
    padding: 80px 0;
}

.page-fishing-games__cta-final-content {
    max-width: 800px;
}

/* Responsive Design */

/* Desktop */
@media (min-width: 1025px) {
    .page-fishing-games__hero-content {
        margin-top: -200px; /* More overlap on large screens */
    }
}

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-fishing-games__section-title {
        font-size: 2.2em;
    }

    .page-fishing-games__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

    .page-fishing-games__hero-content {
        margin-top: -100px;
    }

    .page-fishing-games__game-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-fishing-games__promotion-list,
    .page-fishing-games__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    .page-fishing-games__section {
        padding: 40px 0;
    }

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

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

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

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

    .page-fishing-games__hero-content {
        margin-top: -50px; /* Less overlap on mobile */
        padding: 20px 15px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap !important;
    }

    .page-fishing-games__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Images responsive for mobile */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__game-card,
    .page-fishing-games__feature-card,
    .page-fishing-games__promotion-item,
    .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__hero-section {
        padding-top: 10px !important;
    }

    .page-fishing-games__game-list,
    .page-fishing-games__promotion-list,
    .page-fishing-games__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

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

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

    .page-fishing-games__feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* Ensure content images meet minimum size requirements */
.page-fishing-games img:not(.page-fishing-games__feature-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific rule for feature icons to allow smaller sizes while maintaining overall image rule */
.page-fishing-games__feature-icon {
    min-width: 80px; /* Smallest allowed size for these specific icons */
    min-height: 80px;
}