/* style/sports.css */

/* Custom Properties based on color scheme */
:root {
    --phtaya-primary: #F2C14E;
    --phtaya-secondary: #FFD36B;
    --phtaya-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --phtaya-card-bg: #111111;
    --phtaya-background: #0A0A0A;
    --phtaya-text-main: #FFF6D6;
    --phtaya-border: #3A2A12;
    --phtaya-glow: #FFD36B;
}

/* Base styles for the sports page content */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--phtaya-text-main); /* Default text color for the page */
    background-color: var(--phtaya-background); /* Overall page background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure images are responsive by default */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Section Titles */
.page-sports__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--phtaya-primary);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Descriptions */
.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--phtaya-text-main);
}

/* Primary Button Style */
.page-sports__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--phtaya-button-gradient);
    color: #000000; /* Text on primary button should be dark for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-sports__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* Secondary Button Style */
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--phtaya-primary);
    text-decoration: none;
    border: 2px solid var(--phtaya-primary);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.page-sports__btn-secondary:hover {
    background: var(--phtaya-primary);
    color: var(--phtaya-background); /* Text on secondary button should be dark when hovered for contrast */
    transform: translateY(-2px);
}

/* Card General Style */
.page-sports__card {
    background-color: var(--phtaya-card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--phtaya-text-main); /* Text color for cards */
    border: 1px solid var(--phtaya-border);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports__hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px; /* Minimum height for video section */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-sports__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    background-size: cover;
    filter: brightness(0.6); /* Darken video for text readability, no color change */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure content area has height */
    box-sizing: border-box;
}

.page-sports__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 font size */
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-sports__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 0 0 5px rgba(0,0,0,0.4);
}

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

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: var(--phtaya-background); /* Dark background for this section */
    color: var(--phtaya-text-main);
}

.page-sports__dark-section .page-sports__section-title {
    color: var(--phtaya-primary);
}
.page-sports__dark-section .page-sports__section-description {
    color: var(--phtaya-text-main);
}

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

.page-sports__feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__feature-icon {
    width: 80px; /* Larger feature icons, not small like 30x30 */
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-sports__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--phtaya-primary);
}

.page-sports__feature-text {
    font-size: 1em;
    color: var(--phtaya-text-main);
}

/* Categories Section */
.page-sports__categories-section {
    padding: 80px 0;
    background-color: var(--phtaya-background);
}

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

.page-sports__category-card {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-sports__category-icon {
    width: 30px; /* Explicitly allowed small size for category icons */
    height: 30px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-sports__category-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--phtaya-primary);
    margin-bottom: 10px;
}

.page-sports__category-text {
    font-size: 0.95em;
    color: var(--phtaya-text-main);
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 80px 0;
    background-color: var(--phtaya-card-bg); /* Darker background for contrast */
}

.page-sports__live-betting-section .page-sports__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__live-content,
.page-sports__live-image {
    flex: 1;
    min-width: 300px;
}

.page-sports__live-content {
    text-align: left;
}
.page-sports__live-content .page-sports__section-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.page-sports__live-content .page-sports__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

.page-sports__live-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: var(--phtaya-background);
}

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

.page-sports__promo-card {
    text-align: center;
    padding: 0; /* Remove padding from card itself as content has padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.page-sports__promo-card img {
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    width: 100%;
    height: 200px; /* Fixed height for promo images */
}
.page-sports__promo-card .page-sports__promo-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--phtaya-primary);
    margin: 20px 20px 10px 20px;
}
.page-sports__promo-card .page-sports__promo-text {
    font-size: 1em;
    color: var(--phtaya-text-main);
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}
.page-sports__promo-card .page-sports__btn-secondary {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.page-sports__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Partners Section */
.page-sports__partners-section {
    padding: 80px 0;
    background-color: var(--phtaya-card-bg); /* Darker background */
}

.page-sports__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Min width based on 167px */
    gap: 20px;
    margin-top: 50px;
    justify-items: center;
    align-items: center;
}

.page-sports__partners-grid img {
     /* Explicitly allowed fixed size for partner game images */
    
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7); /* Subtle effect, no color change */
    transition: filter 0.3s ease;
}

.page-sports__partners-grid img:hover {
    filter: grayscale(0%) brightness(1);
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: var(--phtaya-background);
}

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

.page-sports__faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--phtaya-card-bg);
    border: 1px solid var(--phtaya-border);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(242, 193, 78, 0.1); /* Slightly lighter background for question */
    border-bottom: 1px solid var(--phtaya-border);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.2);
}

.page-sports__faq-question h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--phtaya-primary);
    margin: 0;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--phtaya-secondary);
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus visual effect */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--phtaya-text-main);
}

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

.page-sports__faq-answer p {
    margin: 0;
    padding-top: 10px; /* Small padding after question for content */
}

.page-sports__faq-answer a {
    color: var(--phtaya-primary);
    text-decoration: underline;
}

/* Final CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: var(--phtaya-card-bg); /* Darker background */
    text-align: center;
}
.page-sports__cta-section .page-sports__section-title {
    color: var(--phtaya-primary);
}
.page-sports__cta-section .page-sports__section-description {
    color: var(--phtaya-text-main);
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__live-betting-section .page-sports__container {
        flex-direction: column;
    }
    .page-sports__live-content,
    .page-sports__live-image {
        min-width: unset;
        width: 100%;
    }
    .page-sports__live-content {
        text-align: center;
    }
    .page-sports__live-content .page-sports__section-title,
    .page-sports__live-content .page-sports__section-description {
        text-align: center;
    }
}

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

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

    .page-sports__hero-section {
        padding-top: 10px !important; /* body handles header offset */
    }
}