/* style/sports.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General styles for the sports page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0; /* Slightly off-white for body text on dark background */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); /* Dark gradient background */
    color: #ffffff;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-sports__hero-section .page-sports__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-sports__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* About Section */
.page-sports__about-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
    color: #f0f0f0;
}

.page-sports__about-section .page-sports__section-title {
    color: #26A9E0;
}

/* Features Section */
.page-sports__features-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-sports__feature-card:hover {
    transform: translateY(-10px);
}

.page-sports__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-sports__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Categories Section */
.page-sports__categories-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    text-align: center;
}

.page-sports__category-card:hover {
    transform: translateY(-10px);
}

.page-sports__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__category-card .page-sports__card-title {
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-sports__category-card .page-sports__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__category-card .page-sports__card-title a:hover {
    color: #ffffff;
}

.page-sports__category-card .page-sports__card-text {
    padding: 0 20px 20px;
    color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-sports__live-betting-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-sports__live-betting-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__live-betting-section .page-sports__text-content {
    flex: 1.5;
    min-width: 300px;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-sports__promotion-card {
    background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    text-align: center;
}

.page-sports__promotion-card:hover {
    transform: translateY(-10px);
}

.page-sports__promotion-image {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    display: block;
}

.page-sports__promotion-card .page-sports__card-title {
    margin-top: 20px;
    padding: 0 20px;
    color: #26A9E0;
}

.page-sports__promotion-card .page-sports__card-text {
    padding: 0 20px 20px;
    color: #f0f0f0;
}

.page-sports__promotion-card .page-sports__btn-secondary {
    margin-bottom: 20px;
}

/* Video Section */
.page-sports__video-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 960px; /* Max width for the video */
    margin: 40px auto 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer; /* Indicate clickable */
}

.page-sports__video-description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-sports__video-cta {
    margin-top: 20px;
}


/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-sports__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0; /* Question text in brand color */
    background-color: rgba(38, 169, 224, 0.05); /* Very light transparent brand color background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.15);
}

.page-sports__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a cross */
}

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

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large height */
    padding: 15px 25px 25px;
}

/* CTA Bottom Section */
.page-sports__cta-bottom-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    text-align: center;
    color: #ffffff;
}

.page-sports__cta-bottom-section .page-sports__section-title {
    color: #26A9E0;
}

.page-sports__cta-bottom-section .page-sports__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

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

    .page-sports__hero-section {
        min-height: 450px;
        padding: 60px 0;
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Add padding to prevent overflow */
    }

    .page-sports__container {
        padding: 0 15px;
    }

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

    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__live-betting-content {
        flex-direction: column;
    }

    .page-sports__live-betting-image {
        width: 100%;
    }
    
    /* Mobile image and video responsiveness */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }

    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        height: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-sports__faq-answer {
        padding: 0 20px;
    }

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