* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

/* Container */
.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 500px;
  text-align: center;
  transition: all 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Main heading */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

/* Input group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* Input field */
#usernameInput {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  outline: none;
}

#usernameInput:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

#usernameInput::placeholder {
  color: #888;
  font-weight: 400;
}

/* Search button */
button {
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(-1px);
}

/* Profile container */
#profile {
  margin: 30px 0;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  min-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

#profile.loaded {
  opacity: 1;
  padding: 30px;
  min-height: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Profile content styles */
#profile .profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}


#profile .profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(102, 126, 234, 0.3);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

#profile .profile-avatar:hover {
  transform: scale(1.05);
  border-color: #667eea;
}

#profile .profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

#profile .profile-username {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  margin-bottom: 10px;
}

#profile .profile-bio {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 400px;
}

#profile .profile-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

#profile .stat {
  text-align: center;
}

#profile .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  display: block;
}

#profile .stat-label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

#profile .profile-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#profile .profile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Error message */
.error-message {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  font-weight: 500;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 30px 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  #profile .profile-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  #profile .profile-avatar {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  button {
    padding: 14px 24px;
  }
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}