:root {
  --sports-primary: #1e4785;
  --sports-secondary: #ff6b6b;
  --sports-accent: #4CAF50;
  --sports-purple: #9b4dca;
  --sports-orange: #ff7f50;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatingLights {
  0% {
    background-size: 400% 400%;
    background-position: 0% 0%;
  }
  50% {
    background-size: 200% 200%;
    background-position: 100% 100%;
  }
  100% {
    background-size: 400% 400%;
    background-position: 0% 0%;
  }
}

html {
  height: 100%;
  background: url('img/background.png') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  position: relative;
  color: white;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
}

.card-header {
  background: rgba(51, 51, 51, 0.6) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  position: relative;
}

.card-header::before {
  content: none;
}

/* Sport-specific icons for different sections */
.card-header.teams-header::before { content: none; }
.card-header.players-header::before { content: none; }
.card-header.games-header::before { content: none; }

/* Navigation */
.navbar {
  position: relative;
  z-index: 2;
  background: rgba(51, 51, 51, 0.4) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin: 15px auto;
  width: 70%;
  padding: 0.5rem 2rem;
}

.navbar .container {
  width: 100%;
  padding: 0;
}

.navbar-brand {
  font-weight: bold;
  letter-spacing: 2px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-top: 5px;
}

.dropdown-item:hover {
  background: rgba(var(--sports-primary), 0.1);
}

/* Buttons */
.btn {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--sports-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning {
  background: var(--sports-orange);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Controls */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(5px);
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-label {
  color: white;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* List Groups */
.list-group-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: white;
  margin-bottom: 0.5rem;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

/* Player Specific Styles */
.player-header {
  cursor: pointer;
  padding: 1rem;
}

.player-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1rem;
}

.player-details.show {
  max-height: 500px;
  padding: 1rem;
}

.player-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

.chevron {
  transition: transform 0.3s ease;
}

.chevron.rotated {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: rgba(51, 51, 51, 0.4) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

/* Text and Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Login Page Specific */
.login-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin-top: 100px;
}

.login-container input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.login-container input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--sports-secondary);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(255, 107, 107, 0.25);
}

.login-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-container .btn-primary {
  background: var(--sports-secondary);
  border: none;
  transition: all 0.3s ease;
}

.login-container .btn-primary:hover {
  background: var(--sports-primary);
  transform: translateY(-2px);
}

/* Main content wrapper */
.main-content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding-bottom: 60px; /* Space for footer */
}

/* Form placeholder color */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Alert styling */
.alert {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Update form select color */
.form-select {
  color: white;
}

.form-select option {
  background: var(--sports-primary);
  color: white;
}

/* Make all text white by default */
body, 
.card, 
.form-control, 
.form-select,
.dropdown-item,
.nav-link,
.btn,
h1, h2, h3, h4, h5, h6,
p, span, label, input {
  color: white;
}

/* Ensure dropdown items are visible */
.dropdown-item {
  color: var(--sports-primary);
}

.dropdown-item:hover {
  color: white;
  background: var(--sports-primary);
}

/* Login page specific styles */
.input-group-text {
  border-color: rgba(255, 255, 255, 0.2);
}

.input-group .form-control {
  border-color: rgba(255, 255, 255, 0.2);
}

.input-group .form-control:focus {
  border-left-color: transparent;
}

.input-group .input-group-text {
  border-right-color: transparent;
}

/* Alert styling for login errors */
.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

/* Newsletter styles */
.card-img-top {
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.card-img-top:hover {
  transform: scale(1.02);
}

/* Welcome page specific styles */
.list-group-item i {
  color: var(--sports-secondary);
}

.bg-info {
  background: rgba(30, 71, 133, 0.9) !important;
}

/* Quick actions buttons */
.d-grid.gap-3 .btn {
  padding: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.d-grid.gap-3 .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sports-themed button hover effects */
.btn-primary:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-warning:hover {
  transform: translateY(-2px) rotate(1deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Remove the sports-themed list item decorations */
.list-group-item::before {
  content: none; /* Remove the icons */
}

.list-group-item:nth-child(2n)::before { content: none; }
.list-group-item:nth-child(3n)::before { content: none; }
.list-group-item:nth-child(4n)::before { content: none; }

/* Keep other sports-themed elements */
.card-header::before {
  content: none;
}

/* Sport-specific icons for different sections */
.card-header.teams-header::before { content: none; }
.card-header.players-header::before { content: none; }
.card-header.games-header::before { content: none; }

/* Fix placeholder text color */
::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Improve button visibility */
.btn-primary {
  background: var(--sports-primary);
  border: none;
}

.glitch-button {
  background: var(--sports-primary);
  color: white;
  border: none;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glitch-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Add hover effects for bubble feel */
.navbar:hover, .footer:hover {
  background: rgba(51, 51, 51, 0.5) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Add this after your existing styles */

.steph-image {
  position: fixed;
  left: 0;
  bottom: -5vh;
  width: 65%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  animation: slideInFromLeft 1s ease-out forwards;
  background: url('img/steph.png') no-repeat bottom left;
  background-size: contain;
}

.fb-image {
  position: fixed;
  left: 0;
  bottom: -5vh;
  width: 65%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  animation: slideInFromLeft 1s ease-out forwards;
  background: url('img/fb.png') no-repeat bottom left;
  background-size: contain;
}

.ronaldo-image {
  position: fixed;
  right: 0;
  bottom: -5vh;
  width: 65%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  animation: slideInFromRight 1s ease-out forwards;
  background: url('img/ronaldoCr7.png') no-repeat bottom right;
  background-size: contain;
}

.archie-image {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 65%;
  height: 35vh;
  z-index: 0;
  pointer-events: none;
  animation: slideInFromBottom 1s ease-out forwards;
  background: url('img/archie.png') no-repeat bottom center;
  background-size: contain;
}

@keyframes slideInFromBottom {
  0% {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 0.8;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 0.8;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 0.8;
  }
}