/* DMImobi — redes e contatos profissionais */

#pane-redes {
  --social-navy: #0b315f;
  --social-navy-2: #174d82;
  --social-gold: #d4b34f;
  --social-ink: #102b4b;
  --social-muted: #657487;
  --social-line: #dfe7ef;
}

.social-connect-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.social-connect-head .section-title { margin-bottom: 5px; }
.social-connect-head p {
  max-width: 630px;
  margin: 0;
  color: var(--social-muted);
  font-size: 14px;
  line-height: 1.5;
}

.social-connect-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #e7d79e;
  border-radius: 999px;
  background: #fff9e8;
  color: #775d0c;
  font-size: 12px;
  font-weight: 800;
}

.social-connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-connect-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--social-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 49, 88, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.social-connect-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #d8e1ea;
}

.social-connect-card.is-configured {
  border-color: #c5d7e7;
  box-shadow: 0 10px 27px rgba(14, 49, 88, .09);
}
.social-connect-card.is-configured::before { background: var(--social-gold); }

.social-network-icon,
.social-editor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid #edf1f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 44, 72, .08);
}

/* Neutraliza os antigos fundos que imitavam as marcas; o SVG oficial preserva
   as cores próprias de cada rede sobre uma superfície limpa. */
#pane-redes .social-connect-card .social-network-icon {
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.social-network-icon img,
.social-editor-logo img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.social-connect-card > div { min-width: 0; }
.social-connect-card b {
  display: block;
  color: var(--social-ink);
  font-size: 14px;
  line-height: 1.25;
}
.social-connect-card small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--social-muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-connect-card button,
.social-connect-all,
.social-save-bar button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
}

.social-connect-card button {
  min-height: 38px;
  padding: 0 13px;
  background: #edf4fa;
  color: #174b7d;
  font-size: 12px;
}

.social-connect-card.is-configured button {
  background: var(--social-navy);
  color: #fff;
}

.social-connect-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.social-connect-card .social-open-link,
.social-connect-card.is-configured .social-open-link {
  border: 1px solid #cbd9e6;
  color: #174b7d;
  background: #fff;
}

.social-connect-all {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--social-navy), var(--social-navy-2));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 9px 23px rgba(11, 49, 95, .18);
}

#page-redes {
  --social-navy: #0b315f;
  --social-navy-2: #174d82;
  --social-gold: #d4b34f;
  --social-ink: #102b4b;
  --social-muted: #667487;
  --social-line: #dce5ee;
}

.social-profile-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.social-profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 32px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 179, 79, .2), transparent 28%),
    linear-gradient(135deg, #092b57 0%, #124a7f 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(9, 43, 87, .2);
}

.social-profile-hero::after {
  content: '';
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, transparent, var(--social-gold), transparent);
}

.social-profile-hero > div:first-child { max-width: 650px; }
.social-profile-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #ead587;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.social-profile-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.12;
}
.social-profile-hero p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}

.social-hero-logos {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 9px;
  flex: 0 0 auto;
}
.social-hero-logos img {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.social-profile-progress {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) 1.3fr;
  align-items: center;
  gap: 28px;
  margin: 18px 0;
  padding: 17px 20px;
  border: 1px solid var(--social-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(14, 49, 88, .05);
}
.social-profile-progress b,
.social-profile-progress span { display: block; }
.social-profile-progress b { color: var(--social-ink); font-size: 14px; }
.social-profile-progress span { margin-top: 3px; color: var(--social-muted); font-size: 12px; }
.social-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}
.social-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9942c, #e3c762);
  transition: width .25s ease;
}

.social-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-editor-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--social-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(14, 49, 88, .055);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.social-editor-card.is-configured {
  border-color: #bfcfdd;
  box-shadow: 0 10px 28px rgba(14, 49, 88, .095);
}
.social-editor-card.is-configured::after {
  content: '';
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--social-gold);
}

.social-editor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.social-editor-head h3 {
  margin: 0;
  color: var(--social-ink);
  font-size: 16px;
}
.social-editor-head span:not(.social-editor-logo) {
  display: block;
  margin-top: 3px;
  color: #8995a3;
  font-size: 11px;
  font-weight: 750;
}
.social-editor-card.is-configured .social-editor-head span:not(.social-editor-logo) { color: #208357; }
.social-editor-card label {
  display: block;
  margin-bottom: 7px;
  color: #42556b;
  font-size: 12px;
  font-weight: 800;
}
.social-editor-input {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #cfd9e3;
  border-radius: 11px;
  outline: none;
  background: #fbfcfe;
  color: #172d47;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.social-editor-input:focus {
  border-color: #3573ad;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(32, 101, 162, .13);
}
.social-editor-input::placeholder { color: #a4aebb; }
.social-editor-card > small {
  display: block;
  min-height: 30px;
  margin-top: 7px;
  color: #7b8795;
  font-size: 11px;
  line-height: 1.4;
}

.social-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #ddcf9b;
  border-radius: 16px;
  background: #fffdf5;
}
.social-save-bar b,
.social-save-bar span { display: block; }
.social-save-bar b { color: var(--social-ink); font-size: 14px; }
.social-save-bar span { margin-top: 3px; color: var(--social-muted); font-size: 12px; }
.social-save-bar button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--social-navy), var(--social-navy-2));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 9px 20px rgba(11, 49, 95, .18);
}

@media (hover: hover) {
  .social-connect-card:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(14, 49, 88, .11); }
  .social-connect-card button:hover,
  .social-connect-all:hover,
  .social-save-bar button:hover { filter: brightness(1.06); }
}

@media (max-width: 700px) {
  .social-connect-head { display: block; margin-bottom: 14px; }
  .social-connect-count { display: inline-block; margin-top: 10px; }
  .social-connect-grid { grid-template-columns: 1fr; gap: 9px; }
  .social-connect-card {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    padding: 12px;
  }
  .social-network-icon { width: 44px; height: 44px; border-radius: 13px; }
  .social-network-icon img { width: 24px; height: 24px; }
  .social-connect-card > div:not(.social-connect-actions) { min-width: 0; }
  .social-connect-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 3px;
  }
  .social-connect-card button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
  }

  .social-profile-page {
    width: auto;
    margin: 0;
    padding: 14px 14px 116px;
  }
  .social-profile-hero {
    display: block;
    padding: 22px 19px 20px;
    border-radius: 18px;
  }
  .social-profile-hero p { font-size: 13px; }
  .social-hero-logos {
    grid-template-columns: repeat(6, 38px);
    gap: 6px;
    margin-top: 18px;
  }
  .social-hero-logos img {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 11px;
  }
  .social-profile-progress {
    display: block;
    margin: 13px 0;
    padding: 15px;
  }
  .social-progress-track { margin-top: 13px; }
  .social-editor-grid { grid-template-columns: 1fr; gap: 10px; }
  .social-editor-card { padding: 15px; border-radius: 16px; }
  .social-editor-head { margin-bottom: 14px; }
  .social-editor-logo { width: 44px; height: 44px; border-radius: 13px; }
  .social-editor-logo img { width: 24px; height: 24px; }
  .social-editor-card > small { min-height: 0; }
  .social-save-bar { display: block; padding: 15px; }
  .social-save-bar button { width: 100%; margin-top: 13px; }
}

@media (max-width: 390px) {
  .social-hero-logos { grid-template-columns: repeat(6, 34px); }
  .social-hero-logos img { width: 34px; height: 34px; padding: 8px; }
}
