/* style/fishing-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: var(--black-color, #000000); /* Assuming --black-color from shared.css is dark */
}

.page-fishing-games {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
    font-family: 'Arial', sans-serif;
}

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

.page-fishing-games__section-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-fishing-games__section-description {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: var(--text-light);
    line-height: 1.6;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Apply header offset */
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-fishing-games__hero-content {
    max-width: 600px;
    z-index: 1;
    text-align: left;
}

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

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

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

.page-fishing-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

/* Buttons */
.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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary {
    background-color: var(--login-color); /* Use login color for primary action */
    color: var(--secondary-color);
    border: 2px solid var(--login-color);
}

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

.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);
}

.page-fishing-games__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
}

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

.page-fishing-games__intro-section .page-fishing-games__section-title,
.page-fishing-games__intro-section .page-fishing-games__section-description {
    color: var(--text-dark);
}

.page-fishing-games__intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-fishing-games__intro-image {
    flex: 1;
    border-radius: 10px;
    object-fit: cover;
}

.page-fishing-games__intro-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-fishing-games__intro-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-fishing-games__intro-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__intro-text a:hover {
    text-decoration: underline;
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

.page-fishing-games__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-fishing-games__feature-item p {
    line-height: 1.6;
    color: var(--text-light);
}

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

.page-fishing-games__popular-games-section .page-fishing-games__section-title,
.page-fishing-games__popular-games-section .page-fishing-games__section-description {
    color: var(--text-dark);
}

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

.page-fishing-games__game-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
}

.page-fishing-games__game-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-fishing-games__game-card-title {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-fishing-games__game-card-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* How To Play Section */
.page-fishing-games__how-to-play-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

.page-fishing-games__step-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-fishing-games__step-item p {
    line-height: 1.6;
    color: var(--text-light);
}

.page-fishing-games__step-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__step-item a:hover {
    text-decoration: underline;
}

.page-fishing-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-fishing-games__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-fishing-games__video-wrapper:hover .page-fishing-games__video-overlay {
    opacity: 1;
}

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

.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-description {
    color: var(--text-dark);
}

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

.page-fishing-games__promo-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
}

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

.page-fishing-games__promo-title {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-fishing-games__promo-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 15px;
}

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

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

.page-fishing-games__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    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;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: darken(var(--primary-color), 10%);
}

.page-fishing-games__faq-question-text {
    margin: 0;
    color: inherit;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    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, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-light);
}

.page-fishing-games__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-fishing-games__cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.page-fishing-games__cta-section .page-fishing-games__section-title,
.page-fishing-games__cta-section .page-fishing-games__section-description {
    color: var(--secondary-color);
}

/* Global Image Styles */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images fill their space nicely */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3.5em;
    }
    .page-fishing-games__hero-image-wrapper {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
        padding-top: calc(60px + var(--header-offset, 120px)); /* Mobile header offset */
    }

    .page-fishing-games__hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 15px;
    }

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

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

    .page-fishing-games__hero-cta-buttons {
        justify-content: center;
    }

    .page-fishing-games__hero-image-wrapper {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 40px;
        padding: 0 15px;
    }

    .page-fishing-games__intro-content {
        flex-direction: column;
    }

    .page-fishing-games__intro-image {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    .page-fishing-games__intro-text,
    .page-fishing-games__feature-item,
    .page-fishing-games__game-card,
    .page-fishing-games__step-item,
    .page-fishing-games__promo-card,
    .page-fishing-games__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

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

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

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__video-wrapper,
    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__game-cards-grid,
    .page-fishing-games__promo-grid,
    .page-fishing-games__grid-features,
    .page-fishing-games__steps-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important; /* For button groups */
        gap: 15px; /* Adjust gap for smaller screens */
    }

    .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__video-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header on mobile */
    }

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

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

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

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__btn-large {
        font-size: 1.1em;
        padding: 15px 25px;
    }
}