/* style/fishing-games.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* WCAG AA contrast for dark background (body background: var(--bg-dark) which is #08160F) */
    --text-on-dark-bg: var(--color-text-main);
    --text-on-light-bg: #333333; /* For cards with light background */
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for the page */
    background-color: var(--color-background); /* Explicitly set for main content areas if needed, though body handles it */
}

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

.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: 60px 0;
    padding-top: 10px; /* Small top padding as per rules */
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper to container width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-fishing-games__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.page-fishing-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-gold); /* Gold color for H1 */
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-fishing-games__hero-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    min-width: 150px; /* Minimum width for buttons */
}

.page-fishing-games__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* White text for primary button */
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(87, 227, 141, 0.9);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: var(--color-glow); /* Text color for secondary button */
    border: 2px solid var(--color-glow);
}

.page-fishing-games__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold); /* Gold color for section titles */
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-fishing-games__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    text-align: justify;
}

.page-fishing-games__about-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__tips-strategies-section,
.page-fishing-games__cta-section {
    padding: 80px 0;
    background-color: var(--color-background); /* Ensure consistent dark background */
}

.page-fishing-games__popular-games-section,
.page-fishing-games__advantages-section,
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Darker green for contrast sections */
}

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

.page-fishing-games__game-card,
.page-fishing-games__advantage-item,
.page-fishing-games__tip-item {
    background-color: var(--color-card-bg); /* Card background color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border);
}

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

.page-fishing-games__card-title,
.page-fishing-games__advantage-title,
.page-fishing-games__tip-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-text-main); /* Main text color for titles */
    margin-bottom: 10px;
}

.page-fishing-games__card-description,
.page-fishing-games__advantage-description,
.page-fishing-games__tip-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

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

.page-fishing-games__how-to-play-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__steps-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-fishing-games__steps-image .page-fishing-games__image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.page-fishing-games__steps-content {
    flex: 1.5;
    min-width: 300px;
}

.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
}

.page-fishing-games__step-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--color-glow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.page-fishing-games__step-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

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

.page-fishing-games__advantage-icon {
    width: 200px; /* Ensure minimum size requirement */
    height: 150px; /* Ensure minimum size requirement */
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

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

.page-fishing-games__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--color-divider);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--color-text-main);
    font-size: 1.1em;
    border-bottom: 1px solid transparent; /* Placeholder for bottom border */
    transition: border-color 0.3s ease;
}

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

.page-fishing-games__faq-item[open] summary {
    border-color: var(--color-border);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-glow);
    margin-left: 10px;
}

.page-fishing-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-fishing-games__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-fishing-games__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__steps-wrapper {
        flex-direction: column;
    }
    .page-fishing-games__steps-image,
    .page-fishing-games__steps-content {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding: 30px 0;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-fishing-games__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        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;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-fishing-games__text-block {
        font-size: 0.95em;
    }
    .page-fishing-games__about-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__advantages-section,
    .page-fishing-games__tips-strategies-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        padding: 50px 0;
    }

    /* Mobile image, video, container responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__steps-image,
    .page-fishing-games__steps-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-fishing-games__game-card .page-fishing-games__card-image {
        height: auto; /* Allow auto height on mobile */
    }
    .page-fishing-games__advantage-icon {
        width: 100% !important; /* Ensure it respects full width on mobile */
        height: auto !important;
        max-width: 200px !important; /* Cap max width to prevent excessive size */
        margin: 0 auto 15px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-fishing-games__button-group {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}