/* style/sports.css */

/* Variables and Base Styles */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #0d0d0d; /* Assuming shared.css defines --bg-color as a dark color or similar */
    --login-color: #EA7C07;
    --black-color: #000000;
}

.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text for assumed light body background */
    background-color: var(--background-light); /* Assuming shared.css defines --bg-color as light or white */
}

/* Hero Section padding-top is directly on hero-section */

/* Sections */
.page-sports__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-sports__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
    color: var(--text-dark);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-sports__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-sports__btn-primary:hover {
    background-color: #1a8cc4; /* Darken primary color */
    border-color: #1a8cc4;
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-sports__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

/* Color Schemes for Sections */
.page-sports__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-sports__dark-bg {
    background-color: var(--primary-color); /* Using brand color for dark sections */
    color: var(--text-light);
}

.page-sports__dark-bg .page-sports__section-title {
    color: var(--text-light);
}

.page-sports__dark-bg .page-sports__text-block {
    color: var(--text-light);
}

/* 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.1); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    height: 100%; /* Ensure cards have equal height */
}

.page-sports__sport-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure no extra space below image */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-sports__sport-card .page-sports__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-sports__sport-card p {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-light);
}

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

.page-sports__bet-card {
    background-color: var(--background-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-sports__bet-card .page-sports__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-sports__bet-card p {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Odds Section */
.page-sports__odds-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-sports__odds-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
}

.page-sports__odds-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-light);
    text-align: justify;
}

.page-sports__odds-image {
    flex: 1;
    min-width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
    min-height: 200px; /* Min image size */
}

/* Interface Section */
.page-sports__interface-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap-reverse; /* Image on right for desktop, then on top for mobile */
}

.page-sports__interface-image {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
    min-height: 200px; /* Min image size */
}

.page-sports__interface-text {
    flex: 1;
    min-width: 300px;
}

.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-sports__feature-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: var(--text-dark);
    text-align: justify;
}

.page-sports__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Promotions Section */
.page-sports__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}