/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color-register: #C30808;
    --accent-color-login: #C30808;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --text-color-register-login-font: #FFFF00;
    --background-color-light: #FFFFFF;
    --border-color-light: #e0e0e0;
}

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

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

.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 30%, #4CAF50 100%); /* Green gradient */
    color: var(--text-color-light);
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.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.3);
}

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

.page-fishing-games__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-fishing-games__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.page-fishing-games__btn-register {
    background: var(--accent-color-register);
    color: var(--text-color-register-login-font);
    border: 2px solid var(--accent-color-register);
}

.page-fishing-games__btn-register:hover {
    background: darken(var(--accent-color-register), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-login {
    background: var(--accent-color-login);
    color: var(--text-color-register-login-font);
    border: 2px solid var(--accent-color-login);
}

.page-fishing-games__btn-login:hover {
    background: darken(var(--accent-color-login), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-fishing-games__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

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

/* Content Layouts */
.page-fishing-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.page-fishing-games__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-fishing-games__text-block {
    flex: 1;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__text-block p {
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.page-fishing-games__text-block a {
    margin-top: 20px;
}

.page-fishing-games__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* List Styles */
.page-fishing-games__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-color-dark);
}

.page-fishing-games__list--ordered {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-color-dark);
}

.page-fishing-games__list li {
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

/* Dark Background Sections */
.page-fishing-games__dark-bg {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg .page-fishing-games__section-description,
.page-fishing-games__dark-bg .page-fishing-games__text-block p,
.page-fishing-games__dark-bg .page-fishing-games__list li,
.page-fishing-games__dark-bg .page-fishing-games__card-title,
.page-fishing-games__dark-bg .page-fishing-games__card-text,
.page-fishing-games__dark-bg .page-fishing-games__guide-title,
.page-fishing-games__dark-bg .page-fishing-games__guide-text {
    color: var(--text-color-light);
}

/* Card Grid */
.page-fishing-games__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-fishing-games__card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Ensure cards have similar height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-fishing-games__card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-fishing-games__card-text {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-fishing-games__promo-card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 480px; /* Ensure promo cards have similar height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-fishing-games__promo-text {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-fishing-games__guide-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__guide-title {
    font-size: 1.6em;
    color: var(--text-color-light);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__guide-text {
    font-size: 1em;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-fishing-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
    background: #eeeeee;
}

.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-dark);
}

.page-fishing-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    color: #333;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 2.8em;
    }
    .page-fishing-games__intro-text {
        font-size: 1.1em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-fishing-games__content-wrapper--reversed {
        flex-direction: column;
    }
    .page-fishing-games__text-block, .page-fishing-games__image-block {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__main-title {
        font-size: 2.2em;
    }
    .page-fishing-games__intro-text {
        font-size: 1em;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-fishing-games__container {
        padding: 0 15px;
    }

    .page-fishing-games__text-block {
        padding: 15px;
    }

    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__promo-card,
    .page-fishing-games__guide-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__card-grid, .page-fishing-games__promo-grid, .page-fishing-games__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fishing-games__card, .page-fishing-games__promo-card {
        min-height: auto;
        padding: 20px;
    }
    .page-fishing-games__card-image, .page-fishing-games__promo-image {
        height: auto;
        min-height: 150px;
    }

    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
}