/* ─────────────────────────────────────────────────────────────
   MIRROR SITES — trabajos.css
   Portfolio page styles
   ───────────────────────────────────────────────────────────── */

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  padding: 10rem 0 var(--s6);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(192,192,192,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__sub {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--text-2);
  margin-top: var(--s3);
  max-width: 480px;
  font-family: var(--font-body);
  font-weight: 300;
}


/* ─── PROJECTS SECTION ──────────────────────────────────────── */
.projects-section {
  padding-bottom: var(--s7);
}


/* ─── PROJECTS LIST ─────────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ─── PROJECT BAR ───────────────────────────────────────────── */
.project-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}

.project-bar:hover {
  border-color: var(--border-silver);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}


/* ─── PROJECT MEDIA ─────────────────────────────────────────── */
.project-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.project-video,
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* ─── PROJECT LIVE BADGE ────────────────────────────────────── */
.project-live-badge {
  position: absolute;
  bottom: var(--s2);
  left: var(--s2);
  z-index: 2;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--border-1);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color var(--t-mid), border-color var(--t-mid);
  text-decoration: none;
}

.live-badge:hover {
  color: var(--text-1);
  border-color: var(--border-silver);
}

.live-badge__dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(37,211,102,0); }
}


/* ─── PROJECT INFO ──────────────────────────────────────────── */
.project-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  background: #111111;
}

/* Zero individual margins — gap handles all spacing */
.project-info .work-card__header,
.project-info .work-card__title,
.project-info .work-card__description,
.project-info .work-card__features {
  margin-bottom: 0;
}


/* ─── CARD CONTENT ELEMENTS ─────────────────────────────────── */
.work-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s2);
}

.work-card__tags {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
}

.work-card__year {
  flex-shrink: 0;
  padding-top: 2px;
}

.work-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.work-card__description {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 540px;
}

.work-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.work-card__footer {
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--border-1);
}


/* ─── BOTTOM CTA ────────────────────────────────────────────── */
.bottom-cta {
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
}

.bottom-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-bar {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-media {
    min-height: 300px;
    aspect-ratio: 16 / 7;
    height: auto;
  }

  /* Restore video order to always be on top on tablet */
  .project-bar .project-info:first-child {
    order: 2;
  }
  .project-bar .project-media:last-child {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-header { padding: 8rem 0 var(--s5); }

  .projects-list {
    padding: 0 1rem;
    gap: 1rem;
  }

  .project-bar {
    border-radius: 8px;
  }

  .project-media {
    min-height: 220px;
  }

  .project-info {
    padding: 1.75rem;
    gap: 1rem;
  }
}
