/* style/fishing-games.css */

/* Custom Colors */
:root {
    --page-fishing-games-primary-color: #11A84E;
    --page-fishing-games-secondary-color: #22C768;
    --page-fishing-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-fishing-games-card-bg: #11271B;
    --page-fishing-games-background: #08160F; /* This will be the body background, shared.css likely sets body bg to var(--background-color) */
    --page-fishing-games-text-main: #F2FFF6;
    --page-fishing-games-text-secondary: #A7D9B8;
    --page-fishing-games-border: #2E7A4E;
    --page-fishing-games-glow: #57E38D;
    --page-fishing-games-gold: #F2C14E;
    --page-fishing-games-divider: #1E3A2A;
    --page-fishing-games-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-fishing-games-text-main); /* Default text color for dark background */
    background-color: var(--page-fishing-games-background); /* Ensure consistency if shared.css doesn't cover main */
    line-height: 1.6;
}

/* Container for content sections */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-fishing-games__container--centered {
    text-align: center;
}

/* Section styling */
.page-fishing-games__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-fishing-games-divider);
}

.page-fishing-games__section:last-of-type {
    border-bottom: none;
}

/* Dark section styling for contrast */
.page-fishing-games__dark-section {
    background-color: var(--page-fishing-games-deep-green);
    color: var(--page-fishing-games-text-main);
}

/* Titles */
.page-fishing-games__section-title {
    font-size: clamp(28px, 3.5vw, 42px); /* Clamp for responsive H2 */
    font-weight: 700;
    color: var(--page-fishing-games-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-fishing-games__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Clamp for responsive H1 */
    font-weight: 900;
    color: var(--page-fishing-games-gold);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__card-title,
.page-fishing-games__list-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--page-fishing-games-text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Text blocks */
.page-fishing-games__text-block {
    font-size: 18px;
    color: var(--page-fishing-games-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 40px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-fishing-games__hero-description {
    font-size: 20px;
    color: var(--page-fishing-games-text-secondary);
    margin-bottom: 40px;
}

/* CTA Buttons */
.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    min-width: 180px; /* Minimum width for buttons */
}

.page-fishing-games__btn-primary {
    background: var(--page-fishing-games-button-gradient);
    color: var(--page-fishing-games-text-main);
    border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--page-fishing-games-glow);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--page-fishing-games-gold);
    color: var(--page-fishing-games-background);
    box-shadow: 0 0 15px var(--page-fishing-games-gold);
}

.page-fishing-games__btn-link {
    background-color: transparent;
    color: var(--page-fishing-games-glow);
    border: 1px solid var(--page-fishing-games-glow);
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 15px;
}

.page-fishing-games__btn-link:hover {
    background-color: var(--page-fishing-games-glow);
    color: var(--page-fishing-games-background);
}

/* Image with content wrapper */
.page-fishing-games__image-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-fishing-games__image-content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-fishing-games__image-content-wrapper img {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-fishing-games__image-content-wrapper p {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

/* Features Grid */
.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: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-fishing-games-border);
}

.page-fishing-games__feature-card .page-fishing-games__card-title {
    color: var(--page-fishing-games-gold);
}

.page-fishing-games__feature-card .page-fishing-games__card-description {
    color: var(--page-fishing-games-text-secondary);
}

/* Popular Games Grid */
.page-fishing-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__game-card {
    background-color: var(--page-fishing-games-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-fishing-games-border);
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__game-card .page-fishing-games__card-title {
    color: var(--page-fishing-games-gold);
    flex-grow: 1;
}

.page-fishing-games__game-card .page-fishing-games__card-description {
    color: var(--page-fishing-games-text-secondary);
    font-size: 16px;
}

.page-fishing-games__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Guide List */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__guide-item {
    background-color: var(--page-fishing-games-card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--page-fishing-games-border);
}

.page-fishing-games__guide-item .page-fishing-games__list-title {
    color: var(--page-fishing-games-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-fishing-games__guide-item p {
    color: var(--page-fishing-games-text-secondary);
    font-size: 17px;
}

/* Promotions Grid */
.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: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-fishing-games-border);
}

.page-fishing-games__promotion-card .page-fishing-games__card-title {
    color: var(--page-fishing-games-glow);
}

.page-fishing-games__promotion-card .page-fishing-games__card-description {
    color: var(--page-fishing-games-text-secondary);
}

/* FAQ Section */
.page-fishing-games__faq-list {
    margin-top: 40px;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    color: var(--page-fishing-games-text-main);
    background-color: var(--page-fishing-games-deep-green);
    border-bottom: 1px solid var(--page-fishing-games-border);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom: 1px solid var(--page-fishing-games-divider);
}

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

.page-fishing-games__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-fishing-games-gold);
}

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

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

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 17px;
    color: var(--page-fishing-games-text-secondary);
}

/* Call to Action Section */
.page-fishing-games__call-to-action-section {
    padding: 80px 0;
    text-align: center;
}

.page-fishing-games__call-to-action-section .page-fishing-games__section-title {
    color: var(--page-fishing-games-gold);
}

.page-fishing-games__call-to-action-section .page-fishing-games__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-fishing-games__hero-image-wrapper {
        max-height: 450px;
    }

    .page-fishing-games__image-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-fishing-games__image-content-wrapper img,
    .page-fishing-games__image-content-wrapper p {
        max-width: 100%;
        min-width: unset;
    }

    .page-fishing-games__image-content-wrapper--reverse {
        flex-direction: column; /* Reset for reverse on mobile */
    }
}

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

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

    .page-fishing-games__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .page-fishing-games__main-title {
        font-size: 30px;
    }

    .page-fishing-games__card-title,
    .page-fishing-games__list-title {
        font-size: 20px;
    }

    .page-fishing-games__text-block {
        font-size: 16px;
    }

    .page-fishing-games__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 30px;
    }

    .page-fishing-games__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        min-width: unset;
    }

    .page-fishing-games__game-card .page-fishing-games__card-image {
        height: 180px;
    }

    /* Mobile image and video responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games video,
    .page-fishing-games__video { /* Assuming there might be a video */
        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__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper,
    .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;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Specific top padding for sections, body already handles header offset */
    .page-fishing-games__hero-section,
    .page-fishing-games__video-section {
        padding-top: 10px !important;
    }

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

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