/* showcase.html — app-gallery styling (2026-10-15) */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #6db3e8);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  border-color: #b8d9f2;
  box-shadow: var(--shadow);
}
.gallery-card:hover::before,
.gallery-card:focus-visible::before { opacity: 1; }

.gallery-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.gallery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4a97d8);
  box-shadow: 0 4px 10px rgba(27, 112, 183, 0.35);
}
.gallery-icon--mobile   { background: linear-gradient(135deg, #0ea5a4, #22c1a5); }
.gallery-icon--linux    { background: linear-gradient(135deg, #333, #555); }
.gallery-icon--code     { background: linear-gradient(135deg, #5b3cc4, #8b6cf0); }
.gallery-icon--api      { background: linear-gradient(135deg, #1b70b7, #4a97d8); }
.gallery-icon--research { background: linear-gradient(135deg, #b06000, #e09030); }
.gallery-icon--profile  { background: linear-gradient(135deg, #0e7a5f, #27b28c); }
.gallery-icon--youtube  { background: linear-gradient(135deg, #c4302b, #ff4e45); }
.gallery-icon--creative { background: linear-gradient(135deg, #c2308a, #ef6ab8); }

.gallery-pill {
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.gallery-pill--mobile   { background: #e2f7f6; color: #0b7c7b; }
.gallery-pill--linux    { background: #eee; color: #333; }
.gallery-pill--code     { background: #efe9fc; color: #5b3cc4; }
.gallery-pill--api      { background: #eaf4fc; color: #1b70b7; }
.gallery-pill--research { background: #fdeeda; color: #a35a00; }
.gallery-pill--profile  { background: #e2f5ef; color: #0e7a5f; }
.gallery-pill--creative { background: #fbe7f3; color: #c2308a; }
.gallery-pill--youtube  { background: #fdecea; color: #c4302b; }
.gallery-pill--web      { background: #eaf4fc; color: #1b70b7; }

.gallery-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.gallery-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; flex: 1 0 auto; }

.gallery-cta {
  margin-top: auto;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.gallery-card:hover .gallery-cta i { transform: translateX(4px); }
.gallery-cta i { transition: transform 0.15s ease; }

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
