:root {
  --dark-bg: #0d1117;
  --dark-card: #161b22;
  --dark-border: #30363d;
  --dark-text: #c9d1d9;
  --dark-text-secondary: #8b949e;
  --github-green: #238636;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
  text-align: center;
  background-color: var(--dark-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

h1 {
  color: var(--dark-text);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.container p {
  color: var(--dark-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.search {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.search input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  color: var(--dark-text);
  width: 280px;
  transition: all 0.2s ease;
}

.search input:focus {
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.search input::placeholder {
  color: var(--dark-text-secondary);
}

.search button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--github-green);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.search button:hover {
  background-color: #2ea043;
}

.search button:active {
  background-color: #238636;
}

.details {
  margin-top: 2rem;
}

.wrapper {
  width: 200px;
  height: 60px;
  position: relative;
  z-index: 1;
  margin: 2rem auto;
}

.circle {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
  background-color: whitesmoke;
  left: 15%;
  transform-origin: 50%;
  animation: circle7124 0.5s alternate infinite ease;
}

@keyframes circle7124 {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0%;
  }
}

.circle:nth-child(2) {
  left: 45%;
  animation-delay: 0.2s;
}

.circle:nth-child(3) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

.shadow {
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--dark-border);
  position: absolute;
  top: 62px;
  transform-origin: 50%;
  z-index: -1;
  left: 15%;
  filter: blur(1px);
  animation: shadow046 0.5s alternate infinite ease;
}

@keyframes shadow046 {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    transform: scaleX(1);
    opacity: 0.7;
  }

  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}

.shadow:nth-child(4) {
  left: 45%;
  animation-delay: 0.2s;
}

.shadow:nth-child(5) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

.user-info {
  animation: fadeIn 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--dark-border);
}

.user-title h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--dark-text);
}

.username {
  color: var(--github-green);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.username:hover {
  text-decoration: underline;
}

.user-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  background-color: var(--dark-bg);
}
.stat-item {
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.repos-clickable {
  cursor: pointer;
  position: relative;
}

.repos-clickable:hover {
  transform: translateY(-2px) scale(1.05);
}

.repos-clickable:active {
  transform: scale(0.97);
}

.user-stats div {
  flex: 1;
  text-align: center;
}

.user-stats span {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-text);
}

.user-stats small {
  color: var(--dark-text-secondary);
  font-size: 0.85rem;
}

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

.repos-view {
  animation: fadeIn 0.3s ease;
}

.repos-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.back-btn {
  background: none;
  border: none;
  color: var(--github-green);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: auto;
}

.back-btn:hover {
  text-decoration: underline;
}

.repos-list {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--github-green) var(--dark-border);
}

.repos-list::-webkit-scrollbar {
  width: 6px;
}

.repos-list::-webkit-scrollbar-track {
  background: var(--dark-border);
  border-radius: 3px;
}

.repos-list::-webkit-scrollbar-thumb {
  background: var(--github-green);
  border-radius: 3px;
}

.repos-list::-webkit-scrollbar-thumb:hover {
  background: #2ea043;
}

.repo-item {
  padding: 1rem;
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.repo-item:hover {
  border-color: var(--github-green);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.1);
}

.repo-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--github-green);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s ease;
}

.repo-item:hover::before {
  height: 70%;
}

.repo-item a {
  color: var(--dark-text);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.repo-item a:hover {
  color: var(--github-green);
  text-decoration: none;
}

.repo-item p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--dark-text-secondary);
  line-height: 1.4;
}

.back-btn {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--dark-text);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--dark-bg);
  border-color: var(--github-green);
  color: var(--github-green);
  text-decoration: none;
  transform: translateX(-2px);
}

.repos-list p {
  text-align: center;
  padding: 2rem;
  color: var(--dark-text-secondary);
  font-style: italic;
}

.repo-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--dark-text-secondary);
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.repo-stat i {
  color: var(--github-green);
}
