/* style/sports.css */

/* Base 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 from shared.css */
}

.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: #E94560; /* Accent color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-sports__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-bottom: 60px;
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    margin-top: 0;
    background: linear-gradient(135deg, #1A1A2E, #0a0a0a);
    overflow: hidden;
}

.page-sports__hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 20px;
}

.page-sports__hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 1;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: #E94560; /* Accent color for main title */
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

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

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-sports__hero-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #E94560; /* Accent color */
    color: #ffffff;
    border: 2px solid #E94560;
}

.page-sports__btn-primary:hover {
    background-color: #ff6a80;
    border-color: #ff6a80;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(233, 69, 96, 0.4);
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #E94560; /* Accent color */
    border: 2px solid #E94560;
}

.page-sports__btn-secondary:hover {
    background-color: #E94560;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(233, 69, 96, 0.4);
}

/* Section spacing */
.page-sports__intro-section,
.page-sports__live-betting-section,
.page-sports__guide-section,
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

.page-sports__dark-bg {
    background-color: #1A1A2E; /* Main brand color for dark sections */
    padding: 80px 0;
}

.page-sports__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-sports__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-sports__content-text {
    flex: 1;
}

.page-sports__content-text p {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-sports__content-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Featured Sports Grid */
.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.page-sports__sport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-sports__sport-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

.page-sports__sport-title {
    font-size: 1.6em;
    color: #E94560;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__sport-text {
    color: #e0e0e0;
    font-size: 1em;
    padding: 0 15px;
}

/* Promotions Grid */
.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: 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, box-shadow 0.3s ease;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.page-sports__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-sports__promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 20px;
}

.page-sports__promo-title {
    font-size: 1.4em;
    color: #E94560;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-sports__promo-text {
    color: #e0e0e0;
    font-size: 0.95em;
    padding: 0 20px 20px;
}

/* Guide List */
.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sports__guide-list li {
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

.page-sports__guide-list li h3 {
    color: #E94560;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-sports__guide-list li p {
    color: #e0e0e0;
    font-size: 1em;
}

.page-sports__guide-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #E94560;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
    text-align: center;
}

.page-sports__responsible-gaming-section p {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #f0f0f0;
    font-size: 1.1em;
}

/* Contact Section */
.page-sports__contact-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-sports__contact-section p {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #f0f0f0;
    font-size: 1.1em;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
}

.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 0 5px 5px;
    color: #e0e0e0;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #1A1A2E;
    border: 1px solid #E94560;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-sports__faq-question:hover {
    background: #2A2A3E;
    border-color: #ff6a80;
}

.page-sports__faq-question:active {
    background: #3A3A4E;
}

.page-sports__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #ffffff;
}

.page-sports__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #E94560;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg);
}

/* General image styling */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__section-description {
        font-size: 1em;
    }
    .page-sports__content-grid {
        flex-direction: column;
    }
    .page-sports__content-grid--reverse {
        flex-direction: column;
    }
    .page-sports__hero-content,
    .page-sports__hero-image-wrapper,
    .page-sports__content-text,
    .page-sports__content-image {
        max-width: 100%;
    }
    .page-sports__hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .page-sports__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-sports__hero-container {
        padding: 40px 15px;
        gap: 20px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__container {
        padding: 0 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__section-description {
        font-size: 0.9em;
        margin-bottom: 40px;
    }
    .page-sports__intro-section,
    .page-sports__live-betting-section,
    .page-sports__guide-section,
    .page-sports__faq-section,
    .page-sports__dark-bg {
        padding: 60px 0;
    }
    .page-sports__content-grid {
        gap: 30px;
    }
    .page-sports__content-text p {
        font-size: 0.95em;
    }
    .page-sports__sport-card img,
    .page-sports__promo-card img {
        height: 200px;
    }
    .page-sports__sport-title {
        font-size: 1.4em;
    }
    .page-sports__promo-title {
        font-size: 1.2em;
    }
    .page-sports__guide-list li h3 {
        font-size: 1.3em;
    }
    .page-sports__faq-question {
        padding: 15px;
    }
    .page-sports__faq-question h3 {
        font-size: 1em;
    }
    .page-sports__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }
    /* Mobile image adaptation */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-sports__hero-image-wrapper,
    .page-sports__content-image,
    .page-sports__sport-card,
    .page-sports__promo-card,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-sports__hero-section .page-sports__hero-image-wrapper {
        padding: 0;
    }
}

/* Ensure all content sections have proper padding for mobile */
@media (max-width: 768px) {
    .page-sports__intro-section .page-sports__container,
    .page-sports__featured-sports-section .page-sports__container,
    .page-sports__live-betting-section .page-sports__container,
    .page-sports__promotions-section .page-sports__container,
    .page-sports__guide-section .page-sports__container,
    .page-sports__responsible-gaming-section .page-sports__container,
    .page-sports__faq-section .page-sports__container,
    .page-sports__contact-section .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}