/* /assets/css/style.css */

:root {
    --primary-light-red: #e3000f; 
    --secondary-red: #c0000a;
    --bg-white: #ffffff;
    --text-dark: #1f1f1f;
    --text-muted: #888888;
    --border-light: #f0f0f0;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; user-select: none;
}

body { background-color: var(--bg-white); color: var(--text-dark); overflow-x: hidden; width: 100vw; height: 100vh; }
#app { width: 100%; height: 100%; position: relative; overflow-y: auto; overflow-x: hidden;}
input, textarea { user-select: auto; outline: none; font-family: inherit; }

/* Loader */
.loader-spinner {
    width: 40px; height: 40px; border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-light-red); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 50vh auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ========================================== */
/*           HOME PAGE & HEADER CSS           */
/* ========================================== */

.home-header { background: #e3000f; padding: 15px 15px 0 15px; color: white; }

/* Updated Header Top Bar - Logo next to profile */
.home-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.header-left-group { display: flex; align-items: center; gap: 12px; }

.home-logo { height: 32px; display: flex; align-items: center; background: white; border-radius: 6px; padding: 2px 8px; }
.home-logo img { height: 100%; object-fit: contain; max-width: 130px; }

.home-icons { display: flex; gap: 15px; align-items: center; }
.icon-btn { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;}

.sports-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; }
.sports-tabs::-webkit-scrollbar { display: none; }
.sport-pill {
    padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 800;
    background: rgba(255,255,255,0.2); color: white; display: flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: 0.2s; cursor: pointer; border: 1px solid transparent;
}
.sport-pill.active { background: #ffffff; color: #e3000f; border-color: #fff; }

/* ========================================== */
/*        DYNAMIC BANNER SLIDER CSS           */
/* ========================================== */
.home-banner-container { background: white; padding: 15px 15px 5px 15px; position: relative; }
.banner-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px; scrollbar-width: none; 
    scroll-behavior: smooth; /* For auto sliding */
}
.banner-track::-webkit-scrollbar { display: none; }

.banner-slide {
    min-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; /* Force 1 slide at a time */
    border-radius: 10px; overflow: hidden; position: relative;
}
.banner-slide img { width: 100%; height: 140px; display: block; object-fit: cover; border-radius: 10px; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dot { width: 6px; height: 6px; background: #d4d4d4; border-radius: 50%; transition: 0.3s ease; }
.dot.active { background: #e3000f; width: 16px; border-radius: 4px; }

/* ========================================== */
/*               MATCHES SECTION              */
/* ========================================== */
.matches-section { background: #f5f5f5; padding: 15px; padding-bottom: 90px; min-height: 50vh; }
.section-title { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 15px; }

.match-card {
    background: #ffffff; border-radius: 12px; padding: 15px; margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; border: 1px solid #eee;
}
.match-tourney { font-size: 12px; color: #666; display: flex; align-items: center; gap: 5px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed #eee; font-weight: 600;}
.match-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.team { display: flex; flex-direction: column; align-items: flex-start; width: 30%; gap: 5px; }
.team-right { align-items: flex-end; text-align: right; }
.team-logo-row { display: flex; align-items: center; gap: 8px; }
.team-right .team-logo-row { flex-direction: row-reverse; }
.team-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.team-short { font-size: 16px; font-weight: 900; color: #111; }
.team-full { font-size: 11px; color: #888; }
.match-time { text-align: center; width: 35%; display: flex; flex-direction: column; align-items: center; justify-content: center;}
.time-left { color: #e3000f; font-weight: bold; font-size: 13px; margin-bottom: 3px; }
.time-exact { color: #888; font-size: 11px; font-weight: 500;}

.match-footer {
    display: flex; justify-content: space-between; background: #fafafa;
    padding: 10px 10px 0 10px; border-top: 1px solid #f1f1f1; font-size: 12px; font-weight: 700; color: #333; margin: 0 -5px;
}

/* ========================================== */
/*         EXACT ORIGINAL FOOTER NAV          */
/* ========================================== */
.bottom-nav-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff;
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 5px 8px 5px; height: 60px; box-shadow: 0 -2px 10px rgba(0,0,0,0.08); z-index: 1000;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    color: #888; font-size: 10px; font-weight: 700; cursor: pointer; width: 20%; height: 100%;
    transition: 0.2s;
}
.nav-item svg { fill: none; stroke: #888; stroke-width: 2; width: 22px; height: 22px; margin-bottom: 4px; }

.nav-item.active { color: var(--primary-light-red); }
.nav-item.active svg { stroke: var(--primary-light-red); }

/* Floating Shop Button */
.nav-float-circle {
    position: relative; top: -15px; background: #fff; width: 46px; height: 46px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.06); margin-bottom: -20px;
}
.nav-inner-circle {
    width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #ccc;
    display: flex; align-items: center; justify-content: center; background: #fff;
}
.nav-item.active .nav-inner-circle { border-color: var(--primary-light-red); }

/* Sidebar Drawer */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar-menu { position: fixed; top: 0; left: -85vw; width: 85vw; max-width: 320px; height: 100vh; background: #ffffff; z-index: 2001; transition: 0.3s ease-out; overflow-y: auto; }
.sidebar-menu.active { left: 0; }