.arraysubs-shortcodes {
  width: 100%;

  &__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
    gap: 24px;
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid #d8e7f5;
    border-radius: 24px;
    background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
    box-shadow: 0 18px 48px rgba(24, 48, 90, 0.08);
  }

  &__hero-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  &__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: #e2f0ff;
    color: #0a5ea8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  &__title {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
  }

  &__description {
    max-width: 760px;
    margin: 0;
    color: #526277;
    font-size: 15px;
    line-height: 1.7;
  }

  &__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-self: stretch;
  }

  &__stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 124px;
    padding: 18px;
    border: 1px solid #dce7f2;
    border-radius: 18px;
    background: #ffffff;
    color: #304257;

    strong {
      color: #111827;
      font-size: 28px;
      line-height: 1;
    }

    span {
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
  }

  &__empty {
    padding: 28px;
    border: 1px dashed #c9d6e4;
    border-radius: 20px;
    background: #fff;

    h3 {
      margin: 0 0 10px;
      font-size: 22px;
    }

    p {
      margin: 0;
      color: #5b6b7f;
      line-height: 1.7;
    }
  }

  &__group {
    margin-top: 30px;
  }

  &__group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;

    h3 {
      margin: 0;
      color: #111827;
      font-size: 22px;
    }

    span {
      color: #63748a;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
  }

  &__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  &__card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dde6ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
  }

  &__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  &__card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;

    h4 {
      margin: 0;
      color: #111827;
      font-size: 20px;
      line-height: 1.2;
    }
  }

  &__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    &--free {
      background: #edf8ef;
      color: #1d6f39;
    }

    &--pro {
      background: linear-gradient(180deg, #fff4d6 0%, #ffe9ae 100%);
      color: #8a5a00;
    }
  }

  &__tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f4f8fb;
    color: #0f3554;
    font-size: 13px;
    font-weight: 700;
  }

  &__card-description {
    margin: 0;
    color: #56677c;
    line-height: 1.7;
  }

  &__code-block,
  &__meta-section {
    display: flex;
    flex-direction: column;
    gap: 10px;

    h5,
    span {
      margin: 0;
      color: #1f2d3d;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    pre {
      overflow-x: auto;
      margin: 0;
      padding: 12px 14px;
      border-radius: 14px;
      background: #0f172a;
      color: #e2e8f0;
      font-size: 12px;
      line-height: 1.6;
      white-space: pre-wrap;
      word-break: break-word;
    }
  }

  &__attribute-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;

    li {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
    }

    code {
      padding: 6px 10px;
      border-radius: 10px;
      background: #f4f8fb;
      color: #0f3554;
      font-size: 12px;
      font-weight: 700;
      text-align: center;
    }

    span {
      color: #5a6b80;
      font-size: 14px;
      font-weight: 400;
      letter-spacing: normal;
      line-height: 1.6;
      text-transform: none;
    }
  }

  &__examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  @media (max-width: 1100px) {
    &__hero,
    &__grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 782px) {
    &__hero {
      padding: 22px;
    }

    &__stats {
      grid-template-columns: 1fr;
    }

    &__attribute-list li {
      grid-template-columns: 1fr;
    }
  }
}
