/*!
 * TBOT GitHub Portfolio — card grid presentation.
 * Matches the glassy, mouse-reactive portfolio cards so it sits naturally
 * alongside the other portfolio pages over the live mesh background.
 */

.tbot-gh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  margin: 2.2rem auto;
  max-width: 1180px;
}

.tbot-gh-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 11, 18, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s ease, border-color 0.45s ease;
  will-change: transform;
}

.tbot-gh-card:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 170, 255, 0.45);
  box-shadow: 0 28px 70px -22px rgba(40, 20, 80, 0.9),
    0 0 0 1px rgba(150, 170, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tbot-gh-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0c14;
}

.tbot-gh-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
  filter: saturate(1.02);
}

.tbot-gh-card:hover .tbot-gh-media img {
  transform: scale(1.06);
  filter: saturate(1.14) contrast(1.05);
}

.tbot-gh-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.3rem 1.45rem 1.5rem;
}

.tbot-gh-title {
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.tbot-gh-title a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(92deg, #ffffff 0%, #c3ccff 55%, #ff9ee0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tbot-gh-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.tbot-gh-meta .tbot-gh-dot {
  opacity: 0.4;
}

.tbot-gh-ver {
  padding: 0.05em 0.6em;
  border-radius: 999px;
  font-weight: 700;
  color: #0a0b12;
  background: linear-gradient(92deg, #8aa0ff, #ff8ad9);
  letter-spacing: 0.02em;
  text-transform: none;
}

.tbot-gh-updated {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.62;
}

.tbot-gh-fork {
  padding: 0.05em 0.55em;
  border: 1px solid rgba(150, 170, 255, 0.4);
  border-radius: 999px;
  opacity: 0.9;
}

.tbot-gh-desc {
  flex: 1 1 auto;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.tbot-gh-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.tbot-gh-btn {
  display: inline-block;
  padding: 0.55em 1.05em;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease;
}

.tbot-gh-btn-primary {
  color: #0a0b12;
  background: linear-gradient(92deg, #8aa0ff, #ff8ad9);
  box-shadow: 0 8px 22px -10px rgba(150, 120, 255, 0.8);
}

.tbot-gh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(255, 130, 220, 0.85);
}

.tbot-gh-btn-ghost {
  color: #d7ddff;
  border: 1px solid rgba(150, 170, 255, 0.45);
  background: rgba(20, 22, 34, 0.5);
}

.tbot-gh-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 195, 255, 0.8);
  background: rgba(30, 33, 50, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .tbot-gh-card,
  .tbot-gh-media img,
  .tbot-gh-btn {
    transition: none;
  }
}

/* ===== profile header ===== */
.tbot-gh-profile {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  max-width: 1180px;
  margin: 1.4rem auto 2.4rem;
  padding: 1.6rem 1.8rem;
  border-radius: 20px;
  background: rgba(10, 11, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px -24px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tbot-gh-profile-avatar {
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  border: 2px solid rgba(150, 170, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(20, 22, 34, 0.6),
    0 12px 30px -10px rgba(120, 90, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tbot-gh-profile-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(20, 22, 34, 0.6),
    0 16px 36px -10px rgba(255, 130, 220, 0.7);
}

.tbot-gh-profile-avatar img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.tbot-gh-profile-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tbot-gh-profile-name {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

.tbot-gh-profile-handle {
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.7;
}

.tbot-gh-profile-bio {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.9;
}

.tbot-gh-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.tbot-gh-stat strong {
  color: #cfd8ff;
}

.tbot-gh-stat-loc::before {
  content: "\1F4CD";
  margin-right: 0.35em;
}

.tbot-gh-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 600px) {
  .tbot-gh-profile {
    flex-direction: column;
    text-align: center;
  }
  .tbot-gh-profile-stats,
  .tbot-gh-profile-links {
    justify-content: center;
  }
}
