/* =====================================================================
   PORTFOLIO ENHANCEMENTS — Visual Recognition Projects (Mathias)
   Extends assets/css/main.css — Do NOT modify main.css directly.
   ===================================================================== */

/* ── Card hover lift ──────────────────────────────────────────────── */
#main .posts > article {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
#main .posts > article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ── Status pill (Live / In Progress / Coming Soon) ──────────────── */
.project-status {
  display: inline-block;
  font-size: 0.58em;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22em 0.72em;
  border-radius: 2em;
  vertical-align: middle;
  margin-left: 0.42em;
  position: relative;
  top: -2px;
}
.project-status.live     { background: #27ae60; color: #fff; }
.project-status.progress { background: #e67e22; color: #fff; }
.project-status.soon     { background: #4a4a4a; color: #999; }

/* ── Badge row (model · accuracy · dataset) ───────────────────────── */
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0.55em 0 0.85em;
}

.badge {
  display: inline-block;
  font-size: 0.67em;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22em 0.65em;
  border-radius: 3px;
  line-height: 1.6;
}

.badge.model    { background: rgba(255,255,255,0.06);  border: 1px solid rgba(255,255,255,0.16); color: #bbb; }
.badge.accuracy { background: rgba(39,174,96,0.14);   border: 1px solid rgba(39,174,96,0.55);   color: #2ecc71; }
.badge.dataset  { background: rgba(52,152,219,0.12);  border: 1px solid rgba(52,152,219,0.45);  color: #7fc8e8; }

/* ── 4-button link grid ───────────────────────────────────────────── */
.project-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52em;
  margin-top: 1em;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.58em 0.5em;
  border-radius: 4px;
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: filter 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.link-btn:hover:not(.disabled) {
  filter: brightness(1.18);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.link-btn.disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button colour themes */
.link-btn.github { background: #1b1f23; color: #e1e4e8; border-color: #444d56; }
.link-btn.colab  { background: #f9ab00; color: #1a1a1a; border-color: #e09d00; }
.link-btn.demo   { background: #5b52e0; color: #fff;    border-color: #6c63ff; }
.link-btn.docs   { background: #1660a0; color: #fff;    border-color: #1a6fa5; }

.link-btn i {
  font-size: 1em;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Featured project: 4-across on wide screens ───────────────────── */
.post.featured .project-links {
  grid-template-columns: repeat(4, 1fr);
  max-width: 680px;
  margin: 1.8em auto 1.2em;
}

.post.featured .project-badges {
  justify-content: center;
  margin-top: 0.8em;
}

@media screen and (max-width: 736px) {
  .post.featured .project-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Category intro bar ───────────────────────────────────────────── */
.category-intro {
  text-align: center;
  padding: 0.5em 1.5em 2em;
  margin-bottom: 2.5em;
}

.category-intro p {
  max-width: 700px;
  margin: 0 auto;
  color: #1a1a1a;
  font-size: 0.94em;
  line-height: 1.8;
}

/* ── Empty state (no projects yet) ───────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5em 2em;
  opacity: 0.32;
}

.empty-state i {
  font-size: 2.6em;
  display: block;
  margin-bottom: 0.55em;
}

.empty-state p { margin: 0.3em 0; line-height: 1.7; }

.empty-state code {
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.18em 0.48em;
  border-radius: 3px;
  font-family: monospace;
}

/* ── Video container ──────────────────────────────────────────────── */
.video-container {
  margin-bottom: 2em;
}

.video-container video {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* ── No-image placeholder ─────────────────────────────────────────── */
.img-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
