/* style/fishing-games.css */

/* Variables for colors */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --button-register-color: #C30808;
    --button-login-color: #C30808;
    --button-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
}

/* Base styles for the page */
.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(--secondary-color); /* Matches body background from shared.css */
}

/* Section common styles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-fishing-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__paragraph--white {
    color: var(--text-light);
}

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

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-fishing-games__cta-buttons--center {
    text-align: center;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-fishing-games__btn-primary:hover {
    background-color: #a40707; /* Darken red */
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background-color: var(--button-login-color);
    color: var(--button-font-color);
    border: 2px solid var(--button-login-color);
}

.page-fishing-games__btn-secondary:hover {
    background-color: #a40707; /* Darken red */
    transform: translateY(-2px);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.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;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    padding: 80px 0;
}

.page-fishing-games__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
    justify-items: center;
}

.page-fishing-games__grid-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Video Section */
.page-fishing-games__video-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* Features Section */
.page-fishing-games__features-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-fishing-games__feature-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-5px);
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__card-description {
    font-size: 1em;
    color: var(--text-dark);
}

/* Promotion Section */
.page-fishing-games__promo-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__promo-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-fishing-games__how-to-play-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-fishing-games__list-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__list-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

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

.page-fishing-games__list-item p {
    text-align: left;
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 0;
}

.page-fishing-games__list-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__list-item a:hover {
    color: #005a2e; /* Darken primary color */
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-fishing-games__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-title {
    font-size: 1.25em;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(0deg); /* Explicitly set to 0 for '-' */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 25px; /* Adjust padding when active */
}

.page-fishing-games__faq-answer p {
    margin-top: 0;
    text-align: left;
    font-size: 1em;
}

/* Call to Action Section */
.page-fishing-games__call-to-action {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.2em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__promo-image {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100%;
        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__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__paragraph {
        font-size: 0.95em;
    }
    .page-fishing-games__introduction-section,
    .page-fishing-games__video-section,
    .page-fishing-games__features-section,
    .page-fishing-games__promo-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__call-to-action {
        padding: 60px 0;
    }
    .page-fishing-games__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Enforce minimum size on mobile content images */
        min-height: 200px;
    }
    .page-fishing-games__grid-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-fishing-games__promo-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-fishing-games__video,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-fishing-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__list-item,
    .page-fishing-games__faq-item {
        padding: 20px;
        padding-left: 50px;
    }
    .page-fishing-games__list-item::before {
        top: 20px;
        left: 15px;
    }
    .page-fishing-games__faq-question {
        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;
    }
}

@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.5em;
    }
}