/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-yellow: #FFFF00;
    --body-background-color: #121212; /* From shared.css */
}

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

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

/* Section styling */
.page-fishing-games__hero-section,
.page-fishing-games__introduction-section,
.page-fishing-games__games-showcase-section,
.page-fishing-games__guide-section,
.page-fishing-games__strategy-section,
.page-fishing-games__promotions-section,
.page-fishing-games__safety-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-final-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-fishing-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-fishing-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d27 100%);
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-fishing-games__hero-content {
    max-width: 800px;
    z-index: 1;
    margin: 0 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-on-dark);
}

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

.page-fishing-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.8); /* Allowed for background images to ensure text contrast */
}

/* General Titles and Text */
.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from section for contrast */
}

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-text-yellow);
    border: 2px solid var(--button-register-bg);
}

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

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--text-on-dark);
    color: var(--primary-color);
}

.page-fishing-games__light-bg .page-fishing-games__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-fishing-games__light-bg .page-fishing-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-fishing-games__game-card,
.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 8px 16px 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;
}

.page-fishing-games__light-bg .page-fishing-games__game-card,
.page-fishing-games__light-bg .page-fishing-games__promo-card {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__game-card:hover,
.page-fishing-games__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__game-image,
.page-fishing-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Enforce minimum size */
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: inherit;
}

.page-fishing-games__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: inherit;
}

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

.page-fishing-games__guide-list li,
.page-fishing-games__strategy-list li {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: var(--text-on-dark);
}

.page-fishing-games__light-bg .page-fishing-games__guide-list li,
.page-fishing-games__light-bg .page-fishing-games__strategy-list li {
    background-color: #f9f9f9;
    color: var(--text-on-light);
}

.page-fishing-games__list-item-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-fishing-games__list-item-title + p {
    margin-top: 0;
}

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

.page-fishing-games__strategy-image,
.page-fishing-games__safety-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Enforce minimum size */
    min-width: 200px; /* Enforce minimum size */
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-dark);
}

.page-fishing-games__light-bg .page-fishing-games__faq-item {
    background-color: #f9f9f9;
    color: var(--text-on-light);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__light-bg .page-fishing-games__faq-question {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    font-size: 1.1em;
    color: inherit;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Important to override any other max-height */
    padding: 20px;
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #004d27 0%, var(--primary-color) 100%);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__games-showcase-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__safety-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding: 60px 0;
    }

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

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

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

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

    .page-fishing-games__game-cards,
    .page-fishing-games__promotion-cards {
        grid-template-columns: 1fr;
    }

    .page-fishing-games__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__strategy-image,
    .page-fishing-games__safety-image,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Video section padding-top for mobile */
    .page-fishing-games__hero-section {
      padding-top: var(--header-offset, 120px) !important;
    }

    /* Button container mobile adaptation */
    .page-fishing-games__hero-cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-fishing-games__cta-final-section .page-fishing-games__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

/* Ensure content area images maintain minimum size */
.page-fishing-games__container img {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast fixes if needed (example) */
.page-fishing-games__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-fishing-games__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}