/* style/fishing-games.css */

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

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    background-color: var(--deep-navy); /* Ensure consistency with body background */
    color: var(--text-main); /* Light text for dark background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Prevent image overflow */
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-fishing-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Use clamp for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-fishing-games__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure button adapts */
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.6);
}

.page-fishing-games__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 20px rgba(79, 168, 255, 0.9);
    transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
    background: rgba(79, 168, 255, 0.2);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-fishing-games__dark-section {
    background-color: var(--primary-color);
    color: var(--text-main);
    padding: 60px 0;
}

.page-fishing-games__intro-section p,
.page-fishing-games__how-to-play-section p,
.page-fishing-games__strategies-section p,
.page-fishing-games__cta-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.page-fishing-games__intro-section strong,
.page-fishing-games__how-to-play-section strong,
.page-fishing-games__strategies-section strong {
    color: var(--gold-color);
}

.page-fishing-games__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-fishing-games__list {
    list-style: none;
    padding: 0;
    margin: 20px 0 40px 0;
}

.page-fishing-games__list li {
    background: var(--card-bg);
    color: var(--text-secondary);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid var(--secondary-color);
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-fishing-games__list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__list li strong {
    color: var(--gold-color);
}

.page-fishing-games__list a {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__list a:hover {
    text-decoration: underline;
    color: var(--gold-color);
}

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

.page-fishing-games__card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-fishing-games__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-fishing-games__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    padding: 20px 15px 10px;
    margin: 0;
    text-align: center;
}

.page-fishing-games__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 15px 20px;
    text-align: center;
}

/* Benefits Section */
.page-fishing-games__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__benefit-card {
    padding: 25px;
    text-align: center;
}

/* Promotions Section */
.page-fishing-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-fishing-games__view-all-promos {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.6);
}

.page-fishing-games__view-all-promos:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 20px rgba(79, 168, 255, 0.9);
    transform: translateY(-2px);
}

/* FAQ Section */
details.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--gold-color);
    font-size: 1.1rem;
    font-weight: 600;
}
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(29, 95, 209, 0.2); /* Lighter hover for dark card bg */
}
.page-fishing-games__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}
.page-fishing-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--glow-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or similar */
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 25px 25px;
    background: rgba(16, 35, 63, 0.8); /* Slightly lighter background for answer */
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CTA Section */
.page-fishing-games__cta-section {
    text-align: center;
    padding: 60px 0;
    background: var(--secondary-color);
    color: var(--text-main);
}

.page-fishing-games__cta-section .page-fishing-games__section-title {
    color: var(--text-main);
    text-shadow: none;
}

.page-fishing-games__cta-section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__container {
        padding: 30px 15px;
    }
    .page-fishing-games__hero-image img {
        border-radius: 6px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-fishing-games__hero-description {
        font-size: 1rem;
    }
    .page-fishing-games__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-fishing-games__list li {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-fishing-games__game-list,
    .page-fishing-games__benefits-grid,
    .page-fishing-games__promo-grid {
        gap: 20px;
    }
    .page-fishing-games__card-title {
        font-size: 1.2rem;
    }
    .page-fishing-games__card-description {
        font-size: 0.9rem;
    }
    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-fishing-games__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 25px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Ensure small padding, not header-offset */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__hero-image img {
        border-radius: 4px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-fishing-games__hero-description {
        font-size: 0.95rem;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px; /* Add padding to container */
        padding-right: 15px;
    }
    .page-fishing-games__cta-button {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center individual buttons */
    }

    .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__game-list,
    .page-fishing-games__benefits-grid,
    .page-fishing-games__promo-grid,
    .page-fishing-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 25px;
    }
    .page-fishing-games__list li {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
    .page-fishing-games__card-image {
        height: 180px;
    }
    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    .page-fishing-games__faq-toggle {
        font-size: 22px;
        margin-left: 10px;
        width: 20px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
    .page-fishing-games__view-all-promos {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}