/* Shared base styles for Digito secondary pages (news listing, article).
   Mirrors the design tokens from index.html so secondary pages match the home aesthetic. */

:root {
  --bg: #07070b;
  --bg-2: #0b0b12;
  --panel: #101019;
  --panel-2: #14141f;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f1f1f4;
  --muted: rgba(241,241,244,0.62);
  --muted-2: rgba(241,241,244,0.4);
  --accent: #fa05a7;
  --accent-2: #ff3dc0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scrollbar-width: thin; scrollbar-color: rgba(250,5,167,0.5) var(--bg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(250,5,167,0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4, .display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; font-weight: 500; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Ambient background orbs ===== */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.16; mix-blend-mode: screen; will-change: transform; }
.bg-orb-1 { width: 520px; height: 520px; top: 18%;  left: -8%;  background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: 0.18; }
.bg-orb-2 { width: 620px; height: 620px; top: 42%;  right: -12%; background: radial-gradient(circle, #00e4ff 0%, transparent 65%); opacity: 0.13; }
.bg-orb-3 { width: 460px; height: 460px; top: 82%;  left: 28%;  background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: 0.13; }
@keyframes orb-float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }
@keyframes orb-float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 40px); } }
.bg-orb-1 { animation: orb-float-a 18s ease-in-out infinite; }
.bg-orb-2 { animation: orb-float-b 22s ease-in-out infinite; }
.bg-orb-3 { animation: orb-float-a 26s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bg-orb { animation: none !important; } }

.nav-wrap, header.nav-wrap, section, footer { position: relative; z-index: 1; }

/* ===== Nav ===== */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  padding: 18px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,7,11,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 36px; justify-content: center; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14.5px;
  transition: all .2s; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-ghost { color: var(--text); background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-primary { color: #fff; background: var(--accent); box-shadow: 0 8px 30px rgba(250,5,167,0.32); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(250,5,167,0.4); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 12px; }

/* burger */
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: transparent; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 64px 0 0 0; z-index: 99; background: rgba(7,7,11,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 40px 24px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 500; padding: 18px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu .btn { margin-top: 24px; align-self: stretch; padding: 16px; font-size: 16px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== News card (shared visual language) ===== */
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250,5,167,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(250,5,167,0.18);
}
.news-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--panel-2), #0c0c14);
  position: relative; overflow: hidden;
}
.news-thumb::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, var(--thumb-a, rgba(250,5,167,0.45)) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, var(--thumb-b, rgba(0,228,255,0.35)) 0%, transparent 55%);
  filter: blur(20px);
}
.news-thumb img, .news-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-thumb .category {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(7,7,11,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
}
.news-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.news-meta { display: flex; gap: 10px; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.news-meta b { color: var(--muted); font-weight: 500; }
.news-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; line-height: 1.25; margin: 0; font-weight: 500; text-wrap: pretty; }
.news-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; flex: 1; }
.news-card .arrow { display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 4px; }
.news-card .arrow svg { transition: transform .25s; }
.news-card:hover .arrow svg { transform: translateX(4px); }

/* ===== Pagination ===== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin: 40px auto 0; flex-wrap: wrap;
  font-family: 'Space Grotesk', sans-serif;
}
.pagination button, .pagination .ellipsis {
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.pagination button:hover:not(:disabled):not(.active) {
  color: var(--text); border-color: var(--border-strong);
  background: rgba(255,255,255,0.07);
}
.pagination button.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(250,5,167,0.32);
}
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination .ellipsis { background: transparent; border-color: transparent; cursor: default; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  color: var(--muted-2); font-size: 13.5px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--text); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(250,5,167,0.08);
  transform: translateY(-2px);
}
.footer-socials svg { width: 16px; height: 16px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 18px; width: auto; opacity: 0.7; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 14px 18px; }
  .footer-inner { justify-content: center; text-align: center; }
}
