/* "Latest on GitHub" section — uses the site's tokens from style.css */

.github-activity { margin-bottom: 30px; }

.github-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.github-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.github-stats strong { color: var(--orange-yellow-crayola); font-weight: var(--fw-500); }

.github-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.gh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.gh-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.gh-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.gh-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  overflow-wrap: anywhere;
}

.gh-name ion-icon { flex-shrink: 0; color: var(--light-gray-70); }
.gh-name:hover { color: var(--orange-yellow-crayola); }

.gh-live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--jet);
  border-radius: 999px;
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-8);
}

.gh-live:hover { border-color: var(--orange-yellow-crayola); }

.gh-desc {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.5;
}

.gh-commit {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--eerie-black-1);
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gh-commit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-commit ion-icon { flex-shrink: 0; color: var(--orange-yellow-crayola); }
.gh-commit:hover { color: var(--light-gray); }

.gh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: auto;
  color: var(--light-gray-70);
  font-size: var(--fs-8);
}

.gh-meta span { display: flex; align-items: center; gap: 5px; }
.gh-lang { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.gh-loading, .gh-fallback {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.gh-fallback a { color: var(--orange-yellow-crayola); }

.gh-card { min-width: 0; }

.gh-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .github-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
