/**
 * Página de links — Bolo Sem Frescura
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #dac7b8;
  font-family: 'Outfit', sans-serif;
  color: #4a3f35;
  padding-top: 0;
  line-height: 1.5;
}

.links-page {
  max-width: 420px;
  margin: 0 auto;
}

/* Topo: logo + nome + Instagram */
.links-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.links-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.links-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #3d342c;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.links-brand-description {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.5rem;
  max-width: 60%;
  margin: 0 auto;
}

.links-instagram {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

.links-instagram a {
  color: #5a4f45;
  text-decoration: none;
}

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

/* Aviso — faixa no topo (top banner) */
.links-aviso {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background: rgb(158 97 54);
  border-bottom: 1px solid rgba(74, 63, 53, 0.15);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: #fff;
  height: 4px;
}

/* Lista de links */
.links-list {
  padding: 1.5rem 1rem;
}

.links-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 63, 53, 0.15);
  border-radius: 10px;
  color: #4a3f35;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.links-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.links-item-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.links-list a:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(74, 63, 53, 0.25);
}

.links-list a:focus {
  outline: 2px solid #5a4f45;
  outline-offset: 2px;
}

/* Item inativo — "Em breve" */
.links-item.links-item--em-breve {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(74, 63, 53, 0.1);
  border-radius: 10px;
  color: rgba(74, 63, 53, 0.6);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: default;
}

.links-item-icon--inactive svg {
  opacity: 0.6;
}

.links-item-badge {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(74, 63, 53, 0.5);
  font-style: italic;
}

/* Animação no carregamento (estado inicial) */
body.links-no-js .links-aviso,
body.links-no-js .links-header,
body.links-no-js .links-list li,
body.links-no-js .links-footer {
  opacity: 1;
  transform: none;
}

.links-header,
.links-aviso,
.links-list li,
.links-footer {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.links-ready .links-aviso {
  opacity: 1;
  transform: none;
}

body.links-ready .links-header {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

body.links-ready .links-list li {
  opacity: 1;
  transform: none;
}

body.links-ready .links-list li:nth-child(1) { transition-delay: 0.2s; }
body.links-ready .links-list li:nth-child(2) { transition-delay: 0.26s; }
body.links-ready .links-list li:nth-child(3) { transition-delay: 0.32s; }
body.links-ready .links-list li:nth-child(4) { transition-delay: 0.38s; }
body.links-ready .links-list li:nth-child(5) { transition-delay: 0.44s; }
body.links-ready .links-list li:nth-child(6) { transition-delay: 0.5s; }
body.links-ready .links-list li:nth-child(7) { transition-delay: 0.56s; }
body.links-ready .links-list li:nth-child(8) { transition-delay: 0.62s; }

body.links-ready .links-footer {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s;
}

/* Footer discreto */
.links-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(74, 63, 53, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links-footer a {
  font-size: 0.75rem;
  color: rgba(218, 99, 2, 0.903);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links-footer a:hover {
  color: rgba(74, 63, 53, 0.75);
}

/* Responsivo */
@media (min-width: 480px) {
  .links-logo {
    width: 160px;
    height: 160px;
  }

  .links-brand {
    font-size: 1.75rem;
  }
}
