/* Platform updates hub — orizabatires.com/updates */

.updates-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.updates-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(225, 29, 72, 0.14), transparent 55%),
    radial-gradient(90% 60% at 90% 20%, rgba(15, 23, 42, 0.08), transparent 50%),
    linear-gradient(180deg, var(--panel, #f8fafc) 0%, var(--bg, #fff) 100%);
  pointer-events: none;
}

.updates-hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.updates-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.updates-hero__lead {
  font-size: 1.05rem;
  color: var(--ink-muted, #475569);
  margin: 0;
  line-height: 1.55;
}

.updates-guide {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--panel, #f8fafc);
}

.updates-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent, #e11d48);
  list-style: none;
}

.updates-guide summary::-webkit-details-marker {
  display: none;
}

.updates-guide summary::after {
  content: " +";
  font-weight: 600;
}

.updates-guide[open] summary::after {
  content: " −";
}

.updates-guide ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-muted, #475569);
  line-height: 1.55;
}

.updates-feed {
  display: grid;
  gap: 1.25rem;
}

.updates-card {
  display: block;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: var(--card, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.updates-card:hover {
  border-color: var(--accent, #e11d48);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.updates-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted, #64748b);
  margin-bottom: 0.55rem;
}

.updates-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.updates-card p {
  margin: 0;
  color: var(--ink-muted, #475569);
  line-height: 1.5;
}

.updates-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.updates-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.1);
  color: var(--accent-dim, #9f1239);
}

.updates-article {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.updates-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--accent, #e11d48);
  text-decoration: none;
}

.updates-article__back:hover {
  text-decoration: underline;
}

.updates-article__meta {
  font-size: 0.88rem;
  color: var(--ink-muted, #64748b);
  margin-bottom: 0.75rem;
}

.updates-article h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.updates-article__summary {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-muted, #475569);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.updates-section {
  margin-bottom: 2rem;
}

.updates-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  scroll-margin-top: 6rem;
}

.updates-section p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.updates-section ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.updates-section li + li {
  margin-top: 0.35rem;
}

.updates-link-list {
  list-style: none;
  padding-left: 0;
}

.updates-link-list li + li {
  margin-top: 0.5rem;
}

.updates-link-list a {
  font-weight: 600;
  color: var(--accent, #e11d48);
  text-decoration: none;
}

.updates-link-list a:hover {
  text-decoration: underline;
}

.updates-examples {
  margin: 2rem 0 2.5rem;
}

.updates-examples__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.updates-example {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel, #f8fafc);
}

.updates-example__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.updates-example__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.updates-example__body {
  padding: 1rem 1.1rem 1.15rem;
}

.updates-example h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.updates-example__detail {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted, #64748b);
  line-height: 1.45;
}

.updates-example__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.updates-example__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #e11d48);
  text-decoration: none;
}

.updates-example__links a:hover {
  text-decoration: underline;
}

.updates-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.updates-links a {
  font-weight: 600;
  color: var(--accent, #e11d48);
  text-decoration: none;
}

.updates-links a:hover {
  text-decoration: underline;
}

.updates-empty {
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted, #64748b);
}

html[data-theme="dark"] .updates-card,
html[data-theme="dark"] .updates-guide {
  background: var(--card, #1e293b);
  border-color: var(--border, #334155);
}

html[data-theme="dark"] .updates-hero__bg {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(225, 29, 72, 0.18), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
}
