/* ---- GitHub page ----
   Cards, grid and tags come from archive.css (project-card, archive-grid,
   project-tags). This file adds the page wrapper reveal and the GitHub-only
   pieces. Colours use currentColor/opacity so they follow the light and
   dark themes without needing their own palette. */

/* Page reveal + sticky footer (mirrors #archiveWrap) */
#githubWrap {
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#githubWrap.visible { opacity: 1; }
#githubWrap > main  { flex: 1; }

/* Profile strip */
.gh-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 10px auto 40px;
    padding: 20px 24px;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}
.gh-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gh-profile-text { flex: 1; min-width: 200px; }
.gh-profile-name {
    margin: 0 0 4px;
    font-size: 1.6rem;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
}
.gh-profile-bio   { margin: 0 0 4px; }
.gh-profile-stats { margin: 0; font-size: 0.9rem; opacity: 0.7; }
.gh-profile-link {
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.gh-profile-link:hover { opacity: 0.7; color: inherit; }

/* Section headings */
.gh-section { margin-bottom: 48px; }
.gh-section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-family: var(--akira-font);
    font-weight: var(--akira-weight);
    font-variation-settings: var(--akira-settings);
}

/* Fork upstream line on cards */
.gh-forked-from {
    margin: -4px 0 6px;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.75;
}

/* Card grid: flex instead of archive.css's fixed columns, so a card widens
   to fit its title rather than cutting it off. Cards sit at 380px, grow when
   a title needs more, and rows stay centred. */
.gh-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}
.gh-grid > .project-card {
    flex: 0 1 380px;
    width: auto;
    max-width: none;
    min-width: min-content;   /* never narrower than its one-line title */
}
.gh-grid .project-card-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.gh-grid > .project-card,
.gh-grid .project-card-body { overflow: visible; }

/* Phones: cards take the full width and long names wrap at their
   natural break points (hyphens, camelCase) instead. */
@media (max-width: 576px) {
    .gh-grid > .project-card { flex-basis: 100%; min-width: 0; }
    .gh-grid .project-card-title { white-space: normal; overflow-wrap: anywhere; }
}

/* Pull request state pill (on contribution cards) */
.gh-pr-state {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}
.gh-pr-merged { background: #8250df; }
.gh-pr-open   { background: #1f883d; }
.gh-pr-closed { background: #cf222e; }

/* Empty state + sync note */
.gh-empty   { text-align: center; opacity: 0.6; padding: 60px 0; }
.gh-fetched { text-align: center; font-size: 0.8rem; opacity: 0.5; margin: 0 0 20px; }
