/* style/fishing-games.css */

/* Biến màu sắc tùy chỉnh */
:root {
    --mcw77-primary: #11A84E;
    --mcw77-secondary: #22C768;
    --mcw77-bg-dark: #08160F;
    --mcw77-card-bg: #11271B;
    --mcw77-text-main: #F2FFF6;
    --mcw77-text-secondary: #A7D9B8;
    --mcw77-border: #2E7A4E;
    --mcw77-glow: #57E38D;
    --mcw77-gold: #F2C14E;
    --mcw77-divider: #1E3A2A;
    --mcw77-deep-green: #0A4B2C;
    --mcw77-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    color: var(--mcw77-text-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--mcw77-bg-dark);
}

.page-fishing-games__section {
    padding: 60px 0;
    position: relative;
}

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

/* Background colors */
.page-fishing-games__dark-section {
    background-color: var(--mcw77-bg-dark);
    color: var(--mcw77-text-main);
}

.page-fishing-games__light-bg {
    background-color: var(--mcw77-card-bg);
    color: var(--mcw77-text-main);
}

/* Titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 20px;
    color: var(--mcw77-primary);
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--mcw77-text-secondary);
}

/* Hero Section */
.page-fishing-games__hero-section {
    padding-top: 10px; /* body đã xử lý padding-top cho header, chỉ thêm 10px trang trí */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
    box-sizing: border-box;
}

.page-fishing-games__main-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--mcw77-gold);
    font-size: clamp(2.2em, 4vw, 3.5em); /* Sử dụng clamp để kiểm soát kích thước chữ */
}

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

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Đảm bảo nút không tràn */
    white-space: normal; /* Cho phép xuống dòng */
    word-wrap: break-word;
}

.page-fishing-games__btn-primary {
    background: var(--mcw77-button-gradient);
    color: var(--mcw77-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-fishing-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

/* Content layout */
.page-fishing-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-fishing-games__text-block {
    flex: 1;
    line-height: 1.8;
    font-size: 1.05em;
    color: var(--mcw77-text-secondary);
}

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

.page-fishing-games__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Grid layout */
.page-fishing-games__grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-fishing-games__card {
    background-color: var(--mcw77-card-bg);
    border: 1px solid var(--mcw77-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--mcw77-text-main);
}

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

.page-fishing-games__card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Đảm bảo không có filter */
    min-width: 80px; /* Đảm bảo kích thước tối thiểu */
    min-height: 80px;
}

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

.page-fishing-games__card p {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--mcw77-text-secondary);
}

/* Game list specific styles */
.page-fishing-games__game-card .page-fishing-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__game-card .page-fishing-games__game-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--mcw77-gold);
    margin-bottom: 10px;
}

.page-fishing-games__game-card .page-fishing-games__game-description {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* How to play steps */
.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-fishing-games__step-item {
    background-color: var(--mcw77-card-bg);
    border: 1px solid var(--mcw77-border);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--mcw77-text-main);
}

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

.page-fishing-games__step-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--mcw77-text-secondary);
}

/* Promotions section */
.page-fishing-games__promo-card .page-fishing-games__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-fishing-games__faq-item {
    background-color: var(--mcw77-card-bg);
    border: 1px solid var(--mcw77-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--mcw77-text-main);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--mcw77-primary);
    cursor: pointer;
    background-color: var(--mcw77-deep-green);
    border-bottom: 1px solid var(--mcw77-divider);
    list-style: none; /* Dành cho details/summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
    display: none; /* Ẩn dấu mũi tên mặc định của summary */
}

.page-fishing-games__faq-question:hover {
    background-color: var(--mcw77-primary);
    color: var(--mcw77-text-main);
}

.page-fishing-games__faq-question:hover .page-fishing-games__faq-toggle {
    color: var(--mcw77-text-main);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    pointer-events: none; /* Đảm bảo toàn bộ summary có thể click */
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 15px;
    color: var(--mcw77-gold);
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Xoay dấu + thành X khi mở */
}

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--mcw77-text-secondary);
    background-color: var(--mcw77-card-bg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-image {
        height: 500px;
    }
    .page-fishing-games__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-fishing-games__image-block {
        order: -1; /* Đẩy ảnh lên trên trong mobile cho phần giới thiệu */
    }
}

@media (max-width: 768px) {
    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__intro-text {
        font-size: 1em;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .page-fishing-games__hero-image {
        height: 300px;
    }
    .page-fishing-games__card {
        padding: 20px;
    }
    .page-fishing-games__card-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
    .page-fishing-games__game-card .page-fishing-games__game-image,
    .page-fishing-games__promo-card .page-fishing-games__promo-image {
        height: 180px;
        min-width: 180px;
        min-height: 180px;
    }
    .page-fishing-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 15px 20px;
    }

    /* Global image and container responsive rules for mobile */
    .page-fishing-games img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__content-wrapper,
    .page-fishing-games__grid-wrapper,
    .page-fishing-games__game-list,
    .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;
        overflow: hidden !important;
    }

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

    /* Video specific for mobile (if any video) */
    .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__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-fishing-games__hero-image {
        height: 200px;
    }
    .page-fishing-games__intro-text {
        font-size: 0.9em;
    }
    .page-fishing-games__card-title {
        font-size: 1.1em;
    }
    .page-fishing-games__card p {
        font-size: 0.85em;
    }
    .page-fishing-games__game-card .page-fishing-games__game-image,
    .page-fishing-games__promo-card .page-fishing-games__promo-image {
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }
    .page-fishing-games__hero-content {
        padding: 0 10px;
    }
}