.my-creations-tab {
  padding: 1rem;
  height: 100%;
  overflow-y: auto;

  &__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }

  &__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary-lighter);
    padding: 2rem;

    svg {
      width: 4rem;
      height: 4rem;
      margin-bottom: 1rem;
      color: var(--icon-fill-color-secondary);
    }

    p {
      margin: 0.25rem 0;
    }
  }

  &__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--button-border-color);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease-in-out;

    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-color: var(--button-hover-border-color);
    }

    &--active,
    &--active:hover {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 1px var(--color-primary);
    }
  }

  &__card-thumbnail,
  &__card-thumbnail--placeholder {
    width: 100%;
    height: 120px;
    background-color: var(--canvas-background-color);
    border-bottom: 1px solid var(--button-border-color);
  }

  &__card-thumbnail {
    object-fit: contain;
  }

  &__card-thumbnail--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font: var(--ui-font);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-muted-background);
    user-select: none;
  }

  &__card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  &__card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
    flex-grow: 1;
  }

  &__card-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &__card-date {
    font-size: 0.75rem;
    color: var(--text-primary-lighter);
  }

  &__card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  &__card-rename,
  &__card-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary-lighter);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius-md);
    transition: all 0.15s ease-in-out;

    svg {
      width: 1rem;
      height: 1rem;
    }

    &:hover {
      background-color: var(--button-hover-bg);
    }
  }
}

.my-creations-tab__item-thumbnail,
.my-creations-tab__item-thumbnail--placeholder {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--button-border-color);
  background-color: var(--canvas-background-color);
  flex-shrink: 0;
}

.my-creations-tab__item-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  gap: 0.25rem;
}

.my-creations-tab__item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-creations-tab__item-rename,
.my-creations-tab__item-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary-lighter);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius-md);
  transition: all 0.15s ease-in-out;

  svg {
    width: 1rem;
    height: 1rem;
  }

  &:hover {
    background-color: var(--button-hover-bg);
  }
}

.my-creations-tab__item-date {
  font-size: 0.75rem;
}

.my-creations-tab__item-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
} 