/* ===== GITHUB SECTION ===== */

/* Profile strip */
.gh-profile {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  transition: border-color .3s;
}
.gh-profile:hover { border-color: rgba(0,229,255,.3); }

.gh-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(0,229,255,.2);
  flex-shrink: 0;
  background: var(--surface2);
  object-fit: cover;
}
.gh-avatar-placeholder {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}

.gh-info { flex: 1; min-width: 0; }
.gh-name {
  font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem;
}
.gh-bio {
  font-size: .85rem; color: var(--text-dim);
  margin-bottom: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gh-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.gh-meta-item {
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .3rem;
}
.gh-meta-item strong { color: var(--text); }

.gh-link {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--accent); padding: .5rem 1rem;
  border: 1px solid rgba(0,229,255,.3); border-radius: var(--radius);
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: .4rem;
}
.gh-link:hover { background: rgba(0,229,255,.08); box-shadow: var(--glow-sm); }

/* Bottom grid */
.gh-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

/* Repos */
.gh-repos-list { display: flex; flex-direction: column; gap: .75rem; }
.gh-repo {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color .2s, transform .2s;
  display: block;
}
.gh-repo:hover {
  border-color: rgba(0,229,255,.3);
  transform: translateX(4px);
}
.gh-repo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .35rem;
}
.gh-repo-name {
  font-family: var(--font-mono); font-size: .85rem;
  font-weight: 600; color: var(--accent);
}
.gh-repo-stars {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--text-muted); display: flex; align-items: center; gap: .25rem;
}
.gh-repo-desc {
  font-size: .8rem; color: var(--text-dim);
  line-height: 1.5; margin-bottom: .5rem;
}
.gh-repo-footer {
  display: flex; align-items: center; gap: .75rem;
}
.gh-lang-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.gh-lang-name {
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted);
}
.gh-repo-updated {
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted);
  margin-left: auto;
}

/* Activity feed */
.gh-activity { display: flex; flex-direction: column; gap: .5rem; }
.gh-event {
  display: flex; gap: .75rem; align-items: flex-start;
  font-family: var(--font-mono); font-size: .73rem; line-height: 1.5;
  padding: .6rem .75rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.gh-event:hover { border-color: rgba(0,229,255,.2); }
.gh-event-icon { font-size: .9rem; flex-shrink: 0; margin-top: .05rem; }
.gh-event-body { flex: 1; min-width: 0; }
.gh-event-action { color: var(--text-dim); }
.gh-event-repo   { color: var(--accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-event-time   { color: var(--text-muted); font-size: .66rem; }

/* Loading / error states */
.gh-loading {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted);
  padding: 1.5rem;
}
.gh-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gh-error {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text-muted); padding: 1rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
  text-align: center;
}

/* Language colors */
.lang-python     { background: #3572A5; }
.lang-javascript { background: #f1e05a; }
.lang-typescript { background: #2b7489; }
.lang-html       { background: #e34c26; }
.lang-css        { background: #563d7c; }
.lang-shell      { background: #89e051; }
.lang-dockerfile { background: #384d54; }
.lang-other      { background: #6e7681; }

/* Responsive */
@media (max-width: 800px) {
  .gh-grid { grid-template-columns: 1fr; }
  .gh-profile { flex-wrap: wrap; }
  .gh-link { width: 100%; justify-content: center; }
}
