@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  background-image: radial-gradient(circle at top, #1e293b 0%, transparent 40%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  margin-bottom: 80px; /* Space for the footer */
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--card-border) !important;
}

.navbar {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border) !important;
}

.navbar-brand {
  font-weight: 700;
  color: #fff !important;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-muted) !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #fff !important;
}

.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.search-box {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.search-input {
  width: 100%;
  padding: 1.25rem 2rem;
  border-radius: 50px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(30, 41, 59, 0.9);
}

.search-input::placeholder {
  color: #64748b;
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: 10px;
  border-radius: 40px;
  padding: 0 2rem;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.results-container {
  max-width: 900px;
  margin: 3rem auto;
}

.player-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

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

.player-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.player-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
}

/* Background decorative blurs */
.blob-1, .blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
}

.blob-1 {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: #3b82f6;
}

.blob-2 {
  bottom: 10%;
  right: -50px;
  width: 300px;
  height: 300px;
  background: #8b5cf6;
}