:root {
    --bs-primary: #ff4655;
    --bs-secondary: #1e1e1e;
    --bs-dark: #0f0f0f;
    --bs-body-bg: #121212;
    --bs-body-color: #e0e0e0;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1) 0%, rgba(30, 30, 30, 0.4) 100%);
    border-bottom: 1px solid rgba(255, 70, 85, 0.3);
}

/* Search Form */
.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 70, 85, 0.25);
}

/* Game Cards */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 70, 85, 0.3);
}

.game-card img {
    height: 200px;
    object-fit: cover;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #e63946;
    border-color: #e63946;
}

/* Cards */
.card {
    background-color: var(--bs-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e63946;
}

/* Profile Page Styles */
.player-header {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2) 0%, rgba(30, 30, 30, 0.6) 100%);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bs-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--bs-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
}

/* Match History */
.match-item {
    background-color: var(--bs-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.match-item:hover {
    background-color: rgba(255, 70, 85, 0.1);
    cursor: pointer;
}

.match-win {
    border-left: 4px solid #4caf50;
}

.match-loss {
    border-left: 4px solid #f44336;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 70, 85, 0.3);
    border-radius: 50%;
    border-top-color: var(--bs-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}