/*
  PÁGINA PÚBLICA E INDEXÁVEL DE UMA ARTE

  O CSS fica separado da página Artes para que a versão entregue aos buscadores
  seja pequena, rápida e independente do JavaScript da rede social.
*/

:root {
  color-scheme: dark;
  --art-seo-bg: #050817;
  --art-seo-card: rgba(13, 17, 38, .94);
  --art-seo-line: rgba(168, 85, 247, .34);
  --art-seo-pink: #f044bd;
  --art-seo-purple: #8b5cf6;
  --art-seo-text: #f7f4ff;
  --art-seo-muted: #aaa7bd;
}

* { box-sizing: border-box; }

html { background: var(--art-seo-bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--art-seo-text);
  background:
    radial-gradient(circle at 82% 8%, rgba(217, 70, 239, .15), transparent 32rem),
    radial-gradient(circle at 12% 92%, rgba(124, 58, 237, .18), transparent 30rem),
    var(--art-seo-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.art-seo-topbar {
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--art-seo-line);
  background: rgba(4, 7, 20, .9);
  backdrop-filter: blur(18px);
}

.art-seo-brand,
.art-seo-topbar nav,
.art-seo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.art-seo-brand {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  text-decoration: none;
}

.art-seo-brand img { width: 42px; height: 42px; object-fit: contain; }
.art-seo-brand b { color: var(--art-seo-pink); }

.art-seo-topbar nav a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: #ded9ed;
  font-weight: 800;
  text-decoration: none;
}

.art-seo-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
}

.art-seo-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  overflow: hidden;
  border: 1px solid var(--art-seo-line);
  border-radius: 28px;
  background: var(--art-seo-card);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .48);
}

.art-seo-image-wrap {
  min-height: 580px;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .13), rgba(217, 70, 239, .08)),
    #080b18;
}

.art-seo-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 74vh;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.art-seo-copy {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.art-seo-kicker {
  margin: 0 0 14px;
  color: #e879f9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.art-seo-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.art-seo-creator {
  margin-top: 22px;
  color: #d8b4fe;
  font-weight: 800;
  text-decoration: none;
}

.art-seo-ai {
  margin: 14px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(216, 180, 254, .24);
  border-radius: 999px;
  color: #c9c2dc;
  font-size: 12px;
  font-weight: 800;
}

.art-seo-description {
  margin: 26px 0 0;
  color: #d9d4e6;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.art-seo-actions { margin-top: 30px; flex-wrap: wrap; }

.art-seo-actions a {
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 900;
  text-decoration: none;
}

.art-seo-primary {
  background: linear-gradient(135deg, var(--art-seo-purple), var(--art-seo-pink));
  box-shadow: 0 14px 35px rgba(217, 70, 239, .25);
}

.art-seo-secondary { border: 1px solid rgba(255, 255, 255, .18); }

.art-seo-topbar a:focus-visible,
.art-seo-actions a:focus-visible,
.art-seo-creator:focus-visible {
  outline: 3px solid #f0abfc;
  outline-offset: 3px;
}

footer {
  padding: 0 20px 34px;
  color: var(--art-seo-muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 820px) {
  .art-seo-topbar nav a:first-child { display: none; }
  .art-seo-card { grid-template-columns: 1fr; }
  .art-seo-image-wrap { min-height: min(62vh, 520px); }
  .art-seo-copy { padding: 28px 22px 34px; }
}

@media (max-width: 440px) {
  .art-seo-topbar { min-height: 62px; padding: 9px 12px; }
  .art-seo-brand { font-size: 19px; }
  .art-seo-brand img { width: 36px; height: 36px; }
  .art-seo-topbar nav a { padding: 9px 10px; font-size: 12px; }
  .art-seo-main { width: min(100% - 20px, 1240px); padding: 18px 0 30px; }
  .art-seo-card { border-radius: 20px; }
  .art-seo-image-wrap { min-height: 380px; padding: 8px; }
  .art-seo-image-wrap img { border-radius: 14px; }
  .art-seo-actions { width: 100%; }
  .art-seo-actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
