/* style/sports.css */

/* Base Styles for .page-sports */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body, which is #0a0a0a */
}

/* Section Styling */
.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-sports__text-center {
    text-align: center;
}

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

/* Color Contrast Specifics */
.page-sports__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
}

/* Links within content */
.page-sports a {
    color: #FFFF00; /* Yellow for links to stand out on dark bg, also for register/login font */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    background-color: #0a0a0a; /* Dark background to ensure hero content is visible */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly dim image for text readability */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.page-sports__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-sports__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping by default */
    box-sizing: border-box;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808; /* Register/Login color */
}

.page-sports__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-sports__btn-tertiary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-sports__btn-tertiary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Card Styling */
.page-sports__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text for card content */
}

.page-sports__card:hover {
    transform: translateY(-5px);
}

.page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight card titles */
    font-weight: bold;
}

/* About Section */
.page-sports__about-section .page-sports__section-title,
.page-sports__about-section .page-sports__text-block {
    color: #333333; /* Dark text for light background */
}

.page-sports__about-section a {
    color: #017439; /* Brand color for links on light background */
}

.page-sports__about-section a:hover {
    color: #005a2e;
}

.page-sports__content-image {
    display: block;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Popular Sports Section */
.page-sports__popular-sports-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Guide Section */
.page-sports__guide-section .page-sports__section-title,
.page-sports__guide-section .page-sports__text-block,
.page-sports__guide-section .page-sports__guide-list {
    color: #333333; /* Dark text for light background */
}

.page-sports__guide-section a {
    color: #017439; /* Brand color for links on light background */
}

.page-sports__guide-section a:hover {
    color: #005a2e;
}

.page-sports__guide-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-sports__guide-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-sports__guide-list strong {
    color: #017439;
}

/* Advantages Section */
.page-sports__advantages-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.page-sports__advantages-list li {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #ffffff;
    border-left: 5px solid #FFFF00; /* Accent with yellow */
}

.page-sports__advantages-list li strong {
    color: #FFFF00;
}

/* Promotions Section */
.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__text-block {
    color: #333333; /* Dark text for light background */
}

.page-sports__promotions-section a {
    color: #017439; /* Brand color for links on light background */
}

.page-sports__promotions-section a:hover {
    color: #005a2e;
}

.page-sports__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__promo-card {
    background-color: #f9f9f9; /* Lighter card background for light section */
    color: #333333;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.page-sports__promo-card .page-sports__card-title {
    color: #017439; /* Brand color for titles on light card */
}

.page-sports__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly darker card for FAQ */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-sports__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 15px 25px 25px 25px;
}

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

.page-sports__faq-answer a {
    color: #FFFF00; /* Yellow for links in FAQ answers */
}

/* Conclusion Section */
.page-sports__conclusion-section .page-sports__section-title,
.page-sports__conclusion-section .page-sports__text-block {
    color: #333333; /* Dark text for light background */
}

.page-sports__conclusion-section a {
    color: #017439; /* Brand color for links on light background */
}

.page-sports__conclusion-section a:hover {
    color: #005a2e;
}

/* General image styling for content area */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

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

    .page-sports__hero-description {
        font-size: 1.2em;
    }

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

    .page-sports__container {
        padding: 50px 20px;
    }

    .page-sports__advantages-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-sports__hero-section {
        min-height: 450px;
        padding-top: 0; /* Ensures no double padding if shared.css handles body padding-top */
    }

    .page-sports__hero-content {
        padding: 30px 15px;
    }

    .page-sports__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 通用图片与容器 */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__sports-grid,
    .page-sports__promo-grid,
    .page-sports__faq-list,
    .page-sports__advantages-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-tertiary,
    .page-sports a[class*="button"],
    .page-sports 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: 12px 20px !important; /* Adjust padding for mobile buttons */
    }
    
    .page-sports__hero-cta-buttons,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__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;
        flex-direction: column; /* Ensure vertical stacking for CTAs */
    }

    /* LOGO 轮播区域 (Not present in this page, but if it were, it would need specific rules) */
    /* .page-sports__logo-item { */
    /*     width: 80px !important; */
    /*     height: 80px !important; */
    /*     max-width: 80px !important; */
    /*     box-sizing: border-box; */
    /* } */

    /* 游戏展示区域 (Implicitly covered by .page-sports__sports-grid and .page-sports__promo-grid) */
    .page-sports__sports-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-sports__sport-card,
    .page-sports__promo-card {
        padding: 25px;
    }

    .page-sports__promo-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

    /* 其他内容模块 (FAQ, Guide, Advantages) */
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-sports__text-block,
    .page-sports__guide-list li,
    .page-sports__advantages-list li,
    .page-sports__faq-question,
    .page-sports__faq-answer p {
        font-size: 1em;
        line-height: 1.5;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}