/* Premium Sports Specific Styles */

/* Sports Hero */
.sports-hero {
    background: linear-gradient(135deg, #0f1c15 0%, #000000 100%);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--color-accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    color: white;
}

.sports-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('../images/sports_hero_bg.png') no-repeat center right;
    /* Placeholder or use gradient/icon */
    opacity: 0.2;
    pointer-events: none;
}

.live-badge {
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.hero-team {
    text-align: center;
}

.hero-team img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.hero-score {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent-gold);
    font-family: var(--font-heading);
}

.hero-vs {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 20px;
}

/* Slider Styles */
.sports-hero-slider {
    display: grid;
    grid-template-areas: "slide";
    margin-bottom: 25px;
}

.hero-slide {
    grid-area: slide;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    margin-bottom: 0 !important;
    /* Override default margin since container has it */
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Premium Match Card */
.premium-match-card {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(255, 200, 0, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-match-card:hover {
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pm-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .pm-header {
        font-size: 10px;
        /* Smaller font on mobile */
        padding: 6px 10px;
        /* Tighter padding */
    }
}

.pm-body {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pm-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: white;
    padding-right: 20px;
}

.score-highlight {
    color: var(--color-accent-gold);
    font-weight: 700;
}

/* Enhanced Odds Buttons */
.pm-odds {
    display: flex;
    gap: 6px;
}

.odds-box {
    width: 60px;
    padding: 6px 0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.odds-box.back {
    background: #0077b6;
    /* Prof. Blue */
    background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%);
    color: #000;
}

.odds-box.lay {
    background: #ff9a9e;
    background: linear-gradient(to box, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    background: #ffb6c1;
    /* Pink */
    color: #000;
}

.odds-val {
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
}

.odds-sub {
    font-size: 9px;
    opacity: 0.7;
}

/* Sports SEO Section */
.sports-seo-container {
    background: var(--glass-bg);
    border: 1px solid var(--color-accent-gold);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 50px;
    color: var(--color-text-muted);
}

.sports-seo-container h2 {
    color: var(--color-accent-gold);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 24px;
}

.sports-seo-container h3 {
    color: white;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.sports-seo-container p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.sports-seo-container ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.sports-seo-container li {
    margin-bottom: 8px;
}

/* Base Sports Layout Styles (Migrated from sports.html) */

.sports-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 20px;
    padding: 10px 20px 20px 20px;
    min-height: 100vh;
}

/* Sidebar */
.sidebar-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid var(--glass-border);
}

.sport-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    color: var(--color-text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sport-item:hover,
.sport-item.active {
    background-color: var(--color-primary-dark);
    color: white;
    border-left: 3px solid var(--color-accent-gold);
}

/* Main Content - Odds */
.match-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.match-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.match-body {
    padding: 15px;
    display: flex;
    align-items: center;
}

.teams {
    flex: 1;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 200px;
}

.odd-btn {
    background: #2a2a2a;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.odd-btn:hover {
    background: #3a3a3a;
}

.odd-btn.back {
    background: #72bbef;
    color: #000;
}

.odd-btn.lay {
    background: #faa9ba;
    color: #000;
}

.odd-val {
    font-weight: 700;
    font-size: 14px;
}

.odd-label {
    font-size: 10px;
    opacity: 0.8;
}

/* Betslip (Right) */
.betslip-header {
    font-family: var(--font-heading);
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.empty-slip {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .sports-layout {
        grid-template-columns: 200px 1fr;
    }

    .right-sidebar {
        display: none;
    }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .left-sidebar {
        display: none;
    }

    .sports-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 5px !important;
        box-sizing: border-box;
        /* Removing local overflow-x: hidden to prevent cutting; body handles global overflow */
    }

    /* Hero Mobile Fixes */
    .sports-hero {
        padding: 15px;
    }

    .hero-team img {
        width: 40px;
        /* Reduced from 60px */
        height: 40px;
        margin-bottom: 5px;
    }

    .hero-score {
        font-size: 22px;
        /* Reduced from 32px */
    }

    .hero-vs {
        margin: 0 5px;
        font-size: 12px;
    }

    /* Wrap long names in hero */
    .hero-team {
        max-width: 30%;
        /* Ensure they don't take too much space */
    }

    .hero-team div {
        font-size: 12px;
        white-space: normal;
        line-height: 1.2;
    }

    .hero-match-info {
        margin-top: 15px;
        justify-content: space-around;
        /* Better spacing */
    }

    /* Header Text Truncation */
    .pm-header {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .pm-header span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pm-header span:first-child {
        flex: 1;
        /* Allow left side to take more space */
        min-width: 0;
    }

    .pm-header span:last-child {
        flex-shrink: 0;
        /* Prevent right side from shrinking too much unless needed */
        max-width: 40%;
    }

    /* Filters horizontal scroll fix */
    .sports-layout>div[style*="overflow-x: auto"] {
        width: 100%;
        max-width: 100%;
        padding-right: 20px;
        /* Add breathing room for scroll */
        margin-right: -15px;
        /* Negative margin to pull scrollbar to edge if needed */
        padding-left: 2px;
        box-sizing: border-box;
    }

    /* Ensure slider matches fit */
    .sports-hero-slider {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Match Card Mobile Fixes - Stack Content */
    .premium-match-card .pm-body {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        /* Reduced padding from 15px to 10px */
    }

    /* Ensure container respects viewport */


    .premium-match-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .premium-match-card .pm-teams {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
        margin-bottom: 5px;
        overflow: hidden;
    }

    .premium-match-card .pm-team {
        padding-right: 0;
        max-width: 100%;
    }

    .premium-match-card .pm-team span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 65%;
        /* Stricter limit */
        display: inline-block;
        vertical-align: middle;
    }

    .premium-match-card .pm-team span.score-highlight {
        max-width: 30%;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
        text-align: right;
    }

    .premium-match-card .pm-odds {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        /* Allow shrinking */
        gap: 4px;
        /* Tight gap */
    }

    .premium-match-card .odds-box {
        width: 100%;
        padding: 6px 0;
        min-width: 0;
        /* Critical for grid shrinking */
    }

    /* Filters horizontal scroll fix */
    .sports-layout>div[style*="overflow-x: auto"] {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        margin-right: 0;
    }

    /* Legacy Match Card Fixes */
    .match-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .teams {
        width: 100%;
        margin-bottom: 15px;
    }

    .odds-grid {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }
}