/* assets/css/style.css */

:root {
    /* --- FOTMOB DARK THEME (Default) --- */
    --bg-body: #0a0a0a;          
    --bg-surface: #171717;       
    --bg-press: #222222;         
    
    --text-main: #ffffff;
    --text-muted: #8e8e93;       
    --text-header: #9a9a9a;      
    
    /* THE SIGNATURE GREEN */
    --primary: #25f375;          
    --primary-dim: rgba(37, 243, 117, 0.1);
    
    --border: #262626;           
    --live: #f03e3e;             
    
    /* Dimensions */
    --header-height: 60px;
    --nav-height: 60px;          
    --radius: 8px;               
}

/* LIGHT MODE OVERRIDES */
body.light-mode {
    --bg-body: #f4f5f9;          
    --bg-surface: #ffffff;       
    --bg-press: #f0f0f0;
    
    --text-main: #111111;
    --text-muted: #6e6e6e;
    
    --primary: #00d062;          
    --border: #e4e4e7;
}

/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: calc(var(--nav-height) + 20px);
    transition: background-color 0.2s, color 0.2s;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
img { display: block; }

/* --- UTILITIES --- */
.container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.text-primary { color: var(--primary); }
.mb-2 { margin-bottom: 8px; }

/* --- HEADER --- */
.app-header {
    background: var(--bg-surface);
    height: var(--header-height);
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px;
    color: var(--text-main);
}
.brand-logo span { 
    color: var(--primary); 
    font-size: 2rem;
    line-height: 24px;
}

/* Header Icons (Phosphor Sizing) */
.icon-btn {
    background: transparent; border: none;
    color: var(--text-main); cursor: pointer;
    padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.icon-btn i { font-size: 20px; } /* Phosphor Size */
.icon-btn:hover { background: var(--bg-press); }

.wallet-chip {
    background: var(--bg-press);
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    border: 1px solid var(--border);
}
.wallet-chip i { font-size: 16px; }

/* --- DASHBOARD / HERO --- */
.hero-card {
    background: var(--bg-surface);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
body.light-mode .hero-card { background: #ffffff; border-color: #e4e4e7; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 10px 18px; border-radius: 20px;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    border: none; font-size: 0.9rem;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:active { transform: scale(0.98); }

/* --- MATCH LISTS --- */
.league-group {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.league-header {
    padding: 12px 16px;
    background: var(--bg-surface);
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
}
.league-icon { width: 24px; height: 24px; object-fit: contain; }
.league-info { display: flex; flex-direction: column; line-height: 1.2; }
.league-name { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
.league-country { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }

.match-row {
    display: flex; align-items: center;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
    cursor: pointer;
}
.match-row:last-child { border-bottom: none; }
.match-row:active, .match-row:hover { background: var(--bg-press); }

.match-time-col {
    width: 50px; flex-shrink: 0;
    font-size: 0.8rem; color: var(--text-muted);
    font-weight: 500;
}

.match-teams-col { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.team-row { display: flex; align-items: center; gap: 10px; }
.team-icon-small { width: 20px; height: 20px; object-fit: contain; }
.team-name-small { font-size: 0.95rem; font-weight: 500; color: var(--text-main); }

.match-score-col { margin-left: auto; display: flex; align-items: center; }

.predict-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.match-row:hover .predict-btn { background: var(--primary); color: #000; border-color: var(--primary); }

/* --- BOTTOM NAV (Phosphor Icons) --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--text-muted);
    font-size: 0.65rem; font-weight: 500;
    gap: 4px;
}
/* Phosphor Icon Sizing in Nav */
.nav-item i { font-size: 24px; margin-bottom: 2px; }

/* Active State */
.nav-item.active { color: var(--primary); }

/* --- DESKTOP --- */
.desktop-nav { display: none; }
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .container { max-width: 900px; padding: 20px; }
    
    .desktop-nav { display: flex; gap: 24px; margin-right: 24px; }
    .desktop-nav a { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }
    .desktop-nav a:hover { color: var(--text-main); }
    .desktop-nav a.active { color: var(--primary); }
}

.legal-card{
    margin-top: 20px;
}

.contact-card{
    margin-top: 20px;
}

.content-card{
    margin-top: 20px;
}