/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-color: #2a2a72;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.user-form {
  width: 100%;
  max-width: 700px;
}

.user-form input {
  width: 100%;
  display: block;
  background-color: #4c2885;
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 1rem;
  margin-bottom: 2rem;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 5px 10px rgba(154, 160, 185, 0.05),
    0 15px 40px rgba(0, 0, 0, 0.1);
}

.user-form input::placeholder {
  color: #bbb;
}

.user-form input:focus {
  outline: none;
}

.card {
  max-width: 800px;
  background-color: #4c2885;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(154, 160, 185, 0.05),
    0 15px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  padding: 3rem;
  margin: 0 1.5rem;
}

.avatar {
  border-radius: 50%;
  border: 10px solid #2a2a72;
  height: 150px;
  width: 150px;
}

.user-info {
  color: #eee;
  margin-left: 2rem;
}

.user-info h2 {
  margin-top: 0;
}

.user-info ul {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  padding: 0;
  max-width: 400px;
}

.user-info ul li {
  display: flex;
  align-items: center;
}

.user-info ul li strong {
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.repo {
  text-decoration: none;
  color: #fff;
  background-color: #212a72;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

@media (max-width: 500px) {
  .card {
    flex-direction: column;
    align-items: center;
  }

  .user-form {
    max-width: 400px;
  }
} */



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
  --bg: #0d1117;
  --card: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --muted: #8b949e;
  --blue: #58a6ff;
  --green: #3fb950;
}

body.light {
  --bg: #ffffff;
  --card: #f6f8fa;
  --border: #d0d7de;
  --text: #24292f;
  --muted: #57606a;
  --blue: #0969da;
  --green: #2da44e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  font-size: 1.2rem;
}

#themeToggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* SEARCH */
.search-form {
  max-width: 600px;
  margin: 2rem auto;
}

.search-form input {
  width: 100%;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}

.search-form input::placeholder {
  color: var(--muted);
}

/* CARD */
.card {
  max-width: 900px;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

/* AVATAR */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* USER INFO */
.user-info h2 {
  margin: 0;
}

.username {
  color: var(--muted);
  font-size: 0.9rem;
}

.bio {
  margin: 1rem 0;
}

/* STATS */
.stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
}

/* REPOS */
.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.repo-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: 0.2s;
}

.repo-card:hover {
  border-color: var(--blue);
}

.repo-card a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.repo-meta {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* LOADER */
.loader {
  width: 50px;
  height: 50px;
  border: 6px solid var(--border);
  border-top: 6px solid var(--blue);
  border-radius: 50%;
  margin: 2rem auto;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* MOBILE */
@media (max-width: 700px) {
  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}