/* ISOCON — administração de copywriting e SEO */

.copywriting-admin {
  display: grid;
  gap: 18px;
  padding-bottom: 80px;
}

.copywriting-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(125deg, #071f48, #0b4ca6);
  border-radius: 14px;
}

.copywriting-intro span,
.copywriting-section > header span,
.seo-preview > span {
  display: block;
  margin-bottom: 4px;
  color: #b8d2f7;
  font-size: .53rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.copywriting-intro h2 {
  margin: 0;
  font-size: 1.35rem;
}

.copywriting-intro p {
  max-width: 670px;
  margin: 5px 0 0;
  color: #dce8f8;
  font-size: .67rem;
}

.copywriting-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.copywriting-intro .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
}

.copywriting-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: #e9eef5;
  border-radius: 11px;
}

.copywriting-tabs button {
  flex: 1 0 auto;
  min-width: 170px;
  padding: 11px 15px;
  color: #5c6d84;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: .62rem;
  font-weight: 800;
}

.copywriting-tabs button.active {
  color: #083b88;
  background: #fff;
  box-shadow: 0 4px 13px rgba(8, 31, 69, .09);
}

.copywriting-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding-inline: 5px;
  color: #fff;
  background: #0d55ba;
  border-radius: 999px;
  font-size: .48rem;
}

.copywriting-tab-panel {
  display: none;
  gap: 18px;
}

.copywriting-tab-panel.active {
  display: grid;
}

.copywriting-section {
  padding: 22px;
  background: #fff;
  border: 1px solid #d8e1ed;
  border-radius: 13px;
}

.copywriting-section > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 19px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e9f0;
}

.copywriting-section > header span {
  color: #0d55ba;
}

.copywriting-section > header h2 {
  margin: 0;
  color: #092653;
  font-size: .9rem;
}

.copywriting-section > header p {
  margin: 4px 0 0;
  color: #6d7e94;
  font-size: .6rem;
}

.copywriting-section > header > strong {
  padding: 5px 9px;
  color: #47617f;
  background: #eef3f8;
  border-radius: 999px;
  font-size: .52rem;
}

.copywriting-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.copywriting-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.copywriting-field > span {
  color: #243b5e;
  font-size: .59rem;
  font-weight: 780;
}

.copywriting-field small {
  color: #8995a5;
  font-size: .5rem;
  line-height: 1.45;
}

.copywriting-field .form-control {
  min-height: 42px;
  color: #243b5e;
  font-size: .62rem;
}

.copywriting-fixed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copywriting-search {
  position: relative;
  margin-bottom: 17px;
}

.copywriting-search i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #7a8ba1;
  transform: translateY(-50%);
}

.copywriting-search input {
  padding-left: 39px;
}

.seo-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 17px;
  margin-top: 21px;
  padding: 16px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 11px;
}

.seo-preview > span {
  grid-column: 1 / -1;
  color: #0d55ba;
}

.seo-preview img {
  width: 220px;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
}

.seo-preview div {
  align-self: center;
  min-width: 0;
}

.seo-preview small,
.seo-preview strong,
.seo-preview p {
  display: block;
}

.seo-preview small {
  color: #5d6f85;
  font-size: .55rem;
}

.seo-preview strong {
  margin: 5px 0;
  color: #102b54;
  font-size: .78rem;
}

.seo-preview p {
  margin: 0;
  color: #607189;
  font-size: .59rem;
  line-height: 1.55;
}

.copywriting-note {
  margin: 15px 0 0;
  padding: 12px 14px;
  color: #5c6f86;
  background: #f5f8fb;
  border-left: 3px solid #0d55ba;
  font-size: .57rem;
  line-height: 1.55;
}

.copywriting-savebar {
  position: sticky;
  bottom: 15px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 16px;
  color: #53657c;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d3ddea;
  border-radius: 11px;
  box-shadow: 0 15px 35px rgba(7, 31, 66, .13);
  backdrop-filter: blur(9px);
  font-size: .58rem;
}

@media (max-width: 900px) {
  .copywriting-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .copywriting-actions,
  .copywriting-fields,
  .copywriting-fixed-grid,
  .seo-preview {
    grid-template-columns: 1fr;
  }

  .copywriting-actions {
    display: grid;
  }

  .seo-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
  }
}
