@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --radius: 0.5rem;
  --border: hsl(214.3, 31.8%, 91.4%);
  --ring: hsl(262, 100%, 76%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --muted: hsl(210, 40%, 96.1%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(222.2, 47.4%, 11.2%);
  --primary-foreground: hsl(210, 40%, 98%);
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-2xl: 1.875rem;
  --font-3xl: 2rem;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
  background-size: 400% 400%;
  font-family: "Inter", "Segoe UI", sans-serif;  
  text-align: center;    
  padding-bottom: 100px;
  min-height: 100vh;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;  
  justify-content: center;
  flex-direction: column;
  padding: var(--spacing-2xl) var(--spacing-md);      
}

.devicon-github-original{
  font-size: var(--font-3xl);
  margin-bottom: var(--spacing-xl);
  color: #FFFFFF;
}

.section{
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.container {
  width: 90%;
  max-width: 64rem;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.container header {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: var(--spacing-xl) 0;
  width: 100%;
}

.container header h2 {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.025em;
}

.container header #input-search {
  width: 100%;
  max-width: 24rem;
  font-size: var(--font-sm);
  padding: 0.625rem var(--font-sm);
  margin: var(--spacing-sm) 0 var(--spacing-md);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid #989797;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  outline: none;
}

.container header #input-search:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.container header #input-search::placeholder {
  color: var(--muted-foreground);
}

.container header .search-hint {
  font-size: var(--font-sm);
  color: #000000;
  margin: 0 0 var(--spacing-lg);
  letter-spacing: -0.01em;
}

.container header #btn-search {
  width: 100%;
  max-width: 12rem;
  font-size: var(--font-sm);
  font-weight: 500;
  margin: var(--spacing-lg) auto 0;
  padding: 0.625rem var(--spacing-md);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-foreground);
}

.container header #btn-search:hover {
  background: #667eea;
  box-shadow: var(--shadow-sm);
}

.container .profile-results.hide {
  display: none;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
}

.profile-info h2 {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-info p {
  font-size: var(--font-md);
  color: var(--muted-foreground);
}

.profile-results .loading {
  font-size: var(--font-lg);
  font-weight: 500;
  margin-top: var(--spacing-xl);
}

.profile-counters {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 80px 0;
}

.profile-counters h4 {
  font-weight: normal;
  font-size: 0.75rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.profile-counters span {
  font-size: 2rem;
  font-weight: bold;
}

.profile-repositories {
  margin: 2rem auto;
  max-width: 900px;
  background: transparent;
}

.profile-repositories h2 {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.repositories {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.repository-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1rem;
  min-width: 250px;
  max-width: 300px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.repository-card:hover {
  box-shadow: var(--shadow-md);
}

.repository-card h3 {
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: left;
}

.repository-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.repository-stats span {
  font-size: var(--font-sm);
  color: var(--muted-foreground);
  background: #ececec;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
  text-align: left;
}