/* style/fishing-games.css */

/* Custom CSS Variables from provided color palette */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-fishing-games {
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--background, #08160F); /* Page specific background if different from body */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

.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;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    padding-bottom: 40px; /* Space below image and above content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background, #08160F); /* Ensure dark background */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for hero image */
    object-fit: cover;
    display: block;
    margin-bottom: 20px; /* Space between image and text */
}

.page-fishing-games__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--gold, #F2C14E); /* Using Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-fishing-games__tagline {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

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

/* Buttons */
.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: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* For responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter version of border color */
    transform: translateY(-2px);
}

.page-fishing-games__large-btn {
    padding: 18px 35px;
    font-size: 1.1rem;
}

/* Section Titles */
.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: bold;
}

/* Text Blocks */
.page-fishing-games__text-block {
    font-size: 1rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 25px;
    text-align: justify;
}

/* Image Content within sections */
.page-fishing-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-fishing-games__introduction-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__promotions-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__cta-final-section {
    padding: 60px 0;
    background-color: var(--background, #08160F);
}

/* Dark Sections */
.page-fishing-games__dark-section {
    background-color: var(--deep-green, #0A4B2C); /* Deeper green for contrast */
    padding: 60px 0;
    color: var(--text-main, #F2FFF6);
}

/* Feature List */
.page-fishing-games__feature-list,
.page-fishing-games__strategy-list,
.page-fishing-games__promo-list,
.page-fishing-games__reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 40px;
}

.page-fishing-games__feature-item,
.page-fishing-games__strategy-item,
.page-fishing-games__promo-item,
.page-fishing-games__reason-item {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__feature-title,
.page-fishing-games__strategy-title,
.page-fishing-games__promo-title,
.page-fishing-games__reason-title {
    font-size: 1.4rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__feature-description,
.page-fishing-games__strategy-description,
.page-fishing-games__promo-description,
.page-fishing-games__reason-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
}

/* Game List */
.page-fishing-games__game-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 40px;
}

.page-fishing-games__game-card {
    background-color: var(--card-bg, #11271B);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-fishing-games__game-title {
    font-size: 1.3rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__game-description {
    font-size: 0.9rem;
    color: var(--text-secondary, #A7D9B8);
    flex-grow: 1; /* Make description take available space */
    margin-bottom: 20px;
}

.page-fishing-games__game-btn {
    margin-top: auto; /* Push button to the bottom */
    width: 100%;
}

/* How To Play Section */
.page-fishing-games__step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 40px;
}

.page-fishing-games__step-item {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    position: relative;
    padding-top: 60px; /* Space for step number */
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--glow, #57E38D);
}

.page-fishing-games__step-title {
    font-size: 1.3rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__step-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-fishing-games__faq-list {
    margin-top: 40px;
}

.page-fishing-games__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--deep-green, #0A4B2C); /* Darker background for question */
    border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-fishing-games__faq-question:hover {
    filter: brightness(1.1);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    color: var(--gold, #F2C14E);
    border-bottom: none;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--glow, #57E38D);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

/* Remove default details marker */
.page-fishing-games__faq-item summary {
    list-style: none;
}
.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none;
}

/* CTA Center */
.page-fishing-games__cta-center {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-image {
        max-height: 500px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    }
    .page-fishing-games__feature-list,
    .page-fishing-games__game-list,
    .page-fishing-games__step-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile responsive images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__section,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__features-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__why-choose-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section,
    .page-fishing-games__game-card,
    .page-fishing-games__feature-item,
    .page-fishing-games__strategy-item,
    .page-fishing-games__promo-item,
    .page-fishing-games__reason-item,
    .page-fishing-games__step-item,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Mobile responsive buttons */
    .page-fishing-games__cta-buttons,
    .page-fishing-games__cta-center {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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; /* Add padding to button text if needed */
        padding-right: 15px;
    }

    /* Adjust padding for sections on mobile */
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__features-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__why-choose-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-fishing-games__hero-image {
        max-height: 300px;
        margin-bottom: 15px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-fishing-games__tagline {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .page-fishing-games__feature-item,
    .page-fishing-games__strategy-item,
    .page-fishing-games__promo-item,
    .page-fishing-games__reason-item,
    .page-fishing-games__game-card,
    .page-fishing-games__step-item {
        padding: 20px;
    }

    .page-fishing-games__feature-title,
    .page-fishing-games__strategy-title,
    .page-fishing-games__promo-title,
    .page-fishing-games__reason-title,
    .page-fishing-games__game-title,
    .page-fishing-games__step-title {
        font-size: 1.2rem;
    }

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

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