:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --accent: #66fcf1;
    --accent-dark: #45a29e;
    --text-main: #ffffff;
    --text-muted: #c5c6c7;
    --shadow: 0 10px 30px -10px rgba(102, 252, 241, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(69, 162, 158, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

h1 span {
    color: var(--accent);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(102, 252, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 252, 241, 0.2);
}

.pulse {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(102, 252, 241, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(102, 252, 241, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(102, 252, 241, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(102, 252, 241, 0); }
}

/* Match Cards */
#matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.match-card {
    background: rgba(31, 40, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(102, 252, 241, 0.3);
}

.match-card:hover::before {
    transform: scaleX(1);
}

.game-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.team-name {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.score {
    font-size: 2.5rem;
    font-weight: 800;
    padding: 0 1.5rem;
    color: var(--accent);
}

.match-details {
    background: rgba(11, 12, 16, 0.5);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-muted);
}

.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: rgba(31, 40, 51, 0.3);
    border-radius: 16px;
    color: var(--text-muted);
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(102, 252, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
