/* style/fishing-games.css */

/* Biến màu sắc */
:root {
    --page-primary-color: #26A9E0;
    --page-secondary-color: #FFFFFF;
    --page-text-color-dark: #333333;
    --page-text-color-light: #ffffff;
    --page-background-color-light: #f8f9fa;
    --page-background-color-dark: #26A9E0;
    --page-login-color: #EA7C07;
}

/* Cấu trúc chung của trang */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text-color-dark); /* Mặc định cho nền sáng */
    background-color: var(--page-background-color-light);
}

/* Tiêu đề chính */
.page-fishing-games__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--page-text-color-light);
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

/* Tiêu đề phụ và phần mô tả */
.page-fishing-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--page-primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-fishing-games__description {
    font-size: 1.1em;
    color: var(--page-text-color-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-fishing-games__text-block {
    font-size: 1em;
    color: var(--page-text-color-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Các phần chính của trang */
.page-fishing-games__section {
    padding: 60px 0;
    box-sizing: border-box;
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Nhỏ hơn để tránh trùng với body padding-top */
    overflow: hidden;
    text-align: center;
}

.page-fishing-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    color: var(--page-text-color-light);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Nền nhẹ để chữ nổi bật hơn */
    border-radius: 10px;
}

/* Nền tối cho các phần đặc biệt */
.page-fishing-games__dark-section {
    background-color: var(--page-background-color-dark);
    color: var(--page-text-color-light);
}

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

.page-fishing-games__dark-section .page-fishing-games__text-block {
    color: var(--page-text-color-light);
}

/* Card chung */
.page-fishing-games__card {
    background: var(--page-secondary-color);
    color: var(--page-text-color-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--page-primary-color);
    color: var(--page-text-color-light);
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-fishing-games__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-fishing-games__feature-text {
    font-size: 0.95em;
    color: var(--page-text-color-dark);
}

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

.page-fishing-games__game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-fishing-games__game-title a {
    color: inherit;
    text-decoration: none;
}

.page-fishing-games__game-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    color: var(--page-text-color-dark);
    margin-bottom: 20px;
}

/* Steps Grid (How to Play) */
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.page-fishing-games__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--page-primary-color);
    color: var(--page-text-color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    z-index: 1;
}

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

.page-fishing-games__step-text a {
    color: var(--page-primary-color);
    text-decoration: none;
}

.page-fishing-games__step-text a:hover {
    text-decoration: underline;
}

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

.page-fishing-games__tip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

/* Promotions Section */
.page-fishing-games__promo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
}

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

.page-fishing-games__faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background: var(--page-secondary-color);
    color: var(--page-text-color-dark);
    border-radius: 10px;
    overflow: hidden;
}

.page-fishing-games__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-primary-color);
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item summary:hover {
    background-color: #e0e0e0;
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 10px;
}

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

.page-fishing-games__faq-answer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 1em;
    color: var(--page-text-color-dark);
    text-align: left;
}

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
}

.page-fishing-games__faq-answer a {
    color: var(--page-primary-color);
    text-decoration: none;
}

.page-fishing-games__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 2.5em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-fishing-games__hero-content {
        padding: 15px;
    }

    .page-fishing-games__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-fishing-games__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-fishing-games__text-block {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-fishing-games__section {
        padding: 40px 0;
    }

    .page-fishing-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__game-card,
    .page-fishing-games__feature-item,
    .page-fishing-games__tip-item,
    .page-fishing-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsive */
    .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;
        padding-right: 15px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-fishing-games__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-fishing-games__feature-title,
    .page-fishing-games__game-title,
    .page-fishing-games__step-title,
    .page-fishing-games__tip-title {
        font-size: 1.2em;
    }

    .page-fishing-games__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__features-grid,
    .page-fishing-games__game-cards-grid,
    .page-fishing-games__steps-grid,
    .page-fishing-games__tips-grid {
        grid-template-columns: 1fr;
    }
}