* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0d1117;
  color: #c9d1d9;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.title svg {
  color: #c9d1d9;
  width: 40px;
  height: 40px;
}

header {
  background: #161b22;
  padding: 16px 40px;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

header p {
  color: #c9d1d9;
  font-size: 16px;
  margin: 0;

}

header nav {
  display: flex;
  gap: 20px;
}

header a {
  color: #c9d1d9;
  text-decoration: none;
  font-weight: 600;
}

header a:hover {
  color: #58a6ff;
}

.container {
  max-width: 80vw;
  margin: 40px auto;
  padding: 60px;
  background: #161b22;
  border-radius: 8px;
  text-align: center;
}

h1 {
  margin-bottom: 8px;
}

.description {
  margin-bottom: 12px;
}

p {
  font-size: 20px;
  opacity: 0.8;
}

.form {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

input {
  flex: 1;
  padding: 20px;
  border-radius: 4px;
  border: none;
  font-size: 16px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: #238636;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #2ea043;
}

#analyzeBtn {
  font-size: 16px;
}

#frase-aviso {
  margin-top: 20px;
  font-size: 13px;
  color: #8b949e;
  padding: 0 20px;
}

#result {
  margin-top: 24px;
  border-radius: 8px;
  /* background: #111827; */
  color: #e5e7eb;
}

#result h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #f9fafb;
}

#result ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

#result li {
  padding: 0;
  margin: 0;
  min-width: 0; /* 🔥 ESSENCIAL para grid */
  list-style: none;
}


#result li:hover {
  background: #161b22;
}

#result a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

#result a:hover {
  text-decoration: underline;
}

.user-item {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #0d1117;
  border: 1px solid #1f2933;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #60a5fa;
  text-decoration: none;
}

.user-item:hover {
  background: #161b22;
}

.user-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  border-top: 1px solid #30363d;
}

footer p {
  font-size: 14px;
  color: #8b949e;
}

footer a {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 16px;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    max-width: 90vw;
  }

  .form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  }

  #usernameInput {
  padding: 14px;
  font-size: 16px;
  }

  #result {
    padding: 0;
  }
  
  #result ul {
  grid-template-columns: repeat(2, 1fr);
  }

  .user-item {
    padding: 16px 10px 4px 10px;
    flex-direction: column;
    gap: 0px;
  }

  .user-item img {
    width: 90%;
    height: 90%;
  }

  .user-item span {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80%;
    font-weight: 500; 
  }
}

@media (min-width: 768px) {
  #result ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

.faq {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1f2933;
  text-align: left;
}

.faq h2 {
  font-size:28px;
  margin-bottom: 16px;
  color: #f9fafb;
  text-align: center;
}

.faq h3 {
  font-size:16px;
  margin-bottom: 24px;
  color: #9ca3af;
  text-align: center;
}

.faq details {
  background: #0d1117;
  border: 1px solid #1f2933;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #e5e7eb;
}

.faq summary::marker {
  color: #60a5fa;
}

.faq p {
  margin-top: 8px;
  font-size: 14px;
  color: #c9d1d9;
}
