/* style/fishing-games.css */

/* Variables from custom palette */
:root {
    --page-fishing-games-main-color: #C91F17; /* Deep Red */
    --page-fishing-games-aux-color: #E53935; /* Brighter Red */
    --page-fishing-games-card-bg: #D32F2F;
    --page-fishing-games-bg-main: #B71C1C;
    --page-fishing-games-text-main: #FFF5E1;
    --page-fishing-games-border-color: #F2B544;
    --page-fishing-games-glow-color: #FFCC66;
    --page-fishing-games-gold-color: #F4D34D;
    --page-fishing-games-deep-red: #7A0E0E;
    --page-fishing-games-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --page-fishing-games-button-text-dark: #333333; /* For contrast on gold buttons */
}

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

/* Ensure body padding is handled by shared.css, this page's sections start with small top padding */
.page-fishing-games__hero-section,
.page-fishing-games__video-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--page-fishing-games-bg-main); /* Dark background for hero */
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Min size for all images */
}

.page-fishing-games__hero-content {
    max-width: 800px;
    margin-top: 20px;
}

.page-fishing-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-fishing-games-text-main);
}

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

.page-fishing-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-fishing-games__btn-primary {
    background: var(--page-fishing-games-button-gradient);
    color: var(--page-fishing-games-button-text-dark); /* Dark text for gold gradient */
    border: 2px solid var(--page-fishing-games-gold-color);
    box-shadow: 0 5px 15px rgba(244, 211, 77, 0.4); /* Gold glow */
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 211, 77, 0.6);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--page-fishing-games-border-color);
    color: var(--page-fishing-games-button-text-dark);
    transform: translateY(-3px);
}

.page-fishing-games__btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

.page-fishing-games__btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Section Titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-fishing-games-text-main);
    position: relative;
    padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-fishing-games-gold-color);
    border-radius: 2px;
}

/* About Section */
.page-fishing-games__about-section {
    padding: 80px 0;
    background-color: var(--page-fishing-games-bg-main);
}

.page-fishing-games__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-fishing-games__text-block {
    flex: 1;
}

.page-fishing-games__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-fishing-games__image-wrapper {
    flex: 1;
    min-width: 300px; /* Ensure image wrapper has a minimum width */
}

.page-fishing-games__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Min size for all images */
}

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

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

.page-fishing-games__feature-card,
.page-fishing-games__faq-item,
.page-fishing-games__game-card {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--page-fishing-games-text-main);
}

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

.page-fishing-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    min-height: 200px; /* Min size for all images */
}

.page-fishing-games__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--page-fishing-games-text-main);
}

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

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

.page-fishing-games__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--page-fishing-games-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--page-fishing-games-gold-color);
    margin-right: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.page-fishing-games__step-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--page-fishing-games-text-main);
}

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

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: 80px 0;
    background-color: var(--page-fishing-games-deep-red);
}

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

.page-fishing-games__game-card {
    background-color: var(--page-fishing-games-card-bg);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-fishing-games-text-main);
    display: flex;
    flex-direction: column;
}

.page-fishing-games__game-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 200px; /* Min size for all images */
}

.page-fishing-games__game-card p {
    flex-grow: 1; /* Make sure paragraphs take available space */
    margin-bottom: 20px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 80px 0;
    background-color: var(--page-fishing-games-main-color); /* Use main brand color */
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__promo-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-fishing-games__promo-content {
    flex: 1;
    min-width: 300px;
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

.page-fishing-games__promo-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-fishing-games__promo-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--page-fishing-games-gold-color);
    font-weight: bold;
}

.page-fishing-games__promo-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Max width for promo image */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Min size for all images */
}

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

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

.page-fishing-games__faq-item {
    background-color: var(--page-fishing-games-card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--page-fishing-games-text-main);
    overflow: hidden; /* For details tag */
}

.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(--page-fishing-games-deep-red); /* Slightly different background for question */
    border-bottom: 1px solid var(--page-fishing-games-main-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom: none;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-fishing-games__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    color: var(--page-fishing-games-text-main);
    background-color: var(--page-fishing-games-card-bg);
}

/* Final CTA Section */
.page-fishing-games__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-fishing-games-main-color);
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-fishing-games__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-fishing-games__content-grid {
        flex-direction: column;
    }
    .page-fishing-games__promo-flex {
        flex-direction: column;
    }
    .page-fishing-games__promo-image-wrapper {
        order: -1; /* Image above content on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 0 15px;
    }

    /* All images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image containers */
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__image-wrapper,
    .page-fishing-games__feature-card,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* All buttons */
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .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-left: 15px;
        padding-right: 15px;
        margin: 5px 0; /* Add vertical margin for stacked buttons */
    }
    
    /* Button containers */
    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-fishing-games__hero-section {
        padding: 40px 0;
    }

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

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

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

    .page-fishing-games__about-section,
    .page-fishing-games__features-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final {
        padding: 50px 0;
    }

    .page-fishing-games__step-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .page-fishing-games__step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-fishing-games__cta-title {
        font-size: 2em;
    }
    
    /* Small top padding for sections, as body handles header offset */
    .page-fishing-games__hero-section,
    .page-fishing-games__video-section {
        padding-top: 10px !important;
    }

    /* Specific for game card buttons to stack */
    .page-fishing-games__game-card .page-fishing-games__btn-primary {
        margin: 0 auto;
    }
}