:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --accent-blue: #00A3FF;
    --accent-purple: #B066FE;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 15px rgba(0, 163, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
nav {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group input {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    width: 200px;
    transition: all 0.3s;
}

.search-input-group input:focus {
    width: 280px;
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.2);
}

.search-icon-btn {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 10px 0;
}

.search-group-title {
    padding: 10px 20px;
    font-size: 11px;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item .item-icon {
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.search-item .item-info .name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.search-item .item-info .sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.match-card {
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

/* Match Cards */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.team-name {
    font-weight: 700;
    font-size: 16px;
    margin-top: 8px;
    text-align: center;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score {
    font-size: 28px;
    font-weight: 800;
    padding: 0 20px;
    color: var(--accent-blue);
}

.score-container .date {
    font-size: 11px;
    color: var(--text-muted);
}

.view-details,
.view-profile {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-details:hover,
.view-profile:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: black;
}

/* Player Cards */
.player-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(176, 102, 254, 0.2);
    border-color: var(--accent-purple);
}

.player-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.player-details {
    padding: 24px;
}

.player-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.country {
    font-size: 12px;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-info {
    margin: 20px 0;
    font-size: 14px;
}

.player-info p {
    margin: 5px 0;
    color: var(--text-muted);
}

.player-info strong {
    color: var(--text-main);
}

/* Section Titles */
.section-title {
    font-size: 28px;
    margin: 60px 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sport Chips */
.sport-chip {
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.sport-chip:hover {
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.sport-chip .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
}

.badge-live {
    background: #ff4b4b;
    color: white;
}

.badge-completed {
    background: rgba(0, 255, 133, 0.1);
    color: #00ff85;
}

.badge-upcoming {
    background: rgba(0, 163, 255, 0.1);
    color: var(--accent-blue);
}

/* Footer Styles */
footer {
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-title {
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Filter Bar */
.filter-bar {
    margin: 40px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 14px;
}

.filter-bar input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Profile Page */
.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.stats-card {
    padding: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.stat-val {
    font-weight: 800;
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 24px;
    }
}