:root {
  /* Main color palette */
  --white: 0, 0%, 100%;            /* #FFFFFF */
  --dark-navy: 210, 50%, 15%;      /* #13294B */
  --orange: 25, 100%, 50%;         /* #FF8000 */
  --light-gray: 210, 15%, 95%;     /* #F0F3F8 */
  --medium-gray: 210, 10%, 80%;    /* #C8D0DB */
  --dark-gray: 210, 15%, 40%;      /* #576A84 */
  --success: 142, 70%, 45%;        /* #26C07D */
  --danger: 354, 70%, 54%;         /* #E53E67 */
  --warning: 45, 100%, 60%;        /* #FFD042 */
  --info: 200, 80%, 55%;           /* #29A2DD */
}

/* Base styles */
body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--light-gray));
  color: hsl(var(--dark-navy));
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar-dark {
  background-color: hsl(var(--dark-navy)) !important;
}

.navbar-brand {
  font-weight: 700;
  color: hsl(var(--white)) !important;
}

.navbar-brand span.highlight {
  color: hsl(var(--orange));
}

.nav-link {
  color: hsl(var(--medium-gray)) !important;
  transition: color 0.2s ease;
}

.nav-link:hover, 
.nav-link:focus {
  color: hsl(var(--white)) !important;
}

.btn-primary {
  background-color: hsl(var(--orange));
  border-color: hsl(var(--orange));
  color: hsl(var(--white));
}

.btn-primary:hover, 
.btn-primary:focus,
.btn-primary:active {
  background-color: hsl(25, 100%, 45%) !important;
  border-color: hsl(25, 100%, 45%) !important;
}

.btn-outline-primary {
  border-color: hsl(var(--orange));
  color: hsl(var(--orange));
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: hsl(var(--orange)) !important;
  border-color: hsl(var(--orange)) !important;
  color: hsl(var(--white)) !important;
}

/* Footer */
footer {
  background-color: hsl(var(--dark-navy));
  color: hsl(var(--white));
  padding: 2rem 0;
  margin-top: auto;
}

/* Home page hero */
.hero {
  background: linear-gradient(rgba(19, 41, 75, 0.9), rgba(19, 41, 75, 0.8)), 
              url('https://pixabay.com/get/ge93745d0cbcd509718932a53719c5965e9ba9216d4523d12451340116ed6b5f3478c558d17500a1d9ac5c7306e764bbe4bc2b5aee633710a34a76abf837cf1c0_1280.jpg');
  background-size: cover;
  background-position: center;
  color: hsl(var(--white));
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Game cards */
.game-card {
  background-color: hsl(var(--white));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.game-card .card-header {
  background-color: hsl(var(--dark-navy));
  color: hsl(var(--white));
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.team-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.versus {
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--medium-gray));
}

.team-name {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Prediction results */
.prediction-result {
  background-color: hsl(var(--white));
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 1.5rem;
}

.prediction-header {
  background-color: hsl(var(--dark-navy));
  color: hsl(var(--white));
  padding: 1.5rem;
  border-radius: 10px 10px 0 0;
  margin: -1.5rem -1.5rem 1.5rem;
}

.prediction-winner {
  color: hsl(var(--success));
  font-weight: 700;
  font-size: 1.4rem;
}

.prediction-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--dark-navy));
  margin: 1rem 0;
}

.prediction-over-under {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.prediction-over-under.over {
  background-color: hsla(var(--success), 0.15);
  color: hsl(var(--success));
}

.prediction-over-under.under {
  background-color: hsla(var(--info), 0.15);
  color: hsl(var(--info));
}

.prediction-rationale {
  background-color: hsla(var(--light-gray), 0.5);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Loading animation */
.loading-spinner {
  margin: 2rem auto;
  text-align: center;
}

.spinner-border {
  color: hsl(var(--orange));
  width: 3rem;
  height: 3rem;
}

/* Credit display */
.credit-badge {
  background-color: hsl(var(--orange));
  color: hsl(var(--white));
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Feature cards on homepage */
.feature-card {
  background-color: hsl(var(--white));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  height: 100%;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  background-color: hsla(var(--orange), 0.1);
  color: hsl(var(--orange));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Stats section on homepage */
.stats-section {
  background-color: hsl(var(--dark-navy));
  color: hsl(var(--white));
  padding: 4rem 0;
}

.stat-counter {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--orange));
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* User profile and admin sections */
.profile-card {
  background-color: hsl(var(--white));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
}

.profile-header {
  border-bottom: 1px solid hsl(var(--medium-gray));
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.transaction-list {
  list-style-type: none;
  padding: 0;
}

.transaction-item {
  border-bottom: 1px solid hsl(var(--light-gray));
  padding: 0.75rem 0;
}

.transaction-amount {
  font-weight: 600;
}

.transaction-amount.positive {
  color: hsl(var(--success));
}

.transaction-date {
  color: hsl(var(--dark-gray));
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .team-logo {
    width: 40px;
    height: 40px;
  }
  
  .prediction-score {
    font-size: 2rem;
  }
  
  .stat-counter {
    font-size: 2.5rem;
  }
}
