/* Homepage Grid Layout */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Card Styling */
.home-card {
  background: linear-gradient(125deg, 
    rgba(44, 20, 72, 0.95),
    rgba(15, 10, 29, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card.clickable-card {
  cursor: pointer;
}

.home-card.clickable-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(74, 158, 255, 0.3);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.home-card.large-card {
  grid-column: 1 / -1;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2e2e2e;
}

/* Current Scoreboard Styles */
.scoreboard-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matchup-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.matchup-team {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.matchup-row .team-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.matchup-row .team-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4a9eff;
}

.matchup-row .starters-left {
  font-size: 0.8rem;
  color: #999;
}

.matchup-vs {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-align: center;
  padding: 0 0.5rem;
}

/* Trending Players Styles */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trending-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.trending-player:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.player-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
}

.player-meta {
  font-size: 0.85rem;
  color: #999;
}

.add-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a9eff;
  white-space: nowrap;
}

/* Standings Styles */
.standings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.standing-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.standing-row:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.standing-rank {
  font-weight: 700;
  color: #4a9eff;
  font-size: 1rem;
  min-width: 2rem;
}

.standing-team {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.standing-record {
  font-weight: 600;
  color: #999;
  font-size: 0.9rem;
}

/* Previous Week Recap Styles */
.recap-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recap-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recap-section h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a9eff;
  margin: 0 0 0.5rem 0;
}

.stat-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border-left: 3px solid rgba(74, 158, 255, 0.3);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stat-row:hover {
  border-left-color: #4a9eff;
  background: rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-weight: 600;
  color: #ccc;
  font-size: 0.9rem;
  white-space: nowrap;
}

.stat-value {
  color: #ffffff;
  font-size: 0.9rem;
}

/* Skeleton Loading Styles */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: linear-gradient(125deg, 
    rgba(44, 20, 72, 0.95),
    rgba(15, 10, 29, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
}

.skeleton-title {
  height: 28px;
  width: 60%;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.skeleton-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.skeleton-line {
  height: 16px;
  border-radius: 4px;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-line.large {
  height: 20px;
  width: 40%;
}

.skeleton-line.medium {
  width: 70%;
}

.skeleton-line.small {
  width: 30%;
}

.skeleton-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.75rem;
}

.skeleton-team {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-vs {
  width: 30px;
  height: 16px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .matchup-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  
  .matchup-vs {
    padding: 0.25rem 0;
  }
  
  .stat-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .stat-label {
    white-space: normal;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1201px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
