/* ════════════════════════════════════════════════
   Luca Retegan — Portfolio · shared styles
   Used by the home page and every privacy-policy page.
   ════════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  background: #0E0E12;
  color: #F5F4F2;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #F5F4F2; color: #0E0E12; }
button { color: inherit; }

/* ── Background decoration ── */
#dot-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
#aura {
  position: fixed; top: -10%; right: -5%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  z-index: 0; pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .6;
  background: radial-gradient(circle, rgba(120,120,200,.1), rgba(14,14,18,0) 70%);
}

/* ── Layout ── */
#main {
  position: relative; z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 30px 120px;
}

/* ── Animations ── */
@keyframes lr-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lr-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lr-rise {
  from { transform: translateY(112%) rotate(3deg); opacity: 0; }
  to   { transform: translateY(0) rotate(0); opacity: 1; }
}

/* ── App card (home list) ── */
.app-card {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 20px 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .3s;
  transform-style: preserve-3d;
  outline: none;
  text-align: left;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.app-card:hover { background: rgba(255,255,255,.04); }

/* Not shipped yet: listed, dimmed, and not clickable */
.app-card.is-soon {
  cursor: default;
  opacity: .55;
}
.app-card.is-soon:hover { background: transparent; }
.soon-badge {
  flex: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: #C6C2A8;
  border: 1px solid rgba(198,194,168,.35);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ── Back button / link ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: transparent;
  color: #9A9AA4;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color .18s, border-color .18s;
  margin-bottom: 32px;
}
.back-btn:hover { color: #F5F4F2; border-color: rgba(255,255,255,.28); }

/* ── Privacy-policy page ── */
#app-detail {
  --accent: #8a8a92;
  max-width: 760px;
}
.pv-id {
  display: flex; align-items: center; gap: 14px;
  animation: lr-fadeUp .6s both;
}
.pv-id img {
  width: 54px; height: 54px;
  border-radius: 14px;
  flex: none;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
}
.pv-app {
  font-size: 18px;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.pv-sub {
  font-size: 13px;
  color: #9A9AA4;
  margin-top: 3px;
}
.pv-title {
  margin: 30px 0 0;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -.03em;
  line-height: .95;
  animation: lr-fadeUp .6s .06s both;
}
.pv-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7A7A86;
  margin-top: 14px;
}
.pv-note {
  margin: 24px 0 0;
  font-size: 14px; line-height: 1.55;
  color: #9A9AA4;
  padding-left: 15px;
  border-left: 2px solid var(--accent);
}
.pv-body {
  margin-top: 18px;
  animation: lr-fadeUp .6s .12s both;
}
.pv-sec {
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pv-sec h2 {
  margin: 0 0 11px;
  font-weight: 700; font-size: 20px;
  letter-spacing: -.02em;
}
.pv-idx {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  filter: brightness(1.2);
  font-size: 14px; font-weight: 400;
  margin-right: 7px;
}
.pv-sec p {
  margin: 0;
  font-size: 16px; line-height: 1.7;
  color: #ABABB5;
}

/* Rich content inside real privacy sections */
.pv-sec-body p {
  margin: 0 0 12px;
  font-size: 16px; line-height: 1.7;
  color: #ABABB5;
}
.pv-sec-body p:last-child { margin-bottom: 0; }

.pv-sec-body ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}
.pv-sec-body li {
  font-size: 15px; line-height: 1.65;
  color: #ABABB5;
  margin-bottom: 7px;
}
.pv-sec-body li:last-child { margin-bottom: 0; }

.pv-sec-body strong { color: #D8D8E0; font-weight: 600; }
.pv-sec-body em     { color: #9A9AA4; font-style: italic; }

.pv-sec-body a {
  color: #C8C8D2;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,200,210,.3);
  transition: color .15s, border-color .15s;
}
.pv-sec-body a:hover {
  color: #F5F4F2;
  border-color: rgba(245,244,242,.5);
}

/* Intro paragraph(s) above the first numbered section */
.pv-intro {
  margin-top: 26px;
  padding-left: 15px;
  border-left: 2px solid var(--accent);
}
.pv-intro p { color: #B6B6C0; }

.pv-note code,
.pv-sec-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.07);
  color: #E4E3EA;
}
.pv-contact {
  margin-top: 38px;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.pv-contact-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7A7A86;
}
.pv-contact a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700; font-size: 22px;
  letter-spacing: -.02em;
  color: #F5F4F2;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,244,242,.3);
  transition: border-color .18s;
}
.pv-contact a:hover { border-color: rgba(245,244,242,.7); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
