/*!
 * branddam26 – Brand Gradient element
 * Brand gradient with colour stops and the CSS value to copy.
 * © 2026 Atelier 26 AG – part of digiscapes®. All rights reserved. digiscapes® and brandscapes® are registered trademarks.
 */

.content-brand-gradient { display: block; }
.content-brand-gradient .header .name { font-weight: 600; margin-bottom: var(--bs-gutter-y); }

.content-brand-gradient .brand-gradient-preview {
  width: 100%;
  min-height: 8rem;
  aspect-ratio: 4 / 1;
  border-radius: var(--bs-border-radius-12);
  border: 1px solid hsl(from var(--bs-border-color) h s l / var(--bs-border-opacity));
}
.content-brand-gradient .brand-gradient-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.content-brand-gradient .brand-gradient-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--bs-border-radius-6);
  border: 1px solid hsl(from var(--bs-border-color) h s l / var(--bs-border-opacity));
  font-family: var(--bs-font-monospace, monospace);
  font-size: var(--bs-font-size-extra-small);
}
.content-brand-gradient .brand-gradient-chip .dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1px solid hsl(from var(--bs-overlay-black) h s l / 0.2);
}
.content-brand-gradient .brand-gradient-css {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(from var(--bs-border-color) h s l / var(--bs-border-opacity));
  border-radius: var(--bs-border-radius-8);
  background: var(--bs-surface-25);
  cursor: pointer;
  color: inherit;
}
.content-brand-gradient .brand-gradient-css code {
  font-family: var(--bs-font-monospace, monospace);
  font-size: var(--bs-font-size-extra-small);
  overflow-wrap: anywhere;
}
.content-brand-gradient .brand-gradient-copyhint {
  flex: 0 0 auto;
  font-size: var(--bs-font-size-extra-small);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-brand-gradient .brand-gradient-css.is-copied .brand-gradient-copyhint { color: var(--bs-success-base); opacity: 1; }
