/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFFFF; /* Adjusted for contrast */
    --background-light: #ffffff;
    --background-dark: #121212; /* From shared.css */
}

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

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

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: brightness(0.7); /* Darken image for text readability */
}

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

.page-fishing-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

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

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

.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; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-fishing-games__btn-primary {
    background-color: var(--button-register);
    color: var(--button-font-color); /* Adjusted for contrast */
    border: 2px solid var(--button-register);
}

.page-fishing-games__btn-primary:hover {
    background-color: #a30606; /* Slightly darker red */
    border-color: #a30606;
}

.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-small {
    padding: 10px 20px;
    font-size: 1em;
}

.page-fishing-games__section {
    padding: 60px 20px;
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

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

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: inherit;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title {
    color: var(--text-light);
}

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

.page-fishing-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-fishing-games__feature-list,
.page-fishing-games__step-list,
.page-fishing-games__tip-list,
.page-fishing-games__security-list,
.page-fishing-games__app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-fishing-games__list-item {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-fishing-games__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.page-fishing-games__dark-bg .page-fishing-games__list-item::before {
    color: var(--secondary-color);
}

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

.page-fishing-games__card {
    background-color: var(--background-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__dark-bg .page-fishing-games__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-fishing-games__card-content {
    padding: 25px;
}

.page-fishing-games__card-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: inherit;
}

.page-fishing-games__card-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-fishing-games__promo-card .page-fishing-games__card-image {
    height: 200px;
}

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

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

.page-fishing-games__light-bg .page-fishing-games__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.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;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__light-bg .page-fishing-games__faq-question:hover {
    background-color: #f5f5f5;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    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;
}

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

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-fishing-games__app-download-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-fishing-games__app-content {
    flex: 1;
}

.page-fishing-games__app-image-wrapper {
    flex: 1;
    text-align: center;
}

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

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__hero-section {
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-fishing-games__cta-buttons {
        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;
    }

    .page-fishing-games__section {
        padding: 40px 15px;
    }

    .page-fishing-games__container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-fishing-games__container > * {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

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

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

    .page-fishing-games__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 30px auto !important;
    }

    .page-fishing-games__game-cards,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__card {
        margin-left: 15px;
        margin-right: 15px;
        box-sizing: border-box;
    }

    .page-fishing-games__card-image {
        height: 200px;
    }

    .page-fishing-games__card-title {
        font-size: 1.4em;
    }

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

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

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

    .page-fishing-games__app-download-section {
        flex-direction: column;
        gap: 30px;
    }

    .page-fishing-games__app-content,
    .page-fishing-games__app-image-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-description {
        font-size: 0.95em;
    }
    .page-fishing-games__section-title {
        font-size: 1.6em;
    }
    .page-fishing-games__list-item {
        font-size: 1em;
    }
    .page-fishing-games__faq-question {
        font-size: 1em;
    }
    .page-fishing-games__faq-answer p {
        font-size: 0.95em;
    }
}