/* ==========================================================================
 * HIZIRBEY DESIGN SYSTEM - PROPERTY LIST COMPONENT
 * ==========================================================================
 *
 * Proje: HIZIRBEY Portal
 * Paket: HIZIRBEY Design System
 * Bileşen: PropertyList
 * Dosya: themes/default/assets/css/hds/components/property-list/base.css
 * Açıklama:
 * Inspector ve bilgi panellerindeki etiket/değer çiftlerini ortak HDS
 * görünümüyle sunar.
 * Yazar: Mehmet Kalli
 * Oluşturuldu: 10.08.2026
 * Ownership: Public HDS PropertyList component presentation
 * Root: .hds-property-list
 * Children: header, items, item, label, value, code, badge
 * Güncellendi: 12.08.2026
 * Sürüm: 1.0.0
 * ========================================================================== */

/* =========================================================================
 * >>> Property List
 * ========================================================================= */

.hds-property-list {
  min-width: 0;

  overflow: hidden;

  background: var(--hds-studio-surface, #ffffff);

  border: 1px solid var(--hds-studio-border, #dce4ea);
  border-radius: var(--hds-studio-radius-sm, 0.45rem);

  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 70%),
    0 2px 7px rgb(35 69 103 / 5%);
}

/* <<< Property List */

/* =========================================================================
 * >>> Header
 * ========================================================================= */

.hds-property-list__header {
  padding: 0.72rem 0.85rem;

  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--hds-studio-inspector-accent, #2f80ed) 4%, #ffffff)
      0%,
    #f7fafc 100%
  );

  border-bottom: 1px solid var(--hds-studio-border, #dce4ea);
}

.hds-property-list__title {
  margin: 0;

  color: var(--hds-studio-text, #20313d);

  font-size: 0.7rem;
  font-weight: 850;
}

.hds-property-list__description {
  margin: 0.18rem 0 0;

  color: var(--hds-studio-text-soft, #667985);

  font-size: 0.58rem;
  line-height: 1.45;
}

/* <<< Header */

/* =========================================================================
 * >>> Items
 * ========================================================================= */

.hds-property-list__items {
  display: grid;

  margin: 0;
  padding: 0;
}

.hds-property-list__item {
  display: grid;
  grid-template-columns: minmax(7rem, 0.42fr) minmax(0, 1fr);

  gap: 0.8rem;

  align-items: start;

  padding: 0.72rem 0.85rem;

  border-bottom: 1px solid
    color-mix(in srgb, var(--hds-studio-border, #dce4ea) 72%, transparent);
}

.hds-property-list__item:last-child {
  border-bottom: 0;
}

.hds-property-list__label {
  margin: 0;

  color: var(--hds-studio-text-soft, #667985);

  font-size: 0.61rem;
  font-weight: 800;
}

.hds-property-list__value {
  min-width: 0;

  margin: 0;

  color: var(--hds-studio-text, #20313d);

  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

/* <<< Items */

/* =========================================================================
 * >>> Code Value
 * ========================================================================= */

.hds-property-list__code {
  display: inline-flex;

  max-width: 100%;

  padding: 0.2rem 0.4rem;

  color: #34495a;

  background: #f4f7fa;

  border: 1px solid #dce4ea;
  border-radius: 0.32rem;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;

  overflow-wrap: anywhere;
  white-space: normal;
}

/* <<< Code Value */

/* =========================================================================
 * >>> Badge Value
 * ========================================================================= */

.hds-property-list__badge {
  display: inline-flex;
  align-items: center;

  min-height: 1.45rem;

  padding: 0.18rem 0.48rem;

  border-radius: 999px;

  font-size: 0.55rem;
  font-weight: 800;
}

.hds-property-list__badge.is-success {
  color: #21774a;
  background: #eaf8f0;
}

.hds-property-list__badge.is-danger {
  color: #a83232;
  background: #fff0f0;
}

.hds-property-list__badge.is-warning {
  color: #94601a;
  background: #fff4df;
}

.hds-property-list__badge.is-info,
.hds-property-list__badge.is-primary {
  color: #2568a9;
  background: #eaf4ff;
}

.hds-property-list__badge.is-secondary {
  color: #596b78;
  background: #f1f5f8;
}

/* <<< Badge Value */

/* =========================================================================
 * >>> Property List Stack
 * ========================================================================= */

.hds-property-list + .hds-property-list {
  margin-top: 0.65rem;
}

/* <<< Property List Stack */
/* =========================================================================
 * >>> Responsive
 * ========================================================================= */

@media (max-width: 36rem) {
  .hds-property-list__item {
    grid-template-columns: 1fr;

    gap: 0.22rem;
  }
}

/* <<< Responsive */
