/* style/fishing-games.css */

/* Custom colors */
:root {
    --color-bg-primary: #08160F; /* Background */
    --color-bg-card: #11271B; /* Card BG */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

.page-fishing-games {
    background-color: var(--color-bg-primary);
    color: var(--color-text-main); /* Default text color for the page */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom before footer */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 40px; /* Small top padding, more bottom padding */
    overflow: hidden;
    box-sizing: border-box;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-fishing-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
}

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

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-gold);
    color: var(--color-bg-primary);
}

/* General Section Styling */
.page-fishing-games__section {
    padding: 50px 20px;
    margin-bottom: 30px;
    background-color: var(--color-bg-primary); /* Default section background */
    border-radius: 10px;
    box-sizing: border-box;
}

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

.page-fishing-games__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__text-block {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Feature Grid */
.page-fishing-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-fishing-games__feature-item {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-fishing-games__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-fishing-games__step-item {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--color-border);
}

.page-fishing-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-fishing-games__tip-item {
    background-color: var(--color-bg-card);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    border-left: 5px solid var(--color-gold);
}

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

/* Video Section */
.page-fishing-games__video-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 50px;
    text-align: center;
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for video */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--color-deep-green); /* Placeholder background */
    width: 100%; /* Desktop width */
    box-sizing: border-box;
}

.page-fishing-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

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

/* FAQ Section */
.page-fishing-games__faq {
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-fishing-games__faq-list {
    margin-top: 30px;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    background-color: var(--color-border);
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.7); /* Lighter hover for deep green */
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-left: 15px;
}

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-bg-card);
    text-align: justify;
}

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

.page-fishing-games__faq-answer a.page-fishing-games__faq-link {
    color: var(--color-gold);
    text-decoration: underline;
}

.page-fishing-games__faq-answer a.page-fishing-games__faq-link:hover {
    color: var(--color-glow);
}


/* Final CTA Section */
.page-fishing-games__cta-final {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-deep-green);
    border-radius: 10px;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-fishing-games__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding: 10px 15px 30px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Adjust clamp for mobile H1 */
    }

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

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

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

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

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

    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* Video responsiveness */
    .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-section {
      padding-top: 10px !important; /* body already handles --header-offset */
      padding-left: 15px;
      padding-right: 15px;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-title,
    .page-fishing-games__step-title {
        font-size: 1.3rem;
    }

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

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

/* Ensure no filter on images */
.page-fishing-games img {
    filter: none !important;
}

/* Ensure content area images meet min size */
.page-fishing-games__introduction img,
.page-fishing-games__features img,
.page-fishing-games__how-to-play img,
.page-fishing-games__faq img {
    min-width: 200px;
    min-height: 200px;
}