/* style/fishing-games.css */

/* Custom Properties */
:root {
    --k8-primary: #11A84E;
    --k8-secondary: #22C768;
    --k8-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --k8-card-bg: #11271B;
    --k8-background: #08160F;
    --k8-text-main: #F2FFF6;
    --k8-text-secondary: #A7D9B8;
    --k8-border: #2E7A4E;
    --k8-glow: #57E38D;
    --k8-gold: #F2C14E;
    --k8-divider: #1E3A2A;
    --k8-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-fishing-games {
    font-family: Arial, sans-serif;
    color: var(--k8-text-main); /* Default text color for the page */
    background-color: var(--k8-background);
}

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

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

.page-fishing-games__section-title {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    color: var(--k8-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--k8-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-fishing-games__highlight {
    color: var(--k8-gold);
    font-weight: bold;
}

.page-fishing-games__inline-link {
    color: var(--k8-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__inline-link:hover {
    color: var(--k8-primary);
    text-decoration: underline;
}

/* Hero Section */
.page-fishing-games__hero-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    position: relative;
}

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to slightly overlap the image, but not cover text */
    background: rgba(8, 22, 15, 0.85); /* Semi-transparent dark background */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--k8-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__description {
    font-size: 1.2rem;
    color: var(--k8-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

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

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

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-fishing-games__btn-secondary:hover {
    background: var(--k8-glow);
    color: var(--k8-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Video Section */
.page-fishing-games__intro-video-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-fishing-games__video-link-wrapper {
    display: block;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%; /* Ensure width is 100% */
    max-width: 100%; /* Ensure max-width is 100% */
    box-sizing: border-box;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Fishing Games Section */
.page-fishing-games__about-fishing-games {
    background-color: var(--k8-background);
}

.page-fishing-games__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-fishing-games__image-block {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

/* Game Types Section */
.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__card {
    background-color: var(--k8-card-bg);
    border: 1px solid var(--k8-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: var(--k8-text-main); /* Light text on dark card background */
}

.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__card-title {
    font-size: 1.5rem;
    color: var(--k8-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__card-text {
    font-size: 1rem;
    color: var(--k8-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-fishing-games__step-card {
    background-color: var(--k8-card-bg);
    border: 1px solid var(--k8-border);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--k8-text-main); /* Light text on dark card background */
}

.page-fishing-games__step-title {
    font-size: 1.3rem;
    color: var(--k8-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__step-text {
    font-size: 1rem;
    color: var(--k8-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-fishing-games__tips-text {
    margin-top: 40px;
    font-style: italic;
}

/* Promotions Section */
.page-fishing-games__promotion-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Platform Features Section */
.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-item {
    background-color: var(--k8-card-bg);
    border: 1px solid var(--k8-border);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--k8-text-main); /* Light text on dark card background */
}

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

.page-fishing-games__feature-text {
    font-size: 1rem;
    color: var(--k8-text-secondary);
    line-height: 1.6;
}

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

.page-fishing-games__faq-item {
    background-color: var(--k8-card-bg);
    border: 1px solid var(--k8-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--k8-text-main); /* Light text on dark card background */
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--k8-text-main);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.1);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--k8-glow);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--k8-text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
}

/* Call to Action Bottom */
.page-fishing-games__cta-bottom {
    padding-bottom: 80px;
}

.page-fishing-games__center-text {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }

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

    .page-fishing-games__grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-fishing-games__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }
}

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

    .page-fishing-games__hero-section {
        min-height: 500px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-fishing-games__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-fishing-games__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

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

    .page-fishing-games__container,
    .page-fishing-games__hero-content,
    .page-fishing-games__video-link-wrapper,
    .page-fishing-games__video-wrapper,
    .page-fishing-games__card,
    .page-fishing-games__step-card,
    .page-fishing-games__feature-item,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-fishing-games__image,
    .page-fishing-games__card-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .page-fishing-games__text-block {
        font-size: 0.95rem;
    }

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

    .page-fishing-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
    
    .page-fishing-games__intro-video-section,
    .page-fishing-games__video-section {
        padding-top: 10px !important; /* body handles header offset */
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-content {
        margin-top: -40px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-fishing-games__description {
        font-size: 0.9rem;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        font-size: 0.9rem;
    }
}