/* ============================================================
   github.css
   Styles for the live GitHub profile + repository cards.
   ============================================================ */

.github-profile {
  display: flex; align-items: center; gap: 24px;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-elevated);
  margin-bottom: 32px;
}
.github-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  flex-shrink: 0;
}
.github-info h3 {
  font-size: 1.3rem; margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.github-info .handle {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent);
  margin-bottom: 8px;
}
.github-info .bio {
  font-size: 0.9rem; color: var(--text-dim); margin-bottom: 12px;
}
.github-stats-row {
  display: flex; gap: 20px;
}
.github-stat {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted);
}
.github-stat strong {
  color: var(--text); font-size: 1rem;
}

.github-repo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.repo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(0, 240, 255, 0.05);
}
.repo-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: var(--transition);
}
.repo-card:hover::before { opacity: 1; }
.repo-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.repo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-dim); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem;
  box-shadow: 0 0 15px var(--accent-glow);
}
.repo-name {
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  font-family: var(--font-mono);
}
.repo-desc {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.5;
  margin-bottom: 16px; flex-grow: 1;
}
.repo-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted);
}
.repo-meta span {
  display: flex; align-items: center; gap: 4px;
}
.repo-meta .lang-color {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.repo-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.repo-actions a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  transition: var(--transition);
}
.repo-actions a:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 15px var(--accent-glow);
  text-shadow: none;
}
.repo-actions a.primary {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #000; border: none; font-weight: 600;
}
.repo-actions a.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.github-loading {
  text-align: center; padding: 48px;
  font-family: var(--font-mono); color: var(--text-muted);
}
.github-error {
  text-align: center; padding: 32px;
  color: #ff3860; font-family: var(--font-mono); font-size: 0.9rem;
}
