/* sports.css */

/* Base styles for the page-sports scope */
.page-sports {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    line-height: 1.6;
    font-family: sans-serif; /* Roboto气质 */
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column; /* Default to column for mobile-first approach */
    align-items: center;
    text-align: center;
    background-color: #17191F; /* Card B G */
    min-height: auto; /* Ensure height is flexible */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
}

.page-sports__hero-content {
    max-width: 900px;
    padding: 0 15px;
    z-index: 1;
}

.page-sports__hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF3E6; /* Text Main */
}

.page-sports__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-sports__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
}

.page-sports__section-title--gradient {
    background: linear-gradient(to right, #FFA53A, #FF8C1A); /* Gold to Orange gradient for titles */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.page-sports__section-title--glow {
    color: #FFB04D; /* Glow */
    text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

/* Text Content */
.page-sports__text-content {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #FFF3E6; /* Text Main */
}

/* CTA Buttons */
.page-sports__cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px; /* Touch target size */
    box-sizing: border-box;
}

.page-sports__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 140, 26, 0.4);
}

.page-sports__cta-button--secondary {
    background: #A84F0C; /* Border color as secondary button */
    border: 1px solid #FF8C1A;
}

.page-sports__cta-button--secondary:hover {
    background: #D96800; /* Deep Orange */
    box-shadow: 0 8px 15px rgba(217, 104, 0, 0.4);
}

.page-sports__cta-button--alt {
    background: #17191F; /* Card B G */
    border: 1px solid #FF8C1A; /* Main color border */
}

.page-sports__cta-button--alt:hover {
    background: #100224; /* Darker background on hover */
    box-shadow: 0 8px 15px rgba(255, 140, 26, 0.4);
}

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


/* About Section */
.page-sports__about-section {
    padding: 60px 0;
    background-color: #17191F; /* Card B G */
}

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

.page-sports__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 columns on desktop, responsive */
    gap: 25px;
    margin-top: 40px;
}

.page-sports__game-tile {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

.page-sports__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 26, 0.5);
}

.page-sports__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 0;
    background-color: #17191F; /* Card B G */
}

.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

.page-sports__guide-item {
    background-color: #0D0E12; /* Background */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__guide-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #FFA53A; /* Auxiliary color for subheadings */
}

.page-sports__guide-text {
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0D0E12; /* Background */
}

/* CTA Section */
.page-sports__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #17191F; /* Card B G */
}


/* Responsive Adjustments */
@media (min-width: 850px) {
    .page-sports__hero-section {
        flex-direction: column; /* Keep column for desktop, but align content */
        min-height: clamp(420px, 50vw, 800px); /* Flexible height for hero */
        justify-content: center;
        padding-top: 60px; /* Adjust padding for hero section */
    }

    .page-sports__hero-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin-bottom: 0;
    }

    .page-sports__hero-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .page-sports__hero-content {
        position: relative;
        z-index: 2;
        padding-top: 0;
        padding-bottom: 0;
    }

    .page-sports__game-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on larger screens */
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: 10px; /* Small top padding for hero on mobile */
    }

    .page-sports__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-sports__hero-description {
        font-size: 1rem;
    }

    .page-sports__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-sports__text-content {
        font-size: 0.95rem;
    }

    .page-sports__cta-button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        font-size: 1rem;
        padding: 12px 20px;
    }

    .page-sports__cta-buttons-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-sports__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2 columns on mobile, min 200px */
        gap: 15px;
    }

    /* Ensure all images within .page-sports are responsive and don't overflow */
    .page-sports img {
        max-width: 100%;
        height: auto;
        display: block; /* Important for preventing overflow */
    }

    .page-sports__game-tile img {
        min-width: 100%; /* Override min-width to ensure it scales down */
        min-height: auto; /* Override min-height to ensure it scales down */
    }

    .page-sports__hero-image {
        min-width: 100%;
        min-height: auto;
    }
}

@media (max-width: 549px) {
    .page-sports__game-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}