:root {
    /* Fresh Lemon & Sky Blue Light Theme */
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --primary: #0ea5e9; /* Sky Blue */
    --accent: #eab308; /* Lemon Yellow */
    --text-main: #1e293b; /* Dark Slate for readability */
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(14, 165, 233, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(14, 165, 233, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3, .nm-team-name, .time-box span, .nm-vs { 
    font-family: 'Outfit', sans-serif; 
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Header */
.header { 
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    padding: 20px 0; 
    box-shadow: var(--shadow-sm);
}
.header .container { display: flex; justify-content: center; align-items: center; }
.logo { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); }
.logo span { color: var(--primary); }

/* Hero Next Match */
.hero-next-match { 
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(234, 179, 8, 0.1)); 
    padding: 60px 0; 
    border-bottom: 1px solid var(--border); 
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
.hero-next-match::before {
    content: ''; position: absolute; top: -50px; left: -50px; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(234,179,8,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 0;
}
.hero-next-match::after {
    content: ''; position: absolute; bottom: -100px; right: -50px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 0;
}

.hero-title { 
    text-align: center; font-size: 16px; color: var(--primary); text-transform: uppercase; 
    letter-spacing: 4px; margin-bottom: 30px; font-weight: 800; position: relative; z-index: 1;
}

.next-match-display { 
    max-width: 800px; margin: 0 auto; background: var(--bg-card); 
    border-radius: 24px; border: 1px solid var(--border); padding: 50px; 
    box-shadow: var(--shadow-lg); position: relative; z-index: 1;
    transition: var(--transition);
}
.next-match-display:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(14, 165, 233, 0.2);
}

.nm-teams { display: flex; align-items: center; justify-content: center; gap: 40px; margin-bottom: 35px; }

.nm-team { display: flex; flex-direction: column; align-items: center; gap: 20px; flex: 1; }
.nm-flag { 
    width: 140px; height: 93px; object-fit: cover; border-radius: 12px; 
    box-shadow: var(--shadow-md); transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}
.nm-team:nth-child(3) .nm-flag { animation-delay: -3s; }
.nm-team:hover .nm-flag { transform: scale(1.05); }

.nm-team-name { font-size: 32px; font-weight: 900; text-align: center; color: var(--text-main); }

.nm-vs { 
    font-size: 36px; font-weight: 900; color: var(--accent); 
    background: rgba(234, 179, 8, 0.1); padding: 15px; border-radius: 50%;
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    animation: pulse-soft 2s infinite;
}

.nm-details { text-align: center; border-top: 2px dashed var(--border); padding-top: 30px; }
.nm-time { font-size: 18px; color: var(--text-muted); font-weight: 600; margin-bottom: 25px; }
.nm-time span { color: var(--primary); font-weight: 800; }

.countdown-display { display: flex; justify-content: center; gap: 20px; }
.time-box { 
    background: var(--bg-light); padding: 15px 25px; border-radius: 16px; 
    display: flex; flex-direction: column; min-width: 90px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.time-box span { font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1; }
.time-box small { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; color: var(--text-muted); margin-top: 8px; font-weight: 600;}

/* Layout */
.layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding: 80px 20px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.section h2, .widget h3 { 
    font-size: 28px; margin-bottom: 30px; color: var(--text-main);
    display: flex; align-items: center; gap: 15px;
}
.section h2::before, .widget h3::before {
    content: ''; display: block; width: 6px; height: 28px; background: var(--accent); border-radius: 4px;
}

/* Fixtures List & Filter */
.fixtures-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.fixtures-header h2 { margin-bottom: 0; }
.team-filter { 
    padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border); 
    background-color: var(--bg-card); color: var(--text-main); font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 14px; outline: none; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.team-filter:hover, .team-filter:focus { border-color: var(--primary); box-shadow: var(--shadow-md); }

.fixtures-list { display: flex; flex-direction: column; gap: 20px; }
.fixture-date-header { 
    font-size: 20px; color: var(--text-main); font-weight: 800; 
    margin-top: 30px; padding-bottom: 10px; border-bottom: 2px solid var(--border); 
}
.fixture-date-header:first-child { margin-top: 0; }

.fixture-item { 
    display: grid; grid-template-columns: 100px 1fr auto 1fr; align-items: center; gap: 20px; 
    background: var(--bg-card); padding: 20px 25px; border-radius: 16px; 
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.fixture-item:hover { 
    transform: translateX(5px) translateY(-2px); 
    box-shadow: var(--shadow-md); border-color: rgba(14, 165, 233, 0.3);
}

.fix-time { font-size: 15px; color: var(--primary); font-weight: 800; }
.fix-team { display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: 18px;}
.fix-team.home { justify-content: flex-end; text-align: right; }
.fix-team.away { justify-content: flex-start; text-align: left; }
.fix-flag { width: 36px; height: 24px; border-radius: 4px; object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.1);}
.fix-vs { color: var(--text-muted); font-weight: 900; font-size: 14px; background: var(--bg-light); padding: 5px 10px; border-radius: 8px;}

/* Sidebar Matches */
.widget { 
    background-color: var(--bg-card); padding: 35px; border-radius: 24px; 
    border: 1px solid var(--border); position: sticky; top: 120px; box-shadow: var(--shadow-lg);
}
.widget-subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.match-list { display: flex; flex-direction: column; gap: 20px; }
.match-card { 
    background-color: var(--bg-light); border-radius: 12px; padding: 20px; 
    border-left: 4px solid var(--accent); transition: var(--transition);
}
.match-card:hover { transform: translateX(5px); background: #fff; box-shadow: var(--shadow-sm); }
.match-teams { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 12px; font-size: 16px; color: var(--text-main);}
.match-time { font-size: 13px; color: var(--primary); font-weight: 700;}
.match-round { font-size: 12px; color: var(--text-muted); margin-top: 5px; font-weight: 600;}

@media (max-width: 600px) {
    .header { padding: 10px 0; }
    .logo { font-size: 20px; }
    .hero-next-match { padding: 30px 0; }
    .next-match-display { padding: 25px 15px; border-radius: 16px; }
    .nm-team-name { font-size: 20px; }
    .nm-time { font-size: 14px; }
    .time-box { padding: 10px 15px; min-width: 65px; }
    .time-box span { font-size: 24px; }
    
    .fixture-item { grid-template-columns: 1fr; text-align: center; gap: 15px; padding: 15px; }
    .fix-team.home, .fix-team.away { justify-content: center; text-align: center; }
    .nm-teams { flex-direction: column; gap: 20px; margin-bottom: 20px; }
    .nm-flag { width: 80px; height: 53px; }
    .nm-vs { width: 45px; height: 45px; font-size: 16px; padding: 10px; }
    .layout { padding: 30px 15px; gap: 30px; }
    .fixtures-header { flex-direction: column; align-items: stretch; }
    .team-filter { width: 100%; }
}

.footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 15px; font-weight: 500;}
