// Haupt-Container
.page-list-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  padding: 28px 22px 14px 22px;
  margin: 0 auto;
  min-width: 280px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

// Titel
.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.add-page-btn {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  &:hover {
    opacity: 1;
    transform: scale(1.1);
  }
}

// Filter-Navigation
.page-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  .filter {
    font-family: var(--font-body);
    font-size: 14px;
    color: #999;
    background: #f6f6f6;
    border-radius: 7px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
    &.active,
    &:hover {
      background: var(--gradient-primary);
      color: #fff;
    }
  }
}

// Seitenliste (ul > li)
.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

%page-list-empty-state {
  color: #bbb;
  padding: 20px 0 8px 0;
  text-align: center;
  font-size: 16px;
  font-family: var(--font-body);
}

.page-list .empty-state {
  @extend %page-list-empty-state;
}

%page-list-item {
  border-radius: 8px;
  background: #fafbfc;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  padding: 14px 12px 10px 14px;
  gap: 4px;
  transition: box-shadow 0.16s;
  border: 1px solid transparent;
  &:hover {
    border: 1px solid var(--user-color);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  }
}

.page-list li {
  @extend %page-list-item;
}

// Zeile: Name und Aktionen
.page-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-name {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: #181818;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 6px 2px 0;
  border-radius: 6px;
  outline: none;
  border: 1px solid transparent;
  transition: border 0.18s;
  &[contenteditable="true"]:focus {
    border: 1px solid #ddd;
    background: #fff0ff;
    color: #181818;
  }
}

.page-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.page-actions .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: #888;
  cursor: pointer;
  opacity: 0.72;
  transition: fill 0.16s, opacity 0.14s, transform 0.14s;
  &:hover {
    fill: var(--user-color);
    opacity: 1;
    transform: scale(1.13);
  }
}

// Zeile: Slug
.page-slug-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-slug {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #555;
  padding: 2px 7px 2px 0;
  border-radius: 6px;
  min-width: 40px;
  background: none;
  outline: none;
  border: 1px solid transparent;
  transition: border 0.18s;
  &[contenteditable="true"]:focus {
    border: 1px solid #ddd;
    background: #fff0ff;
    color: #181818;
  }
}

.edit-slug {
  width: 18px;
  height: 18px;
  fill: #bbb;
  cursor: pointer;
  margin-left: 2px;
  opacity: 0.8;
  &:hover {
    fill: var(--user-color);
    opacity: 1;
  }
}

// Stats widget
.page-stats-widget {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: 20px;
  margin: 0 auto;
  width: 100%;
  font-family: var(--font-body);
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  li {
    color: #555;
    font-size: 0.95rem;
  }
}