:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Layout */
header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-primary);
}

/* Main Content */
main {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.match-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-logo {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.score {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Admin Panel */
#admin-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

#admin-panel.open {
    right: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input, select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    outline: none;
}

input:focus {
    border-color: var(--accent-primary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-image {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1rem;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    #admin-panel { width: 100%; }
    nav ul { display: none; }
}
