/* Deep Breath — Updates (structure inspired by aalo.com/updates, brand styles) */

.page-updates {
  background: var(--bg);
  color: var(--text);
}

.page-updates .nav a[aria-current="page"] {
  color: #fff;
}

/* ---------- Hero ---------- */
.up-hero {
  position: relative;
  padding:
    calc(var(--header-h) + 3.25rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(2.5rem, 5vh, 3.5rem);
  overflow: hidden;
}

.up-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 70% 30%, rgba(86, 204, 242, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(242, 86, 236, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.up-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.up-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.up-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.up-hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan) 0%, #9b7cff 48%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.up-hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0;
}

/* ---------- Featured (Aalo-style stacked highlights) ---------- */
.up-featured {
  padding: 0 clamp(1.25rem, 4vw, 2.75rem) clamp(2rem, 4vh, 3rem);
}

.up-featured-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.up-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.up-feature:hover {
  border-color: rgba(86, 204, 242, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.up-feature-media {
  position: relative;
  min-height: 240px;
  background: #111;
}

.up-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 260px;
}

.up-feature-media .up-play {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
}

.up-feature-body {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.up-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.up-date {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.up-date span {
  opacity: 0.45;
  margin: 0 0.15rem;
}

.up-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.up-type--video {
  color: #f256ec;
  background: rgba(242, 86, 236, 0.12);
  border-color: rgba(242, 86, 236, 0.28);
}

.up-type--conference {
  color: #56ccf2;
  background: rgba(86, 204, 242, 0.12);
  border-color: rgba(86, 204, 242, 0.28);
}

.up-type--publication {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}

.up-type--news {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
}

.up-type--blog {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}

.up-feature-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.up-feature-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.up-feature-link {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.up-feature:hover .up-feature-link {
  text-decoration: underline;
}

.up-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

/* ---------- Feed (filters + grid) ---------- */
.up-feed {
  background: #f4f7fb;
  color: #0f172a;
  padding:
    clamp(2.5rem, 6vh, 4rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 10vh, 6rem);
}

.up-feed-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.up-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.up-feed-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0;
}

.up-feed-head .up-kicker {
  color: #2f80ed;
  margin-bottom: 0;
}

/* Filter chips — Aalo All / Blog / … pattern */
.up-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.up-filter {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.up-filter:hover {
  border-color: rgba(47, 128, 237, 0.4);
  color: #0f172a;
}

.up-filter.is-active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.up-filter[data-filter="Video"].is-active {
  background: linear-gradient(100deg, #7c5cfc, #e11d8c);
  border-color: transparent;
}

.up-filter[data-filter="Conference"].is-active {
  background: linear-gradient(100deg, #0ea5e9, #56ccf2);
  border-color: transparent;
}

.up-filter[data-filter="Publication"].is-active {
  background: linear-gradient(100deg, #7c5cfc, #a78bfa);
  border-color: transparent;
}

.up-filter[data-filter="News"].is-active {
  background: linear-gradient(100deg, #2563eb, #60a5fa);
  border-color: transparent;
}

.up-filter[data-filter="Blog"].is-active {
  background: linear-gradient(100deg, #059669, #34d399);
  border-color: transparent;
}

/* Card grid */
.up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.up-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 1;
}

.up-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(47, 128, 237, 0.25);
}

.up-card.is-hidden {
  display: none;
}

.up-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}

.up-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.up-card:hover .up-card-media img {
  transform: scale(1.04);
}

.up-card-media .up-play {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
}

.up-card-body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.up-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.up-card .up-date {
  color: #94a3b8;
}

.up-card .up-type {
  font-size: 0.65rem;
}

.up-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  color: #0f172a;
}

.up-card-source {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.up-card-source span {
  color: #0f172a;
  font-weight: 600;
}

.up-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1rem;
}

.up-empty.is-visible {
  display: block;
}

.up-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.up-more {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.up-more:hover {
  border-color: rgba(47, 128, 237, 0.45);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.up-more[hidden] {
  display: none;
}

/* ---------- Follow strip ---------- */
.up-follow {
  background: #000;
  padding:
    clamp(2.5rem, 6vh, 3.75rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(3rem, 7vh, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.up-follow-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.up-follow h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  max-width: 28ch;
}

.up-follow p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 36rem;
  line-height: 1.55;
}

.up-follow-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.65rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .up-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .up-feature {
    grid-template-columns: 1fr;
  }

  .up-feature-media img {
    min-height: 220px;
    max-height: 280px;
  }
}

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

  .up-feed-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
