@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
    /* Color Palette - Deep Sports Theme */
    --primary: #3B82F6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #10B981;
    /* Pitch Green */
    --accent: #8B5CF6;
    /* Purple Accent */
    --background: #0F172A;
    /* Deep Navy */
    --card-bg: #1E293B;
    /* Lighter Navy */
    --card-border: #334155;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* Effects */
    --glass: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 90px;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Premium Header */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-logo {
    background: #000;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 4px 16px 4px 12px;
    position: relative;
    letter-spacing: -0.5px;
    line-height: 1;
    display: inline-block;
}

.score-logo::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--background);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Luxury Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.card-title i {
    color: var(--primary);
}

/* Match 2.0 Card */
.match-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
}

.team-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.team-logo-xl {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #334155, #1E293B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-small);
}

.score-display {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    letter-spacing: 4px;
    flex: 1;
    text-align: center;
}

.vs-badge {
    padding: 4px 12px;
    background: var(--card-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Bottom Nav - Floating Style */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

/* Enhanced Standings */
.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.standings-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.standings-table tr {
    transition: var(--transition);
}

.standings-table td {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.standings-table td:first-child {
    border-left: 1px solid var(--glass-border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 800;
    color: var(--primary);
}

.standings-table td:last-child {
    border-right: 1px solid var(--glass-border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-premium:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Desktop Grid */
@media (min-width: 1024px) {
    .dashboard-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
    }

    .bottom-nav {
        width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }
}