/* style/match-analysis.css */

/* Base styles for the page content, considering dark body background */
.page-match-analysis {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Main content background is transparent to show body background */
}

/* Container for content sections */
.page-match-analysis__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

/* Text blocks */
.page-match-analysis__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* Buttons */
.page-match-analysis__btn {
    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;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-match-analysis__btn--primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

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

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

/* Specific login button color as per requirements */
.page-match-analysis__hero-buttons .page-match-analysis__btn--secondary {
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-match-analysis__hero-buttons .page-match-analysis__btn--secondary:hover {
    background-color: #d46b00;
    border-color: #d46b00;
}

/* Hero Section */
.page-match-analysis__hero-section {
    position: relative;
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for image */
}

.page-match-analysis__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-match-analysis__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    padding: 60px 20px; /* Added padding to ensure content is not squished */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text readability */
    border-radius: 10px;
}

.page-match-analysis__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-match-analysis__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Introduction Section */
.page-match-analysis__introduction-section {
    padding: 80px 0;
    text-align: center;
}

/* Dark background section */
.page-match-analysis__dark-bg {
    background-color: #0a0a0a; /* Ensure dark background matches body for consistency */
    color: #ffffff;
}

/* Analysis Factors Section */
.page-match-analysis__analysis-factors-section {
    padding: 80px 0;
}

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

.page-match-analysis__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text for card content */
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-match-analysis__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-match-analysis__card-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-match-analysis__card-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allows description to take available space */
}

/* Betting Strategy Section */
.page-match-analysis__betting-strategy-section {
    padding: 80px 0;
    text-align: center;
}

.page-match-analysis__list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-match-analysis__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-match-analysis__list-item strong {
    color: #26A9E0;
}

.page-match-analysis__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Live Watching Section */
.page-match-analysis__live-watching-section {
    padding: 80px 0;
}

.page-match-analysis__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-match-analysis__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-match-analysis__image-text-block-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-match-analysis__image-text-block-content {
    flex: 1;
    max-width: 50%;
}

.page-match-analysis__image-text-block-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-match-analysis__image-text-block-description {
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-match-analysis__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* FAQ Section */
.page-match-analysis__faq-section {
    padding: 80px 0;
}

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

.page-match-analysis__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);
    color: #ffffff;
}

.page-match-analysis__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-match-analysis__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-match-analysis__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
}

.page-match-analysis__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-match-analysis__faq-item.active .page-match-analysis__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an X */
}

.page-match-analysis__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    color: #f0f0f0;
}

.page-match-analysis__faq-item.active .page-match-analysis__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-match-analysis__faq-answer p {
    margin: 0;
}

/* Call to Action Section */
.page-match-analysis__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

/* Image specific styles to meet minimum size and prevent filters */
.page-match-analysis img {
    filter: none; /* Absolutely no CSS filters */
}

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

    .page-match-analysis__hero-description {
        font-size: 1.1em;
    }

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

    .page-match-analysis__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-match-analysis__image-text-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .page-match-analysis__image-text-block--reverse {
        flex-direction: column; /* Consistent direction for mobile */
    }

    .page-match-analysis__image-text-block-image {
        max-width: 100%;
    }

    .page-match-analysis__image-text-block-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-match-analysis__hero-section {
        min-height: 400px;
        padding-top: 0; /* Assuming shared.css handles body padding-top */
    }

    .page-match-analysis__hero-content {
        padding: 40px 15px;
    }

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

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

    .page-match-analysis__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 产品展示图区域 & 通用图片与容器 */
    .page-match-analysis__container {
        padding: 0 15px;
    }

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

    .page-match-analysis__text-block {
        font-size: 0.95em;
    }

    .page-match-analysis__grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    .page-match-analysis__card {
        padding: 20px;
    }

    .page-match-analysis__card-title {
        font-size: 1.3em;
    }

    .page-match-analysis__card-image {
        height: 250px; /* Adjust height for better mobile display */
    }

    /* 通用图片与容器 */
    .page-match-analysis img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-match-analysis__introduction-section,
    .page-match-analysis__analysis-factors-section,
    .page-match-analysis__betting-strategy-section,
    .page-match-analysis__live-watching-section,
    .page-match-analysis__faq-section,
    .page-match-analysis__cta-section,
    .page-match-analysis__card,
    .page-match-analysis__image-text-block,
    .page-match-analysis__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px; /* Add padding to prevent content touching edges */
      padding-right: 15px;
    }
    
    /* Remove horizontal padding for hero section content since container already adds it */
    .page-match-analysis__hero-content {
        padding-left: 0;
        padding-right: 0;
    }

    /* 按钮与按钮容器 */
    .page-match-analysis__btn,
    .page-match-analysis__btn--primary,
    .page-match-analysis__btn--secondary,
    .page-match-analysis a[class*="button"],
    .page-match-analysis 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; /* Ensure button text has padding */
        padding-right: 15px;
    }
    
    .page-match-analysis__hero-buttons,
    .page-match-analysis__button-group,
    .page-match-analysis__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to button containers */
        padding-right: 15px;
    }

    /* 其他内容模块 */
    .page-match-analysis__list {
        margin: 30px auto;
    }

    .page-match-analysis__list-item {
        font-size: 1em;
        padding: 15px;
    }

    .page-match-analysis__image-text-block-title {
        font-size: 1.5em;
    }

    .page-match-analysis__image-text-block-description {
        font-size: 1em;
    }

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

    .page-match-analysis__faq-question h3 {
        font-size: 1.1em;
    }

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

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