/* PlayVS Leagues Widget Styles */
.playvs-leagues-widget {
  max-width: 800px;
}

.playvs-tabs {
  display: flex;
  margin-bottom: 20px;
}

.playvs-tab {
  background: none !important;
  border: none;
  padding: 12px 24px;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #666 !important;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.playvs-tab:hover {
  color: #333 !important;
  background-color: transparent !important;
}

.playvs-tab:focus {
  outline: none;
  background-color: transparent !important;
}

.playvs-tab.active {
  color: #333 !important;
}

.playvs-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ff6b35;
  border-radius: 2px 2px 0 0;
}

.playvs-content {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  min-height: 200px;
}

.playvs-tab-content {
  display: none;
}

.playvs-tab-content.active {
  display: block;
}

.playvs-loading {
  text-align: center;
  color: #666;
  font-size: 16px;
  padding: 40px 0;
}

.playvs-league-group {
  margin-bottom: 32px;
}

.playvs-league-group:last-child {
  margin-bottom: 0;
}

.playvs-group-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #333;
  margin: 0 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  line-height: 1.5 !important;
}

.playvs-leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.playvs-league-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.playvs-league-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.playvs-league-card:hover .playvs-arrow {
  background-color: #ff6b35;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.playvs-game-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
}

.playvs-league-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.playvs-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.playvs-arrow svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .playvs-leagues-widget {
    margin: 0 16px;
  }

  .playvs-tabs {
    flex-direction: column;
  }

  .playvs-tab {
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
  }

  .playvs-tab.active::after {
    display: none;
  }

  .playvs-tab.active {
    background-color: #ff6b35;
    color: white;
  }

  .playvs-content {
    padding: 16px;
  }

  .playvs-leagues-grid {
    grid-template-columns: 1fr;
  }

  .playvs-league-card {
    padding: 12px;
  }

  .playvs-game-logo {
    width: 32px;
    height: 32px;
  }

  .playvs-league-name {
    font-size: 14px;
  }
}

/* Loading Animation */
.playvs-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error State */
.playvs-error {
  text-align: center;
  color: #e74c3c;
  font-size: 16px;
  padding: 40px 0;
}

.playvs-error::before {
  content: "⚠️";
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}
