/* style/fishing-games.css */

/* Biến CSS cho màu sắc */
:root {
    --k8-primary-color: #017439;
    --k8-secondary-color: #FFFFFF;
    --k8-register-button-bg: #C30808;
    --k8-login-button-bg: #C30808;
    --k8-button-text-color: #FFFF00;
    --k8-dark-bg: #000000; /* Body background from shared.css */
    --k8-light-text: #FFFFFF;
    --k8-dark-text: #333333;
}

/* Base styles for the page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--k8-light-text); /* Light text on dark body background */
    background-color: var(--k8-dark-bg); /* Ensure consistency with body background */
}

.page-fishing-games__link {
    color: var(--k8-secondary-color); /* Links stand out on dark background */
    text-decoration: underline;
}

.page-fishing-games__link:hover {
    color: var(--k8-primary-color);
}

/* Sections */
.page-fishing-games__hero-section,
.page-fishing-games__video-section,
.page-fishing-games__guide-section,
.page-fishing-games__final-cta-section {
    background-color: var(--k8-dark-bg);
    color: var(--k8-light-text);
}

.page-fishing-games__introduction-section,
.page-fishing-games__features-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section {
    background-color: var(--k8-secondary-color);
    color: var(--k8-dark-text);
}

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

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

/* Content Area */
.page-fishing-games__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-fishing-games__content-area--centered {
    text-align: center;
}

/* Section Titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-fishing-games__section-title--centered {
    text-align: center;
}

/* Text Blocks */
.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 70vh;
    gap: 40px;
}

.page-fishing-games__hero-content {
    flex: 1;
    max-width: 600px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--k8-light-text);
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--k8-light-text);
}

.page-fishing-games__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-fishing-games__hero-cta-buttons,
.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

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

.page-fishing-games__btn-primary {
    background-color: var(--k8-register-button-bg); /* Custom color for Register/Login */
    color: var(--k8-button-text-color); /* Custom color for button text */
    border: 2px solid var(--k8-register-button-bg);
}

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

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

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

/* Video Section */
.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 40px auto;
}

.page-fishing-games__video-wrapper .page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-fishing-games__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--k8-light-text);
}

.page-fishing-games__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

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

.page-fishing-games__feature-card {
    background-color: var(--k8-secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--k8-dark-text);
}

.page-fishing-games__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-fishing-games__feature-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Game List */
.page-fishing-games__game-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__game-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: var(--k8-light-text);
}

.page-fishing-games__game-name {
    font-size: 1.8em;
    color: var(--k8-secondary-color);
    margin-bottom: 10px;
}

.page-fishing-games__game-description {
    font-size: 1.1em;
    line-height: 1.7;
}

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

.page-fishing-games__promo-card {
    background-color: var(--k8-secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--k8-dark-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__promo-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--k8-primary-color);
}

.page-fishing-games__promo-description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: var(--k8-light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__guide-step-title {
    font-size: 1.8em;
    color: var(--k8-secondary-color);
    margin-bottom: 15px;
}

.page-fishing-games__guide-step-description {
    font-size: 1.1em;
    line-height: 1.7;
}

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

.page-fishing-games__faq-item {
    background-color: var(--k8-secondary-color);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--k8-dark-text);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--k8-secondary-color);
    color: var(--k8-primary-color);
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
    border-bottom-color: var(--k8-primary-color);
}

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

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

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

.page-fishing-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--k8-dark-text);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px);
    }

    .page-fishing-games__hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

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

@media (max-width: 768px) {
    .page-fishing-games__content-area {
        padding: 30px 15px;
    }

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

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

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

    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        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,
    .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-wrap: wrap !important;
      gap: 10px;
    }

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

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

    /* Video responsive */
    .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__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
}

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

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

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}