/* style/fishing-games.css */

/* Variables */
:root {
    --page-fishing-games-primary-color: #017439;
    --page-fishing-games-secondary-color: #FFFFFF;
    --page-fishing-games-text-dark: #333333;
    --page-fishing-games-text-light: #ffffff;
    --page-fishing-games-bg-dark: #121212; /* Inherited from body */
    --page-fishing-games-register-color: #C30808;
    --page-fishing-games-login-color: #C30808;
    --page-fishing-games-bg-white: #FFFFFF;
    --page-fishing-games-font-yellow: #FFFF00;
}

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

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

.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--page-fishing-games-text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-fishing-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--page-fishing-games-text-light);
}

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

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

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

.page-fishing-games__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--page-fishing-games-text-light);
    color: var(--page-fishing-games-primary-color);
    border-color: var(--page-fishing-games-text-light);
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--page-fishing-games-text-light);
}

.page-fishing-games__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--page-fishing-games-text-light);
}

.page-fishing-games__about-section,
.page-fishing-games__strategy-section,
.page-fishing-games__start-playing-section {
    background-color: var(--page-fishing-games-primary-color);
    padding: 80px 0;
    color: var(--page-fishing-games-text-light);
}

.page-fishing-games__games-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section {
    background-color: var(--page-fishing-games-bg-dark);
    padding: 80px 0;
    color: var(--page-fishing-games-text-light);
}

.page-fishing-games__features-grid,
.page-fishing-games__game-list-grid,
.page-fishing-games__promotion-grid,
.page-fishing-games__strategy-grid,
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__feature-item,
.page-fishing-games__game-card,
.page-fishing-games__promotion-card,
.page-fishing-games__strategy-card,
.page-fishing-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--page-fishing-games-text-light);
}

.page-fishing-games__feature-item:hover,
.page-fishing-games__game-card:hover,
.page-fishing-games__promotion-card:hover,
.page-fishing-games__strategy-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__feature-image,
.page-fishing-games__game-image,
.page-fishing-games__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-fishing-games__feature-title,
.page-fishing-games__game-title,
.page-fishing-games__promotion-title,
.page-fishing-games__strategy-title,
.page-fishing-games__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-fishing-games-text-light);
}

.page-fishing-games__game-title a {
    color: var(--page-fishing-games-text-light);
    text-decoration: none;
}

.page-fishing-games__game-title a:hover {
    color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__feature-description,
.page-fishing-games__game-description,
.page-fishing-games__promotion-description,
.page-fishing-games__strategy-description,
.page-fishing-games__step-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--page-fishing-games-secondary-color);
    color: var(--page-fishing-games-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

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

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 20px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
}

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

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__features-grid,
    .page-fishing-games__game-list-grid,
    .page-fishing-games__promotion-grid,
    .page-fishing-games__strategy-grid,
    .page-fishing-games__steps-grid {
        grid-template-columns: 1fr;
    }

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

    .page-fishing-games__about-section,
    .page-fishing-games__games-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__start-playing-section,
    .page-fishing-games__faq-section {
        padding: 50px 0;
    }

    /* Mobile image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-fishing-games__feature-image,
    .page-fishing-games__game-image,
    .page-fishing-games__promotion-image {
        height: auto !important;
    }
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__feature-item,
    .page-fishing-games__game-card,
    .page-fishing-games__promotion-card,
    .page-fishing-games__strategy-card,
    .page-fishing-games__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Ensure content area images are not too small */
    .page-fishing-games__feature-item img,
    .page-fishing-games__game-card img,
    .page-fishing-games__promotion-card img {
        width: 100%; /* Occupy full width of card */
        height: auto;
        max-height: 300px; /* Cap height for better mobile display */
        object-fit: cover;
    }

    /* FAQ padding for mobile */
    .page-fishing-games__faq-question,
    .page-fishing-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-description {
        font-size: 0.9em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-intro {
        font-size: 0.9em;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        font-size: 0.9em;
    }
}