/* style/fishing-games.css */

/* Các biến màu sắc */
:root {
    --page-fishing-games--primary-color: #017439;
    --page-fishing-games--secondary-color: #FFFFFF;
    --page-fishing-games--register-button-bg: #C30808;
    --page-fishing-games--login-button-bg: #C30808;
    --page-fishing-games--button-text-color: #FFFFFF; /* Đảm bảo tương phản WCAG AA */
    --page-fishing-games--body-bg: #121212; /* Từ shared.css */
    --page-fishing-games--dark-text: #ffffff; /* Văn bản trên nền tối */
    --page-fishing-games--light-text: #333333; /* Văn bản trên nền sáng */
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-fishing-games--dark-text); /* Mặc định văn bản sáng trên nền tối của body */
    background-color: var(--page-fishing-games--body-bg);
}

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

.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;
    justify-content: center;
    align-items: center;
    padding-block: 80px; /* Cung cấp khoảng cách cho hero */
    min-height: 70vh;
    color: var(--page-fishing-games--dark-text);
    overflow: hidden;
    padding-top: 0; /* Đặt 0 nếu body đã có padding-top: var(--header-offset) */
}

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

.page-fishing-games__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5); /* Làm tối video để chữ dễ đọc */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.5); /* Nền tối nhẹ để tăng tương phản */
    padding: 30px;
    border-radius: 10px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-fishing-games--secondary-color);
}

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

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

/* General Section Styles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-fishing-games--primary-color);
}

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

.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg .page-fishing-games__section-description {
    color: var(--page-fishing-games--dark-text);
}

.page-fishing-games__light-bg {
    background-color: var(--page-fishing-games--secondary-color);
    color: var(--page-fishing-games--light-text);
}

.page-fishing-games__dark-bg {
    background-color: var(--page-fishing-games--primary-color);
    color: var(--page-fishing-games--dark-text);
}

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

.page-fishing-games__btn-primary {
    background-color: var(--page-fishing-games--register-button-bg); /* Màu đăng ký/đăng nhập */
    color: var(--page-fishing-games--button-text-color);
    border: 2px solid var(--page-fishing-games--register-button-bg);
}

.page-fishing-games__btn-primary:hover {
    background-color: #A30606;
    border-color: #A30606;
}

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

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

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

.page-fishing-games__btn-text {
    color: var(--page-fishing-games--dark-text);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-fishing-games__btn-text:hover {
    color: #e0e0e0;
}

/* Card Styles */
.page-fishing-games__card {
    background-color: var(--page-fishing-games--secondary-color);
    color: var(--page-fishing-games--light-text);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    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);
}

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

.page-fishing-games__card-text {
    font-size: 1em;
    line-height: 1.6;
}

.page-fishing-games__feature-image,
.page-fishing-games__game-image,
.page-fishing-games__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Us Section */
.page-fishing-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-fishing-games__feature-card .page-fishing-games__card-title {
    color: var(--page-fishing-games--primary-color);
}

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

.page-fishing-games__game-card .page-fishing-games__card-title {
    color: var(--page-fishing-games--primary-color);
}

/* How To Play Section */
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-fishing-games__step-card {
    text-align: center;
    align-items: center;
    padding-top: 40px;
    position: relative;
}

.page-fishing-games__step-number {
    background-color: var(--page-fishing-games--primary-color);
    color: var(--page-fishing-games--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 20px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__step-card .page-fishing-games__card-title {
    margin-top: 15px;
    color: var(--page-fishing-games--primary-color);
}

/* Strategies Section */
.page-fishing-games__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-fishing-games__strategy-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    color: var(--page-fishing-games--dark-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__strategy-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--page-fishing-games--secondary-color);
}

.page-fishing-games__strategy-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-fishing-games__promotion-card .page-fishing-games__card-title {
    color: var(--page-fishing-games--primary-color);
}

.page-fishing-games__promotion-card .page-fishing-games__btn-primary {
    margin-top: 20px;
    width: 100%;
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-fishing-games--dark-text);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-fishing-games--dark-text);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Đảm bảo đủ cao để hiển thị tất cả nội dung */
    padding: 15px 20px;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
    background-color: var(--page-fishing-games--secondary-color);
    color: var(--page-fishing-games--light-text);
    padding: 80px 0;
}

.page-fishing-games__cta-content {
    max-width: 900px;
}

.page-fishing-games__cta-section .page-fishing-games__section-title {
    color: var(--page-fishing-games--primary-color);
}

.page-fishing-games__cta-section .page-fishing-games__section-description {
    color: var(--page-fishing-games--light-text);
}

.page-fishing-games__cta-section .page-fishing-games__btn-primary {
    background-color: var(--page-fishing-games--register-button-bg);
    border-color: var(--page-fishing-games--register-button-bg);
    color: var(--page-fishing-games--button-text-color);
}

.page-fishing-games__cta-section .page-fishing-games__btn-primary:hover {
    background-color: #A30606;
    border-color: #A30606;
}

.page-fishing-games__cta-section .page-fishing-games__btn-secondary {
    background-color: transparent;
    border-color: var(--page-fishing-games--primary-color);
    color: var(--page-fishing-games--primary-color);
}

.page-fishing-games__cta-section .page-fishing-games__btn-secondary:hover {
    background-color: var(--page-fishing-games--primary-color);
    color: var(--page-fishing-games--secondary-color);
}

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

    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-block: 60px;
        padding-top: var(--header-offset, 120px) !important; /* Đảm bảo khoảng cách với header cố định */
    }

    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }

    .page-fishing-games__hero-description {
        font-size: 1em;
    }

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

    .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__hero-buttons,
    .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;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
        overflow: hidden !important;
    }

    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-fishing-games__feature-image,
    .page-fishing-games__game-image,
    .page-fishing-games__promotion-image {
        height: auto !important; /* Cho phép chiều cao tự động để duy trì tỷ lệ */
    }

    .page-fishing-games video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-fishing-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__card {
        padding: 20px;
    }

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

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

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

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

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }

    .page-fishing-games__section-title {
        font-size: 1.5em;
    }

    .page-fishing-games__hero-buttons {
        flex-direction: column;
    }
}