/**
 * NPL Sports Pro - Fully Responsive Combined Banner
 * Supports: Football (.nplsp-mode) & Cricket (.nplsc-mode)
 * Devices: Desktop, Landscape Tablet, Portrait Tablet, Mobile
 * Color Scheme: UNIFIED BLUE (#0010a0) for BOTH Sports
 */

/* --- GLOBAL CONTAINER --- */
.nplsp-featured-slider-outer {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 15px 0;
    margin: 15px auto;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nplsp-featured-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.nplsp-featured-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.nplsp-featured-banner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 10px 50px; /* Side padding for arrows */
    box-sizing: border-box;
}

/* --- 1. TOP SECTION (League & Badge) --- */
.nplsp-fb-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.league-info {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.league-info i { font-size: 16px; color: #f39c12; }

.featured-badge {
    position: absolute;
    right: 0;
    top: -5px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Background set in Sport Themes below */
}

/* --- 2. COUNTDOWN --- */
.nplsp-fb-countdown {
    font-size: 32px;
    font-weight: 800;
    color: #222;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    margin-bottom: 15px;
    line-height: 1;
}

/* --- 3. MAIN BAR (Team Container) --- */
.nplsp-fb-main-bar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
    border-radius: 6px;
    width: 85%; /* Inner width to let logos breathe */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Background set in Sport Themes below */
}

.fb-team-side {
    display: flex;
    align-items: center;
    width: 45%;
    position: relative;
    height: 100%;
}
.fb-home { justify-content: flex-start; }
.fb-away { justify-content: flex-end; }

/* LOGO WRAPPER */
.fb-logo-wrap {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    position: absolute;
    z-index: 5;
    border: 3px solid #0010a0; /* Default Blue Border */
}

/* Desktop Positioning */
.fb-home .fb-logo-wrap { left: -32px; }
.fb-away .fb-logo-wrap { right: -32px; }

.fb-logo-wrap img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* TEAM NAMES */
.fb-team-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: inline-block;
}
.fb-home .fb-team-name { padding-left: 50px; text-align: left; }
.fb-away .fb-team-name { padding-right: 50px; text-align: right; }

.fb-vs-box {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* --- 4. BOTTOM SECTION --- */
.nplsp-fb-bottom {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.nplsp-fb-bottom i { margin-right: 4px; }

/* --- NAVIGATION BUTTONS --- */
.fb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
.fb-nav-btn:hover { background: #333; color: #fff; border-color: #333; }
.fb-nav-btn.prev { left: 10px; }
.fb-nav-btn.next { right: 10px; }


/* ==========================================================================
   SPORT SPECIFIC THEMES (FORCING BLUE FOR BOTH)
   ========================================================================== */

/* FOOTBALL (Standard Blue) */
.nplsp-mode .nplsp-fb-main-bar { background: #0010a0; }
.nplsp-mode .fb-logo-wrap { border-color: #0010a0; }
.nplsp-mode .featured-badge { background: #0010a0; }
.nplsp-mode .fb-nav-btn:hover { background: #0010a0; border-color: #0010a0; }

/* CRICKET (Forcing Blue Over Green) */
.nplsc-mode .nplsp-fb-main-bar { 
    background: #0010a0 !important; /* Force Blue */
}
.nplsc-mode .fb-logo-wrap { 
    border-color: #0010a0 !important; /* Force Blue Border */
}
.nplsc-mode .featured-badge { 
    background: #0010a0 !important; /* Force Blue Badge (Instead of Red) */
}
.nplsc-mode .fb-nav-btn:hover { 
    background: #0010a0 !important; 
    border-color: #0010a0 !important; 
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* 1. LANDSCAPE TABLET (Max 1024px) */
@media screen and (max-width: 1024px) {
    .nplsp-fb-main-bar { width: 95%; }
    .fb-team-name { font-size: 14px; max-width: 120px; }
}

/* 2. PORTRAIT TABLET (Max 768px) */
@media screen and (max-width: 768px) {
    .nplsp-fb-countdown { font-size: 26px; }
    .nplsp-fb-main-bar { height: 44px; }
    
    .fb-logo-wrap { width: 50px; height: 50px; }
    .fb-logo-wrap img { width: 30px; height: 30px; }
    
    .fb-home .fb-team-name { padding-left: 30px; }
    .fb-away .fb-team-name { padding-right: 30px; }
    .fb-team-name { font-size: 12px; max-width: 90px; }
    
    /* Move Badge */
    .featured-badge { top: 0; position: relative; display: inline-block; margin-left: 10px; }
    .nplsp-fb-top { flex-direction: row; }
}

/* 3. MOBILE DEVICES (Max 480px) */
@media screen and (max-width: 480px) {
    
    .nplsp-featured-slider-outer { padding: 10px 0; }
    .nplsp-featured-banner { padding: 0 10px; }
    
    /* Top Section */
    .nplsp-fb-top { flex-direction: column; gap: 5px; }
    .featured-badge { margin: 0; position: static; font-size: 9px; }
    
    /* Buttons: Move to bottom */
    .fb-nav-btn { top: auto; bottom: 0; transform: none; background: transparent; border: none; box-shadow: none; color: #999; }
    .fb-nav-btn.prev { left: 20px; }
    .fb-nav-btn.next { right: 20px; }

    /* LAYOUT CHANGE: Vertical Stack */
    .nplsp-fb-main-bar {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        background: transparent !important; /* Remove bg color on mobile */
        box-shadow: none;
        width: 100%;
        margin: 10px 0 30px 0; /* Margin for arrows at bottom */
        justify-content: center;
    }

    /* Column Wrapper for Teams */
    .fb-team-side {
        width: 40%;
        flex-direction: column;
        height: auto;
        justify-content: center;
        text-align: center;
    }
    
    .fb-home, .fb-away { padding: 0; }

    /* Logo Handling */
    .fb-logo-wrap {
        position: relative;
        left: auto !important;
        right: auto !important;
        margin: 0 auto 8px auto;
        width: 55px;
        height: 55px;
        border-width: 2px;
        border-style: solid; 
        border-color: #0010a0 !important; /* Force Blue border */
    }

    /* Name Handling */
    .fb-team-name {
        padding: 0 !important;
        text-align: center !important;
        color: #333; /* Switch to dark text */
        font-weight: 700;
        font-size: 13px;
        white-space: normal;
        max-width: 100%;
        line-height: 1.2;
    }

    /* VS Box */
    .fb-vs-box {
        width: 20%;
        color: #bbb;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 25px; /* Align with names */
    }

    /* Bottom Info */
    .nplsp-fb-bottom {
        flex-direction: column;
        gap: 5px;
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 11px;
    }
}