/* ===========================================
   SELECTED WORK PAGE STYLES
   All values on 4px grid
   =========================================== */

/* ── Keyframe (safe duplicate) ──────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page entrance animation ────────────────── */
.work-hero__heading {
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.1s;
}

.work-hero__filters {
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .work-hero__heading,
  .work-hero__filters,
  .work-card:nth-child(1),
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4) {
    animation: none;
    opacity: 1;
  }
}

/* ── Hero ──────────────────────────────────── */
.work-hero {
  padding: 20px 32px 0;
}

.work-hero__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  margin-bottom: 48px;
}

.work-hero__heading {
  font-family: 'Albert Sans', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1;
}

/* ── Filter buttons ─────────────────────────── */
.work-hero__filters {
  display: flex;
  gap: 8px;
}

.work-filter {
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 9999px;
  border: 1.5px solid #000000;
  background: transparent;
  color: #000000;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.work-filter--active {
  background: #000000;
  color: #F7F7F7;
  border-color: #000000;
}

.work-filter:hover:not(.work-filter--active) {
  background: rgba(0, 0, 0, 0.06);
}

/* ── Grid ───────────────────────────────────── */
.work-grid {
  padding: 0 60px 80px;
}

.work-grid__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ── Card entrance animations ───────────────── */
.work-card:nth-child(1) {
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.4s;
}
.work-card:nth-child(2) {
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.52s;
}
.work-card:nth-child(4) {
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.76s;
}

.work-card:nth-child(3) {
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.64s;
}

/* ── Card — matches home project-card spacing exactly ── */
.work-card {
  display: flex;
  flex-direction: column;
  border-radius: 40px;
  overflow: hidden;
  text-decoration: none;
  color: #000000;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.work-card--upfeup { background: #440230; }
.work-card--myaj   { background: #00320C; }
.work-card--iokee  { background: #0D1733; }
.work-card--pa     { background: #3C2A01; }

.work-card--upfeup .work-card__title,
.work-card--upfeup .work-card__desc { color: #F2818E; }

.work-card--myaj .work-card__title,
.work-card--myaj .work-card__desc { color: #96FFA8; }

.work-card--iokee .work-card__title,
.work-card--iokee .work-card__desc { color: #9CC9EF; }

.work-card--pa .work-card__title,
.work-card--pa .work-card__desc { color: #FFE684; }

/* Image wrap — padding so image stays inside card borders */
.work-card__image-wrap {
  width: 100%;
  padding: 16px 16px 0;
  box-sizing: border-box;
  border-radius: 28px;
  overflow: hidden;
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

/* Body — same padding/gaps as home project-card__body */
.work-card__content {
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.work-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-tag {
  font-family: 'Albert Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  color: #F7F7F7;
}

.work-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Title */
.work-card__title {
  font-family: 'Albert Sans', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000000;
}

/* Description — same as home project-card__desc */
.work-card__desc {
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
}

/* ── Hidden (filtered out) ─────────────────── */
.work-card[hidden] {
  display: none;
}

/* ── Responsive — Mobile (≤ 768px) ─────────── */
@media (max-width: 768px) {
  .work-hero { padding: 12px 12px 0; }

  .work-hero__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 72px;
    margin-bottom: 24px;
  }

  .work-hero__heading { font-size: 28px; }

  .work-hero__filters { flex-wrap: wrap; gap: 6px; }

  .work-filter { font-size: 14px; padding: 10px 16px; }

  .work-grid { padding: 0 12px 60px; }

  .work-grid__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-card { border-radius: 28px; }

  .work-card__content { padding: 24px 24px 28px; gap: 16px; }

  .work-card__title { font-size: 22px; }

  .work-card__desc { font-size: 14px; }
}

@media (max-width: 360px) {
  .work-filter { font-size: 13px; padding: 8px 12px; }
  .work-hero__heading { font-size: 26px; }
}
