/* style/fishing-games.css */

/* Variables from custom color palette */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* This is the body background from shared.css */
}

/* Base styles for the page content */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--deep-navy); /* From shared.css, ensuring consistency */
    line-height: 1.6;
}

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

.page-fishing-games__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-fishing-games__description,
.page-fishing-games__text-block {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button fits container */
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-fishing-games__btn-primary:hover {
    box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-fishing-games__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
    transform: translateY(-2px);
}

.page-fishing-games__btn-play {
    background: var(--gold-color);
    color: var(--primary-color);
    border: none;
    font-size: 16px;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(242, 193, 78, 0.3);
}

.page-fishing-games__btn-play:hover {
    background: #e0b03d;
    transform: translateY(-1px);
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Images */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Consistent with design */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    margin-bottom: 50px;
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 15px 15px;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    margin: -100px auto 0; /* Pull up slightly over image, but not covering text */
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-fishing-games__main-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

/* About Section */
.page-fishing-games__about-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

/* Features Section */
.page-fishing-games__features-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark section */
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

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

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

.page-fishing-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__feature-icon {
    width: 100%;
    height: 150px; /* Fixed height for feature icons, ensuring min size */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 6px;
}

.page-fishing-games__feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

/* Games Showcase */
.page-fishing-games__games-showcase {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

.page-fishing-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__game-image {
    width: 100%;
    height: 225px; /* Fixed height for game cards, ensuring min size */
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 15px;
}

.page-fishing-games__game-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-fishing-games__game-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 0 20px;
}

.page-fishing-games__btn-play {
    margin-bottom: 20px;
}


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

.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-fishing-games__step-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    counter-increment: step-counter;
    position: relative;
}

.page-fishing-games__step-item::before {
    content: "0" counter(step-counter);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    font-weight: 800;
    color: rgba(242, 193, 78, 0.2);
    z-index: 0;
}

.page-fishing-games__step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-fishing-games__step-description {
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark section */
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__promo-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__promo-item::before {
    content: "⭐"; /* Star emoji for list items */
    margin-right: 15px;
    font-size: 24px;
    flex-shrink: 0;
}

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

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

details.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
    display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
    background: rgba(var(--border-color), 0.5);
}
.page-fishing-games__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--gold-color);
}
.page-fishing-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--deep-navy), 0.5);
    border-radius: 0 0 5px 5px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Download CTA Section */
.page-fishing-games__download-cta-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--divider-color);
}

.page-fishing-games__cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-fishing-games__cta-text-content {
    flex: 1;
    text-align: left;
}

.page-fishing-games__cta-text-content .page-fishing-games__section-title {
    text-align: left;
    padding-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
}

.page-fishing-games__cta-text-content .page-fishing-games__description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    font-size: 16px;
}

.page-fishing-games__cta-flex .page-fishing-games__cta-buttons {
    flex-shrink: 0;
    margin-top: 0;
    justify-content: flex-end;
}


/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__section-title {
        font-size: 28px;
        margin-bottom: 20px;
        padding-top: 30px;
    }

    .page-fishing-games__description,
    .page-fishing-games__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Buttons */
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-play,
    .page-fishing-games a[class*="button"],
    .page-fishing-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 25px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px; /* Add padding to button container */
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Small top padding */
        margin-bottom: 30px;
    }

    .page-fishing-games__hero-image-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }

    .page-fishing-games__hero-content {
        margin: -60px auto 0;
        padding: 25px;
        border-radius: 10px;
    }

    .page-fishing-games__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    /* Features Section */
    .page-fishing-games__features-section {
        padding: 40px 0;
    }

    .page-fishing-games__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-fishing-games__feature-card {
        padding: 20px;
    }

    .page-fishing-games__feature-icon {
        height: 120px; /* Adjust height for mobile */
        margin-bottom: 15px;
    }

    .page-fishing-games__feature-title {
        font-size: 20px;
    }

    /* Games Showcase */
    .page-fishing-games__games-showcase {
        padding: 40px 0;
    }

    .page-fishing-games__game-cards-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-fishing-games__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-fishing-games__game-title {
        font-size: 20px;
    }

    /* How to Play Section */
    .page-fishing-games__how-to-play-section {
        padding: 40px 0;
    }

    .page-fishing-games__steps-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-fishing-games__step-item {
        padding: 25px;
    }

    .page-fishing-games__step-item::before {
        font-size: 40px;
        top: -15px;
    }

    .page-fishing-games__step-title {
        font-size: 20px;
    }

    /* Promotions Section */
    .page-fishing-games__promotions-section {
        padding: 40px 0;
    }

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

    .page-fishing-games__promo-item {
        padding: 15px;
        font-size: 15px;
    }

    .page-fishing-games__promo-item::before {
        margin-right: 10px;
        font-size: 20px;
    }

    /* FAQ Section */
    .page-fishing-games__faq-section {
        padding: 40px 0;
    }

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

    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
        padding: 15px;
    }
    .page-fishing-games__faq-qtext {
        font-size: 16px;
    }
    .page-fishing-games__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Download CTA Section */
    .page-fishing-games__download-cta-section {
        padding: 40px 0;
    }

    .page-fishing-games__cta-flex {
        flex-direction: column; /* Stack vertically */
        gap: 30px;
        text-align: center;
    }

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

    .page-fishing-games__cta-text-content .page-fishing-games__section-title {
        text-align: center;
        font-size: 26px;
    }

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

    .page-fishing-games__cta-flex .page-fishing-games__cta-buttons {
        justify-content: center;
        margin-top: 0;
    }

    /* General image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}