/* style/fishing-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --border-color: #e0e0e0;
    --padding-section: 60px 0;
    --gap-spacing: 20px;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-color);
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Adhering to the 10px top spacing rule for first content block */
    background: linear-gradient(135deg, var(--primary-color), #1a7fb8);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
}

.page-fishing-games__hero-content {
    padding: 40px 15px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background for text on hero */
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-fishing-games__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-light);
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: var(--gap-spacing);
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-fishing-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
    background-color: #1a7fb8;
    transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Intro Section */
.page-fishing-games__intro-section {
    padding: var(--padding-section);
    background-color: var(--background-color);
}

.page-fishing-games__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-fishing-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--gap-spacing);
    margin-bottom: 40px;
}

.page-fishing-games__intro-image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-fishing-games__text-block {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Features Section */
.page-fishing-games__features-section {
    padding: var(--padding-section);
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__feature-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-fishing-games__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
}

/* Guide Section */
.page-fishing-games__guide-section {
    padding: var(--padding-section);
    background-color: var(--background-color);
}

.page-fishing-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-spacing);
    margin-bottom: 40px;
}

.page-fishing-games__guide-item {
    text-align: center;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-fishing-games__guide-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-fishing-games__guide-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: var(--padding-section);
    background-color: #f0f8ff;
}

.page-fishing-games__popular-games-section .page-fishing-games__description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-fishing-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-spacing);
    justify-content: center;
}

.page-fishing-games__game-tile {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__game-tile:hover {
    transform: translateY(-5px);
}

.page-fishing-games__game-tile img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-fishing-games__game-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-fishing-games__game-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--login-color); /* Custom login color */
    color: var(--text-light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__game-btn:hover {
    background-color: #c76506;
}

/* Benefits Section */
.page-fishing-games__benefits-section {
    padding: var(--padding-section);
    background-color: var(--background-color);
}

.page-fishing-games__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-spacing);
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-fishing-games__benefit-item {
    text-align: center;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-fishing-games__benefit-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-fishing-games__benefit-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: var(--padding-section);
    background-color: #f0f8ff;
}

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

.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 8px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.page-fishing-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-fishing-games__faq-question::marker {
    display: none;
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    padding-right: 10px;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: '−';
}

/* General Image Responsiveness */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        margin-top: -80px;
    }

    .page-fishing-games__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-fishing-games__intro-image {
        width: 80%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: 10px !important;
    }

    .page-fishing-games__hero-image {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-fishing-games__hero-content {
        padding: 30px 15px !important;
        margin-top: -60px !important;
    }

    .page-fishing-games__main-title {
        font-size: 2em !important;
    }

    .page-fishing-games__description {
        font-size: 1em !important;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__game-btn,
    .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 !important;
        padding-right: 15px !important;
    }
    
    .page-fishing-games__cta-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
      justify-content: center;
    }

    .page-fishing-games__intro-image {
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-fishing-games__features-grid,
    .page-fishing-games__guide-steps,
    .page-fishing-games__benefits-list {
        grid-template-columns: 1fr;
    }

    .page-fishing-games__feature-icon,
    .page-fishing-games__guide-image {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure min height for content images */
        object-fit: cover !important;
    }

    .page-fishing-games__game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .page-fishing-games__game-tile img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }

    .page-fishing-games__benefit-icon {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
    }

    .page-fishing-games__faq-question {
        font-size: 1.1em !important;
        padding: 15px !important;
    }

    .page-fishing-games__faq-answer {
        padding: 0 15px 15px 15px !important;
    }

    .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,
    .page-fishing-games__content-wrapper,
    .page-fishing-games__features-grid,
    .page-fishing-games__guide-steps,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__game-grid,
    .page-fishing-games__benefits-section,
    .page-fishing-games__benefits-list,
    .page-fishing-games__faq-section,
    .page-fishing-games__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
    }

    .page-fishing-games__hero-section .page-fishing-games__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* No specific winner list for this page, but if it were present, rules would apply */
}