/* Lensa Sponsored Jobs Widget */
.lensa-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  animation: fadeInUp 0.5s ease-out;
}

.lensa-widget-ads {
  padding: 5px;
  margin: 5px 0;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lensa-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.lensa-widget-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.lensa-widget-title .icon {
  font-size: 18px;
}

.lensa-powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.lensa-powered-by svg {
  height: 14px;
  width: auto;
  opacity: 0.9;
}

.lensa-job-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lensa-job-item:hover {
  background: #fff;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lensa-job-item:last-child {
  margin-bottom: 0;
}

.lensa-job-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}

.lensa-job-title:hover {
  color: #667eea;
}

.lensa-job-company {
  font-size: 12px;
  color: #4a5568;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lensa-job-company i {
  color: #a0aec0;
  font-size: 11px;
}

.lensa-job-location {
  font-size: 11px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.lensa-job-location i {
  color: #cbd5e0;
}

.lensa-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lensa-apply-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lensa-apply-btn i {
  font-size: 10px;
}

.lensa-loading {
  text-align: center;
  padding: 30px;
  color: #fff;
}

.lensa-loading i {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.lensa-error {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.lensa-empty {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.lensa-empty i {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lensa-widget {
    margin: 16px 0;
    padding: 16px;
  }

  .lensa-job-title {
    font-size: 13px;
  }

  .lensa-widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .lensa-job-item {
    background: rgba(255, 255, 255, 0.12);
  }

  .lensa-job-item:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .lensa-job-title {
    color: #e2e8f0;
  }
}
