/*
Theme Name: The Live Cricket
Theme URI: https://thelivecricket.com
Author: Manoj Kumar
Author URI: https://thelivecricket.com
Description: Ultra-fast Cricbuzz style lightweight cricket theme with full category navigation.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: thelivecricket
*/

:root {
    --bg-primary: #f4f5f8;
    --bg-card: #ffffff;
    --header-bg: #009270;
    --header-dark: #007358;
    --text-main: #181818;
    --text-muted: #666666;
    --accent-red: #d32f2f;
    --accent-green: #009270;
    --border-color: #e0e0e0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark-mode {
    --bg-primary: #121212;
    --bg-card: #1e1e1e;
    --header-bg: #005c45;
    --header-dark: #004231;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); background-color: var(--bg-primary); color: var(--text-main); line-height: 1.4; }

/* Header */
header { background-color: var(--header-bg); color: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; }
.logo { font-size: 20px; font-weight: bold; color: white; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { background: #ffeb3b; color: #000; padding: 2px 6px; border-radius: 3px; font-size: 11px; text-transform: uppercase; font-weight: 800; }

/* Main Navigation Bar */
.nav-bar { background: var(--header-dark); border-top: 1px solid rgba(255,255,255,0.1); }
.nav-bar-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav-bar-container::-webkit-scrollbar { display: none; }
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links li a { color: white; text-decoration: none; font-size: 13px; font-weight: 600; padding: 10px 14px; display: inline-block; transition: background 0.2s; }
.nav-links li a:hover, .nav-links li a.active { background: rgba(255,255,255,0.15); }
.nav-links li a.live-btn { color: #ffeb3b; font-weight: 800; }

/* Sub Navigation Bar for Quick Matches Filters */
.match-tabs { max-width: 1200px; margin: 10px auto 0; padding: 0 15px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.match-tabs::-webkit-scrollbar { display: none; }
.tab-item { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab-item.active { background: var(--accent-green); color: white; border-color: var(--accent-green); }

/* Ticker Bar */
.ticker-wrap { background: var(--bg-card); border-bottom: 1px solid var(--border-color); overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-top: 10px; }
.ticker-wrap::-webkit-scrollbar { display: none; }
.ticker-content { display: inline-flex; padding: 10px 15px; gap: 15px; }
.ticker-item { background: var(--bg-primary); color: var(--text-main); padding: 10px 14px; border-radius: 8px; min-width: 220px; border-left: 4px solid var(--accent-green); font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.ticker-item.live { border-left-color: var(--accent-red); }
.ticker-item .match-status { font-weight: bold; color: var(--accent-red); font-size: 10px; text-transform: uppercase; margin-bottom: 4px; }

/* Layout Main */
.main-container { max-width: 1200px; margin: 15px auto; padding: 0 15px; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* Cards */
.card { background: var(--bg-card); border-radius: 8px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-color); }
.card-header { font-size: 16px; font-weight: bold; border-bottom: 2px solid var(--accent-green); padding-bottom: 8px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }

/* Scorecard Grid */
.match-card { display: flex; flex-direction: column; gap: 8px; }
.team-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.match-desc { font-size: 12px; color: var(--text-muted); }

/* Theme Toggle */
.theme-btn { background: none; border: 1px solid rgba(255,255,255,0.4); color: white; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .main-container { grid-template-columns: 1fr; }
}
